Thanks. It looks very impressive.
I'm using the VIM for all my development.
But could you point me to a clear/understandable explanation how to
use VimClojure. I found how to install and configure it but have no
idea how to start using.
On Jul 26, 12:09 pm, Meikel Brandmeyer m...@kotka.de wrote:
Hey all,
I just pushed out a very simple example project showing up to use my
maven-clojure-plugin:
http://github.com/talios/clojure-maven-example/tree/master
In the repository there's 3 tags:
step1 has a very simple pom.xml and a single clojure test script. Simply run
mvn test to see it
Hello,all
new to functional programming, I have one nested dynamic vecter just
like this:
(def a [[1 2 3 4] [ok 89 22] [25 78 99] ...]]
it has to support ops:
1* add new item,it's easy: eg. (conj a [metoo oops] )
2* insert one element into inner vector based that vector's
content,eg i
Hello,all
I'm new to functional programming,want to know how to address nested
inner seqs in clojure
(def a [[1 2 3 4] [ ok metoo] [ 5 8 9 ]])
1: searching in a, if find one inner vector includes number 9 then
append it a number 13
[[1 2 3 4] [ ok metoo] [ 5 8 9 ]] = [[1 2 3 4] [ ok metoo]
On Aug 16, 12:02 pm, botgerry botge...@gmail.com wrote:
Hello,all
I'm new to functional programming,want to know how to address nested
inner seqs in clojure
(def a [[1 2 3 4] [ ok metoo] [ 5 8 9 ]])
1: searching in a, if find one inner vector includes number 9 then
append it a number 13
Dear all,
The good news: I have a version of the N-body benchmark that goes as
fast as java.
The bad news: I am cheating a little bit...
As I suspected that a lot of time was spend in the array bound check
arithmetic, I replaced #^doubles in the implementation of body by an
object implemented
On 8月16日, 下午6时29分, Jarkko Oranen chous...@gmail.com wrote:
I think using a zipper is a good solution
but clojure.zip seems only support limit operates,i want it support
mark and merge functions
You should never use def inside a function. It's a certain sign that
you're doing something
On Sun, Aug 16, 2009 at 6:51 AM, Niels Mayernielsma...@gmail.com wrote:
Executive summary: seems like big announcements of provably correct
software would be easier to achieve in Java+Clojure than for C/Haskell used
in the current big news regarding a provably secure kernel. However, given
Dear all,
after having spend a bit of time optimizing the n-body benchmark, I had
an idea for another implementation of structures.
- Create a java object Structure, that contains a pointer to a
persistent hash map and a private abstract class Field, containing a
method set and a method get,
On Aug 16, 10:02 am, botgerry botge...@gmail.com wrote:
1: searching in a, if find one inner vector includes number 9 then
append it a number 13
[[1 2 3 4] [ ok metoo] [ 5 8 9 ]] = [[1 2 3 4] [ ok metoo]
[ 5 8 9 13]]
(into []
(for [x a]
(if (contains? x 9)
(conj x 13)
On 8月16日, 下午8时49分, James Reeves weavejes...@googlemail.com wrote:
On Aug 16, 10:02 am, botgerry botge...@gmail.com wrote:
1: searching in a, if find one inner vector includes number 9 then
append it a number 13
[[1 2 3 4] [ ok metoo] [ 5 8 9 ]] = [[1 2 3 4] [ ok metoo]
[ 5 8 9 13]]
On 8月16日, 上午8时13分, Waysys wshaf...@waysysweb.com wrote:
Today I downloaded Clojure version 1.0.0 as a new Clojure user. I
prepared a .cmd file to run the program. I copied and pasted in the
instructions from the readme file into the .cmd file:
java -cp clojure.jar clojure.lang.Repl
Indeed -- well, the patch file is there in assembla if you need
keyword serializability right now. Otherwise, I can't imagine it'll
be long before it's brought into the github HEAD (though I'm certain
Rich has more pressing things to handle).
- Chas
On Aug 14, 2009, at 3:18 PM, bradford
Hello,
I am a specialist of a neighbour field so I can try to precise a few
things.
It's not automated theorem proving they are talking about but more
interactive proof or assisted proof. The goal is to write a proof that a
computer can check and not to have a computer generating a proof.
Most
On Aug 14, 2009, at 8:53 PM, Mark Volkmann wrote:
So it seems the biggest impact of the change can be summarized as
follows. In the past, once you successfully ensured a Ref, you knew
you could write to it later because no other thread could also ensure
it. Now you don't know that. You know
In general, when writing documentation about software, you have to ask your
self what if the user downloaded 0.9? or what if the user downloaded
1.1? How do you know what other docs someone might have written, that
might have led the user to have downloaded one version or another? So the
doc's
On Aug 14, 2009, at 3:10 PM, bradford cross wrote:
We have just released flightcaster.com which uses statistical
inference and machine learning to predict flight delays in advance
of airlines (initial results appear to do so with 85 - 90 % accuracy.)
The webserver and webapp are all
On Aug 16, 2009, at 7:32 AM, Nicolas Oury wrote:
after having spend a bit of time optimizing the n-body benchmark, I
had
an idea for another implementation of structures.
- Create a java object Structure, that contains a pointer to a
persistent hash map and a private abstract class
Much of what you've described is either provided by newnew, or is
relatively easy to produce with a couple of macro wrappers involving
gen-interface and newnew:
That's what I was hoping for. No code generation code to write for it.
--~--~-~--~~~---~--~~
On 8月16日, 下午10时08分, botgerry botge...@gmail.com wrote:
On 8月16日, 下午8时49分, James Reeves weavejes...@googlemail.com wrote:
On Aug 16, 10:02 am, botgerry botge...@gmail.com wrote:
1: searching in a, if find one inner vector includes number 9 then
append it a number 13
[[1 2 3 4] [
2009/8/16 John Newman john...@gmail.com:
In general, when writing documentation about software, you have to ask your
self what if the user downloaded 0.9? or what if the user downloaded
1.1? How do you know what other docs someone might have written, that
might have led the user to have
part of the confusion is also in the clojure build system. it builds
both clojure.jar and clojure-version.jar
for example, in the git clone version of clojure. it builds
both clojure.jar and clojure-1.1.0-alpha-SNAPSHOT.jar
which is probably how this got snuck by.
On Sun, Aug 16, 2009 at 3:19
I think the real solution is that I need to be smarter.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are
I posted a simple example project to:
http://github.com/talios/clojure-maven-example
last night which demonstrates the plugin. As I mentioned in a post to this
list yesterday theres 3 tags - step1, step2, step3. step1 just has a basic
pom and a test, step2 pulls in compojure and a simple
Hi,
Am 16.08.2009 um 12:50 schrieb Nicolas Oury:
The bad news: I am cheating a little bit...
Why is this cheating? People wrote programs in
C and dropped down to Assembly if necessary.
People write programs in Python and drop down
to C if necessary.
Why can't we write programs in Clojure
Did you remember to push your tags? (git push --tags)
On Sun, Aug 16, 2009 at 9:51 PM, Mark Derricuttm...@talios.com wrote:
I posted a simple example project to:
http://github.com/talios/clojure-maven-example
last night which demonstrates the plugin. As I mentioned in a post to this
list
David,
could you please post a version of your solution[1] annotated with
some comments on where you used which kind of optimization, and why?
Your code looks very clean to me, and with some additional
explanations I think this could become a good example on how to
optimize computation-heavy
On Sun, Aug 16, 2009 at 1:30 AM, botgerry botge...@gmail.com wrote:
Hello,all
new to functional programming, I have one nested dynamic vecter just
like this:
(def a [[1 2 3 4] [ok 89 22] [25 78 99] ...]]
it has to support ops:
1* add new item,it's easy: eg. (conj a [metoo oops] )
Why can't we write programs in Clojure and
drop down to Java if necessary?
That's what I find funny about these threads, Clojure's Java interop
is good, Java is easy to write performant code in. There is a clear
path to getting the best JVM performance possible from a Clojure
environment.
Tags don't push automatically? Never knew that :( As soon as dropbox has
synced this laptop I'll push out the tags as well (and I hope they push out
old tags, and not just the new ones.
Mark
--
On Mon, Aug 17, 2009 at 8:46 AM, Christian Vest Hansen karmazi...@gmail.com
wrote:
Did you
The tags should be there now, pity github seems to be down now :(
--
On Mon, Aug 17, 2009 at 9:22 AM, Mark Derricutt m...@talios.com wrote:
Tags don't push automatically? Never knew that :( As soon as dropbox has
synced this laptop I'll push out the tags as well (and I hope they push out
On Aug 13, 2009, at 4:52 PM, Chas Emerick wrote:
I've actually been using it at the REPL here and there, and I've found
it pretty pleasant -- it's a very pretty way to hint args compared to
#^, and arg:Type ordering makes for easy readability (e.g. you can
very easily scan an arg form and see
On Aug 16, 2009, at 6:29 PM, Stephen C. Gilardi wrote:
On Aug 13, 2009, at 4:52 PM, Chas Emerick wrote:
I've actually been using it at the REPL here and there, and I've
found
it pretty pleasant -- it's a very pretty way to hint args compared to
#^, and arg:Type ordering makes for easy
Hi Clojurians,
I've been learning Clojure for about 5 or so days (I'm osaunders on
the channel) now and I'm liking it a lot. However, the lack of
structure of http://clojure.org/api is hampering my learning a bit. I
wonder other people think it might be a nice idea to organise the
functions into
On Sun, Aug 16, 2009 at 6:12 PM, Ollie
Saundersoliver.saund...@gmail.com wrote:
Hi Clojurians,
I've been learning Clojure for about 5 or so days (I'm osaunders on
the channel) now and I'm liking it a lot. However, the lack of
structure of http://clojure.org/api is hampering my learning a
You might find these pages somewhat helpful:
http://en.wikibooks.org/wiki/Clojure_Programming/Examples/API_Examples
http://clj-doc.s3.amazonaws.com/tmp/doc-1116/index.html
http://java.ociweb.com/mark/clojure/ClojureCategorized.html
More generally, I'd agree that the Clojure sites need some
Once commute has been called on a Ref (within a transaction of
course), ref-set and alter cannot be called on it within the same
transaction.
This is enforced by the following code from the doSet method in
LockingTransaction.java.
if(commutes.containsKey(ref))
throw new
On Aug 16, 2009, at 7:12 PM, Ollie Saunders wrote:
I've been learning Clojure for about 5 or so days (I'm osaunders on
the channel) now and I'm liking it a lot. However, the lack of
structure of http://clojure.org/api is hampering my learning a bit. I
wonder other people think it might be a
On Aug 16, 2009, at 7:38 PM, Chas Emerick wrote:
On Aug 16, 2009, at 6:29 PM, Stephen C. Gilardi wrote:
Very cool! I like this a lot. Would you be up for writing some doc
strings and including it in clojure.contrib.def?
Yeah, I could do that.
I don't actually think it's practical on its
I took a shot at it at
http://ociweb.com/mark/clojure/ClojureCategorized.html. Suggestions
for changes to this are welcomed. Also check out
http://ociweb.com/mark/clojure/article.html.
--
R. Mark Volkmann
Object Computing, Inc.
Since you're asking. :-)
That page would be greatly
On Aug 17, 11:12 am, Ollie Saunders oliver.saund...@gmail.com wrote:
Hi Clojurians,
I've been learning Clojure for about 5 or so days (I'm osaunders on
the channel) now and I'm liking it a lot. However, the lack of
structure ofhttp://clojure.org/apiis hampering my learning a bit. I
wonder
On Sun, Aug 16, 2009 at 8:27 PM, Chas Emerickcemer...@snowtide.com wrote:
On Aug 16, 2009, at 8:52 PM, Mark Volkmann wrote:
I took a shot at it at
http://ociweb.com/mark/clojure/ClojureCategorized.html. Suggestions
for changes to this are welcomed. Also check out
(defh a
[b:String [c:Double :as list:java.util.List] {d:java.util.Random :d}]
(.toCharArray b)
(.size list)
(.floatValue c)
(.nextInt d))
What's that :as in the [ c:Double :as list:java.util.List ] vector?
--~--~-~--~~~---~--~~
You received
On Aug 16, 2009, at 11:56 PM, tsuraan wrote:
(defh a
[b:String [c:Double :as list:java.util.List]
{d:java.util.Random :d}]
(.toCharArray b)
(.size list)
(.floatValue c)
(.nextInt d))
What's that :as in the [ c:Double :as list:java.util.List ] vector?
The entire expression you
Hi there!
I'm new with Clojure, and I'm having a problem with Vimclojure and
Namespaces. I'm following
thishttp://java.ociweb.com/mark/clojure/article.htmltutorial,
currently trying to evaluate the code below. If I evaluate the
whole file, it works, but not if I do so line-by-line via \et.
What
45 matches
Mail list logo