Re: [ANN] ClojureCLR 1.3.0 released

2011-09-25 Thread Baishampayan Ghose
ClojureCLR 1.3.0 is now available. Same updates as Clojure 1.3.0. Wow, David. That's some incredible work that you've done. Even though I don't use ClojureCLR, I can understand the amount of effort that has gone into the release. Heartiest congratulations. Regards, BG -- Baishampayan Ghose

Re: beginner question

2011-09-25 Thread Stefan Kamphausen
Hi, regarding the writing of a game in Clojure, I think http://codethat.wordpress.com/2011/09/10/writing-tetris-in-clojure/ is a good post to read. Regards, Stefan -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: aquamacs, slime and clojure on OS X

2011-09-25 Thread ngocdaothanh
Coming from Eclipse, I can't live without the file browser. I'm having this problem with ECB, please help: http://stackoverflow.com/questions/7541693/ecb-context-menu-in-aquamacs Thanks, Ngoc -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: beginner question

2011-09-25 Thread Stuart Halloway
the website says: deftype supports mutable fields, defrecord does not so deftype seems to be what would be a java bean with simple properties in java Nope. :-) Domain information should use defrecord, and should never be mutable. This is the closest thing to a Java bean, but is

Re: :use :only support in ClojureScript now available

2011-09-25 Thread Stuart Halloway
Nice! This is great. Will the :only directive always be required, or will we eventually be able to pull in entire namespaces? - Jason Probably the former. Pulling in entire namespaces is generally considered bad practice. Stu -- You received this message because you are subscribed to

Re: beginner question

2011-09-25 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 25.09.2011 14:00, schrieb Stuart Halloway: the website says: deftype supports mutable fields, defrecord does not so deftype seems to be what would be a java bean with simple properties in java Nope. :-) Domain information should use

Re: beginner question

2011-09-25 Thread Stuart Halloway
what's the difference between persistent and immutable? See http://en.wikipedia.org/wiki/Persistent_data_structure, which now has a nice shout out to Clojure. Stu -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

apply func

2011-09-25 Thread Vincent
I cannot understand why this does'nt work (apply inc [1 2 3 4]) ; apply inc to each vector element while this works (apply println [1 2 3 4]) ;; takes each element and prints it why inc can't take each element and incr it giving the result ... 2 3 4 5 thanks in advance vincent -- You

Re: apply func

2011-09-25 Thread Michael Fogus
why inc can't take each element and incr it giving the result  ... 2 3 4 5 thanks in advance apply works as if you were calling the function with the elements of the vector. In other words: (apply inc [1 2 3 4 5) ==is like saying=== (inc 1 2 3 4 5) Which is not what you want. However, the

Re: apply func

2011-09-25 Thread Daniel Solano Gomez
On Sun Sep 25 06:38 2011, Vincent wrote: I cannot understand why this does'nt work (apply inc [1 2 3 4]) ; apply inc to each vector element From the documentation: clojure.core/apply ([f args* argseq]) Applies fn f to the argument list formed by prepending args to argseq. This means

Overtone 0.4.0 - Clojure 1.3 ready

