[ANN] German Clojure Book Available

2010-09-24 Thread Stefan Kamphausen
Fellow Clojurians, the book that was announced in march[1] is now available. As far as I know it is the first German book on Clojure. If you're interested, take a look at: http://www.clojure-buch.de We, the authors, are particularly happy that for every book sold 0.50EUR will be used to

Re: German Clojure Book Available

2010-09-24 Thread Meikel Brandmeyer
\o/ Gratulation! :D -- 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 moderated - please be patient with your first post. To unsubscribe from this group,

Linköping Clojure User Group Startup Meeting

2010-09-24 Thread Rasmus Svensson
Hi Clojurians of Linköping! This is an invitation for the upcoming startup meeting of a new Clojure group in Linköping. On 29th of September (next Wednesday), Linköping Clojure User Group will have its first meeting. (Those of you who hang around in House B at the University may have already

Re: Clojure meetup group listing

2010-09-24 Thread Rasmus Svensson
2010/9/20 Andrew Gwozdziewycz apg...@gmail.com: I'd like to propose that we make an effort to list these groups on Meetup Everywhere (http://www.meetup.com/everywhere), which is a free platform useful for finding a nearby meetup about a given topic. Hi! Linköping Clojure User Group will have

Re: Byte Literals

2010-09-24 Thread David Sletten
Ah, right. Thanks. I'm not keeping up with my Clojure version numbers... On Sep 24, 2010, at 1:52 AM, Rasmus Svensson wrote: There's also 'bytes', 'byte-array' and 'into-array': (byte-array (map byte [1 2 3])) (into-array Byte/TYPE (map byte [1 2 3])) // raek -- You received this

Re: Clojure 1.3 Alpha 1

2010-09-24 Thread Stuart Halloway
Regular, and looking for feedback on what that means to you. Definitely if there is something big enough in master that you want to target it, and we haven't built it yet, ask. Will alpha releases be once-a-month, once-a-quarter, or now-seems- good? Is there a theoretical schedule for 1.3?

Re: Clojure 1.3 Alpha 1

2010-09-24 Thread Stuart Halloway
Other Stuart is working on this today. Contributions / suggestions / reactions to the new modular build in contrib are most welcome. Stu Are there plans to also make alpha builds of Clojure Contrib available that are built against the equivalent Clojure Alpha? -- Sean A Corfield -- (904)

Re: [ANN] German Clojure Book Available

2010-09-24 Thread Thomas Wagner
Hi Stefan, ... awesome! Congratulation and thank you for your work! I've just ordered my copy. Kind regards, Thomas On Fri, Sep 24, 2010 at 10:11 AM, Stefan Kamphausen ska2...@googlemail.comwrote: Fellow Clojurians, the book that was announced in march[1] is now available. As far as I

Clojure with Uncle Bob

2010-09-24 Thread Jamie
My friend visited a talk the other week about Clojure. He's not a programmer but a mathematician, which I think gave him some unique insights. In truth, I was a bit jealous that I was on holiday. http://www.financialagile.com/reflections/8-software/21-clojure-with-uncle-bob Are there many

Re: ANN: textmate-clojure, SLIME for TextMate (sorta)

2010-09-24 Thread samnardoni
Awesome work on this! I was wondering: Have you considered more integration with the terminal (via `screen`), rather than evaluating and displaying in a window? I had a setup like this with vim, and it worked really well. For example, when you evaluate a function definition, it pipes it to the

Something hanging onto the head?

2010-09-24 Thread Jeff Palmucci
Sorry, I posted this question and it turned up under the 1.3 Alpha 1 thread. Apparently you cannot reply to an email from the group, edit the header, and start a new discussion. Here it is again: I have a very simple test case in clojure 1.2: (def *1* (count (range 0 1))) I have a

Re: Something hanging onto the head?

2010-09-24 Thread Per Vognsen
The namespace binding is what's holding onto the head. This is a common enough question (which tends to occur more in toy programs than real ones) that it probably belongs in a FAQ. -Per On Fri, Sep 24, 2010 at 9:58 PM, Jeff Palmucci jpalmu...@gmail.com wrote: Sorry, I posted this question and

clojure-contrib 1.3.0-alpha1

2010-09-24 Thread Stuart Sierra
I have deployed release 1.3.0-alpha1 of clojure-contrib. This is the first public release of the modularized clojure-contrib. If you just want one big JAR file, download it from http://github.com/clojure/clojure-contrib/downloads If you want JARs for individual modules, look at

Re: Building from source - great improvements today! Thank you!

2010-09-24 Thread Stuart Sierra
On Sep 24, 1:00 am, Sean Corfield seancorfi...@gmail.com wrote: Building Clojure seems to install 1.3.0-SNAPSHOT but by default Contrib seems to expect 1.3.0-master-SNAPSHOT ? The version string in the Clojure build was set incorrectly. It has now been restored to 1.3.0-master-SNAPSHOT If

Re: ANN: textmate-clojure, SLIME for TextMate (sorta)

2010-09-24 Thread David Nolen
On Fri, Sep 24, 2010 at 10:27 AM, samnardoni samnard...@googlemail.comwrote: Awesome work on this! I was wondering: Have you considered more integration with the terminal (via `screen`), rather than evaluating and displaying in a window? I had a setup like this with vim, and it worked really

Re: Something hanging onto the head?

2010-09-24 Thread Laurent PETIT
Which namespace binding ? Isn't 'count eager ? 2010/9/24 Per Vognsen per.vogn...@gmail.com The namespace binding is what's holding onto the head. This is a common enough question (which tends to occur more in toy programs than real ones) that it probably belongs in a FAQ. -Per On Fri,

Re: Is ClojureCLR converging toward a release?

2010-09-24 Thread dmiller
I tagged a 1.2 release on the site. I have not put a separate 1.2 download or a binary release out there yet. Someone has contributed an entirely new build process for ClojureCLR that includes support for either 3.5 or 4.0 builds, better binary managment on the builds and some other goodies.

clojure.string

2010-09-24 Thread cej38
I noticed that clojure.string is not showing up on the API webpage, http://clojure.github.com/clojure/, is that an oversight? -- 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

clojure-contrib wiki on Google Code

2010-09-24 Thread Miki
Greetings, The clojure-contrib on Google code still points to the old richkickey github project. The download jars are for the 1.1 release. For me, this is one of the top hits in Google - it'll probably confuse new users. Can someone fix that and point to the right places. Maybe write a

Some code dramatically slower in Clojure 1.3 Alpha 1?

2010-09-24 Thread Btsai
After updating from Clojure 1.2 to Clojure 1.3 Alpha 1, I noticed that one of my Project Euler solutions became dramatically slower. The solution was for Problem 14, finding the number less than N that produces the longest Collatz sequence. For N = 100,000, the time required to find the answer

Re: Some code dramatically slower in Clojure 1.3 Alpha 1?

2010-09-24 Thread Btsai
FYI, I tried re-writing count-terms using loop/recur, but it didn't really make a difference: (defn count-terms-recur [n] (loop [n n count 1] (cond (= 1 n) count (even? n) (recur (/ n 2) (inc count)) :else (recur (inc (* n 3)) (inc count) Clojure 1.2 = 1153.43

Re: Some code dramatically slower in Clojure 1.3 Alpha 1?

2010-09-24 Thread David Nolen
(defn next-term [n] (if (= (mod n 2) 0) (/ n 2) (inc (* n 3 (defn count-terms [n] (if (= 1 n) 1 (inc (count-terms (next-term n) (time (let [pair (juxt identity count-terms) pairs (map pair (range 1 10))] (println (first (apply max-key second pairs) It

Re: Some code dramatically slower in Clojure 1.3 Alpha 1?

2010-09-24 Thread Nicolas Oury
After profiling even seems effectively the culprit. Some method reflector shows up too. On Fri, Sep 24, 2010 at 6:15 PM, David Nolen dnolen.li...@gmail.com wrote: (defn next-term [n]   (if (= (mod n 2) 0) (/ n 2)       (inc (* n 3 (defn count-terms [n]   (if (= 1 n) 1       (inc

Re: Some code dramatically slower in Clojure 1.3 Alpha 1?

2010-09-24 Thread Nicolas Oury
Try (defn even? Returns true if n is even, throws an exception if n is not an integer {:added 1.0 :static true} [n] (zero? (bit-and (long n) (long 1 before your example. It is fast on my computer. (I believe there is a reflective call, without the explicit cast.) -- You received

Re: clojure.string

2010-09-24 Thread Rasmus Svensson
2010/9/24 cej38 junkerme...@gmail.com: I noticed that clojure.string is not showing up on the API webpage, http://clojure.github.com/clojure/, is that an oversight? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email

Re: Is ClojureCLR converging toward a release?

2010-09-24 Thread eyeris
I am very encouraged to hear this. I'm looking forward to the binary release. On Sep 24, 10:24 am, dmiller dmiller2...@gmail.com wrote: I tagged a 1.2 release on the site. I have not put a separate 1.2 download or a binary release out there yet.  Someone has contributed an entirely new

Re: clojure-contrib 1.3.0-alpha1

2010-09-24 Thread Brian Carper
On Sep 24, 8:09 am, Stuart Sierra the.stuart.sie...@gmail.com wrote: I have deployed release 1.3.0-alpha1 of clojure-contrib. This is the first public release of the modularized clojure-contrib. If you just want one big JAR file, download it

Lazytest 1.0.0 (beta)

2010-09-24 Thread Stuart Sierra
http://github.com/stuartsierra/lazytest My attempt to steal all the good ideas from clojure.test, Circumspec, ClojureCheck, RSpec, Spock, ScalaTest, etc. Kudos to all those authors for all their great work. -S -- You received this message because you are subscribed to the Google Groups

Re: clojure-contrib 1.3.0-alpha1

2010-09-24 Thread Stuart Sierra
On Sep 24, 3:37 pm, Brian Carper briancar...@gmail.com wrote: As of yesterday, the complete dependency still doesn't work with Maven unless you add classifierbin/classifier.  [1] [2] As of today, I can't even manage to pull individual libs.  I thought this was how to fetch

Re: clojure-contrib 1.3.0-alpha1

2010-09-24 Thread Stuart Sierra
OK, looks like the released contrib POM files are massively broken. This may not be fixed by the end of today. -S -- 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

Re: clojure-contrib 1.3.0-alpha1

2010-09-24 Thread Stuart Sierra
Deleted all the deployed contrib modules, which were useless anyway. Trying again now. -S -- 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 moderated -

Re: clojure-contrib 1.3.0-alpha1

2010-09-24 Thread Brian Carper
On Sep 24, 1:34 pm, Stuart Sierra the.stuart.sie...@gmail.com wrote: OK, individual modules appear to work now on 1.3.0-alpha1 Yep, it works now. Many thanks for fixing this so quickly. I feel your pain. --Brian -- You received this message because you are subscribed to the Google Groups

Re: Some code dramatically slower in Clojure 1.3 Alpha 1?

2010-09-24 Thread Btsai
David, Nicolas, thank you for finding the culprit so quickly :) What profiling technique/tool did you use? I have some other code that is also much slower in 1.3, and thought I'd take a crack at finding the culprit myself before spamming the list again. On Sep 24, 11:26 am, Nicolas Oury

Re: Some code dramatically slower in Clojure 1.3 Alpha 1?

2010-09-24 Thread David Nolen
On Fri, Sep 24, 2010 at 5:25 PM, Btsai benny.t...@gmail.com wrote: David, Nicolas, thank you for finding the culprit so quickly :) What profiling technique/tool did you use? I have some other code that is also much slower in 1.3, and thought I'd take a crack at finding the culprit myself

Re: Some code dramatically slower in Clojure 1.3 Alpha 1?

2010-09-24 Thread Btsai
Thank you David. Time for me to dig in! On Sep 24, 3:36 pm, David Nolen dnolen.li...@gmail.com wrote: On Fri, Sep 24, 2010 at 5:25 PM, Btsai benny.t...@gmail.com wrote: David, Nicolas, thank you for finding the culprit so quickly :) What profiling technique/tool did you use?  I have some

Re: Some code dramatically slower in Clojure 1.3 Alpha 1?

2010-09-24 Thread Eric Lavigne
I think I read somewhere that max-key applies f more times than is necessary, so should not be pass any f that takes significant time to compute. Yes, max-key calls f more times than necessary. http://code.google.com/p/clojure/issues/detail?id=95 We ran into this problem yesterday on a

Re: clojure-contrib 1.3.0-alpha1

2010-09-24 Thread Mark Derricutt
Using the classifer bin would give you the single uber-jar, however - if you just use the default classifier ( i.e. don't mention it ) it should pull in ALL of 'completes' transitive dependencies. I've just tried this locally and that seems to be working fine for me. I see maven downloading all

Re: clojure-contrib 1.3.0-alpha1

2010-09-24 Thread Mark Derricutt
Actually, I see that if I want to use the individual jars I need to specify the dependency type: dependency groupIdorg.clojure.contrib/groupId artifactIdcomplete/artifactId typepom/type version1.3.0-alpha1/version /dependency

Re: clojure-contrib 1.3.0-alpha1

2010-09-24 Thread Sean Corfield
FWIW, I pulled both clojure and contrib about an hour ago and still had the ${clojure.contrib.version} problem in the installed pom files, even for individual modules (so I just ran a sed script on them to fix them - which fixes 'complete' / 'parent' too :) I'm afraid I don't know enough Maven to