2011-09-25 Thread Sam Aaron
Hi everyone, given that Clojure 1.3 has recently gone GOLD (http://www.youtube.com/watch?v=n0pvFulUd98) I thought we should celebrate with a new version of Overtone with full Clojure 1.3 support. Overtone 0.4.0 is now on Clojars and tagged on Github.

clojure.contrib.io, clojure.contrib.http.agent and clojure.contrib.http.connection for Clojure 1.3

2011-09-25 Thread Alf Kristian Støyle
Hi guys, not really sure if this is of any interest, since I am sure you have plans for all the contrib libraries. However I needed a version of clojure.contrib.io, clojure.contrib.http.agent and clojure.contrib.http.connection for a workshop that we are doing, and we really want to use 1.3, so I

Re: aquamacs, slime and clojure on OS X

2011-09-25 Thread László Török
+1 for me too on Snow Leopard with latest Aquamacs 2011/9/23 Durgesh Mankekar durg...@gmail.com +1 here. These instructions have worked for me with Aquamacs. On Sep 23, 2011, at 2:46 PM, Justin Kramer wrote: * install Leiningen * install the swank-clojure plugin: lein plugin install

Re: Overtone 0.4.0 - Clojure 1.3 ready

2011-09-25 Thread Bruce Durling
Sam, shameless-plug Is this the version you'll be covering at your talk at skillsmatter on 3 October? http://skillsmatter.com/event/java-jee/london-clojure-user-group-october-meetup We'll be having 2 lightning talks as well. :-D /shameless-plug cheers, Bruce On Sun, Sep 25, 2011 at 15:59, Sam

Re: beginner question

2011-09-25 Thread Phil Hagelberg
On Sep 25, 2011 6:12 AM, Dennis Haupt d.haup...@googlemail.com wrote: what's the difference between persistent and immutable? I have written a summary of this distinction on my blog: http://technomancy.us/132 Hope that helps. -Phil -- You received this message because you are subscribed to

[ANN]: Minnesota Clojure Group

2011-09-25 Thread Brian Maddy
There's a few of us here in Minneapolis/St. Paul who have been getting together monthly for about a year now to talk about Clojure. I figure it's about time to mention it here in case there's anyone else in the area who's interested in joining us. We're meeting on the first Wednesday of the month

Re: Overtone 0.4.0 - Clojure 1.3 ready

2011-09-25 Thread Sam Aaron
On 25 Sep 2011, at 17:55, Bruce Durling wrote: Is this the version you'll be covering at your talk at skillsmatter on 3 October? Of course and perhaps other bits and bobs I develop between now and then :-) It should be a lot of fun. Sam --- http://sam.aaron.name -- You received this

Re: Trying to use CDT on 1.3.0

2011-09-25 Thread George Jahad
This is the most up-to-date documentation: http://georgejahad.com/clojure/swank-cdt.html Is that what you are using? g On Sep 22, 1:25 pm, Brent Millare brent.mill...@gmail.com wrote: Hmm, I think it was a version mismatch for target repl and debug repl. So it works now. New issue though,

Re: beginner question

2011-09-25 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 so there is no difference. Am 25.09.2011 15:28, schrieb Stuart Halloway: what's the difference between persistent and immutable? See http://en.wikipedia.org/wiki/Persistent_data_structure, which now has a nice shout out to Clojure. Stu -

Re: beginner question

2011-09-25 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 so persistent is immutable + x like car is movable + x. it doesn't make sense to ask what the difference is. Am 25.09.2011 18:59, schrieb Phil Hagelberg: On Sep 25, 2011 6:12 AM, Dennis Haupt d.haup...@googlemail.com

can't see the error

2011-09-25 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 (let [rand (new java.util.Random) nextInt (fn [a] (.nextInt rand))] ((map (print) (iterate ((nextInt dummy) 0) the error is: java.lang.ClassCastException: java.lang.Integer cannot be cast to clojure.lang.IFn (NO_SOURCE_FILE:0) why does it want

Re: can't see the error

2011-09-25 Thread Daniel Solano Gomez
On Sun Sep 25 21:51 2011, Dennis Haupt wrote: (let [rand (new java.util.Random) nextInt (fn [a] (.nextInt rand))] ((map (print) (iterate ((nextInt dummy) 0) the error is: java.lang.ClassCastException: java.lang.Integer cannot be cast to clojure.lang.IFn (NO_SOURCE_FILE:0) why does

Re: can't see the error

2011-09-25 Thread Baishampayan Ghose
On Mon, Sep 26, 2011 at 1:21 AM, Dennis Haupt d.haup...@googlemail.com wrote: (let [rand (new java.util.Random) nextInt (fn [a] (.nextInt rand))] ((map (print) (iterate ((nextInt dummy) 0) the error is: java.lang.ClassCastException: java.lang.Integer cannot be cast to clojure.lang.IFn

Re: can't see the error

2011-09-25 Thread Mark Rathwell
(let [rand (new java.util.Random) nextInt (fn [a] (.nextInt rand))] ((map (print) (iterate ((nextInt dummy) 0) extra parenthesis in three places, and the first argument to iterate is a function, not a long: (let [rand (new java.util.Random) nextInt (fn [a] (.nextInt rand))] (map print

What happened to bignum support? (clojure 1.3.0)

2011-09-25 Thread George Kangas
Greetings, Clojure community. I've been playing around with clojure, and just downloaded 1.3.0. Here's a REPL session, wherein I define a power-of-two function, and apply it a couple of times. lecturer-01:clojure-1.3.0 kangas$ java -cp clojure-1.3.0.jar clojure.main Clojure 1.3.0

Re: What happened to bignum support? (clojure 1.3.0)

2011-09-25 Thread Baishampayan Ghose
   Greetings, Clojure community.  I've been playing around with clojure,    and just downloaded 1.3.0. Here's a REPL session, wherein I define    a power-of-two function, and apply it a couple of times. lecturer-01:clojure-1.3.0 kangas$ java -cp clojure-1.3.0.jar clojure.main Clojure 1.3.0

Re: What happened to bignum support? (clojure 1.3.0)

2011-09-25 Thread Sam Aaron
Hi George, On 25 Sep 2011, at 22:25, George Kangas wrote: Previous versions would silently, automagically convert to bignums and give me the answer I wanted. Is clojure-1.3.0 too serious, enterprisy, and Java-like for this sort of thing? I found no clue in the list of changes.

Re: Clojure 1.3 Released

2011-09-25 Thread Isaac Gouy
On Sep 23, 2:44 pm, Christopher Redinger redin...@gmail.com wrote: We are pleased to announce today the release of Clojure 1.3: The chameneos-redux program that now timeout after 30 minutes, previously completely after 100 seconds with Clojure 1.2 The thread-ring programs that now timeout

Re: aquamacs, slime and clojure on OS X

2011-09-25 Thread George Kangas
I'm quite happy using emacs's Scheme support. But then, I've never experienced the luxury of swank and slime. The Scheme modes work a bit better (for Clojure) than the Lisp modes, because: 1) it highlights matching square and curly brackets, not just parentheses; and 2) after you do C-u M-x

Re: What happened to bignum support? (clojure 1.3.0)

2011-09-25 Thread George Kangas
Thanks, Baishampayan and Sam! Since so little effort is required to get the BigInt behavior, you'll all be relieved to hear that I Approve of This Change. Should I ever need high performance from Clojure, I'll actually be happy about it. Notwithstanding the snarking tone of my original post.

Re: aquamacs, slime and clojure on OS X

2011-09-25 Thread Roberto Mannai
I have some trouble. I'm on OSX Lion, and have a few hours ago installed Aquamacs and SLIME from http://aquamacs.org/download.shtml. Then installed lein/swank/and clojure-mode, as Phil suggested. In order to make it work I had to remove the autodoc option, by commenting line 20 from

Re: beginner question

2011-09-25 Thread Andy Fingerhut
All persistent data structures are immutable, but not all immutable data structures are persistent. For example, imagine an immutable array that, unlike Clojure's vector data structure, implemented conj by copying the entire array into a new one with the original elements plus the new one.

clojure : collaborative learning ...

2011-09-25 Thread Jay Vyas
Hi guys : - We started the BioClojure project to learn about Clojure by applying it to some bioinformatics problems. -Its gone well, and we now know the basics of leiningan, java-interop, and basic map-oriented programming. -But of course, thats not enough --- we are now aspiring to reach that

Sample application as showcase of Clojure DSL / Metaprogramming?

2011-09-25 Thread alexey.petrushin
Hello, I'm learning Clojure (work mainly with Java and Ruby), interested in it after reading Paul Graham and watched very interesting presentation about persistent data structures by Rich Hickey. So, one of the cornerstones of Paul Graham articles is - Lisp has no syntax, so You can create any

Re: Something missing from the clojure compiler's java annotation support for gen-class and defrecord? Am I driving while bouncing off the guard rails?

2011-09-25 Thread zhi yang
what about code using 1.2, and clojure-contrib, how to make transition. -- 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

Re: Unable to use/refer/require clojure.contrib

2011-09-25 Thread zhi yang
is there easy way to make transition to 1.3 -- 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

Display elapsed time in REPL

2011-09-25 Thread captobvious
How do you get the REPL to display the elapsed time for a function? -- 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

Re: apply func

2011-09-25 Thread mnicky
inc takes number as an argument, not a seq. The function that you are probably looking for is map: (map inc [1 2 3 4]) -- 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

Re: Sample application as showcase of Clojure DSL / Metaprogramming?

2011-09-25 Thread David Nolen
On Sat, Sep 24, 2011 at 5:17 PM, alexey.petrushin alexey.petrus...@gmail.com wrote: P.S. One more small question - as far as I know right now ClojureScript doesn't support eval and requires Java for compiling, any plans to support this in future? ClojureScript compiler written in

Re: Display elapsed time in REPL

2011-09-25 Thread Alan Malloy
(time (expr)) On Sep 25, 2:43 am, captobvious chrismmag...@gmail.com wrote: How do you get the REPL to display the elapsed time for a function? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Sample application as showcase of Clojure DSL / Metaprogramming?

2011-09-25 Thread Ambrose Bonnaire-Sergeant
You might find my article useful: http://pragprog.com/magazines/2011-07/growing-a-dsl-with-clojure (Errata: http://forums.pragprog.com/forums/134/topics/9318) You can then dig into the code of stevedore: https://github.com/pallet/stevedore It's basically building an interpreter, but all of the

Re: Sample application as showcase of Clojure DSL / Metaprogramming?

2011-09-25 Thread Alexey Petrushin
1. No compilation step, quick live prototyping in browser. 2. Pure browser environment, no need to install anything. -- 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: Sample application as showcase of Clojure DSL / Metaprogramming?

2011-09-25 Thread Denis Washington
Am 24.09.2011 23:17, schrieb alexey.petrushin: Hello, I'm learning Clojure (work mainly with Java and Ruby), interested in it after reading Paul Graham and watched very interesting presentation about persistent data structures by Rich Hickey. Speaking of Paul Graham, have you read On Lisp?