Re: Why that slowness?

2011-07-22 Thread Alan Malloy
On Jul 21, 2:39 pm, Tassilo Horn tass...@member.fsf.org wrote: Alan Malloy a...@malloys.org writes: Hi Alan, Any hints? (1) The first version is doing way less work. It tries the first rule until it runs out of steam, then the second rule, then the third rule. If the third rule

Re: Problem Running ClojureScript on OpenJDK

2011-07-22 Thread Sean Corfield
And then you can't run the resulting JS on node - anything I can try to get you guys more info? sean@sean-netbook:~/node$ node nodehello.js /home/sean/node/nodehello.js:1 (defn test-stuff node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^

Re: ClojureScript announcement video

2011-07-22 Thread kjeldahl
Maybe I'm just having connectivity issues today, but I had lots of trouble getting anything from that link (endless spinner). I had more luck with this link (which is to the same video): http://blip.tv/play/AYLJyC4C . On Jul 22, 5:34 am, Chouser chou...@gmail.com wrote: Video is now available of

Re: ClojureScript announcement video

2011-07-22 Thread Baishampayan Ghose
Video is now available of Rich Hickey's talk at ClojureNYC yesterday announcing ClojureScript. http://blip.tv/clojure/rich-hickey-unveils-clojurescript-5399498 Thanks to the Clojure/core team for getting this online so rapidly! Link to download the file directly, just in case -

Re: [ANN] CongoMongo 0.1.6-SNAPSHOT

2011-07-22 Thread Bruce Durling
Sean, Great news. Where is the best git repo to follow this from/issue pull requests to? cheers, Bruce On Fri, Jul 22, 2011 at 03:58, Sean Corfield seancorfi...@gmail.com wrote: On Clojars. Fixes (almost) all reflection warnings but should otherwise be identical to 0.1.5-SNAPSHOT. -- Sean A

Re: BUG REPORT: ClojureScript : Portable Path Support

2011-07-22 Thread Mark Derricutt
Oh don't say that! That was going to be my weekend project - looking at adding ClojureScript support to clojure-maven-plugin. I made a coffee-maven-plugin for our web guys the other week and now we've got a chance to sway them over to clojure ( well, I don't think that'll happen easily tho ).

Re: How to Return Vector of Vectors

2011-07-22 Thread octopusgrabbus
Thanks for the example. On Jul 21, 10:15 pm, Ken Wesson kwess...@gmail.com wrote: On Thu, Jul 21, 2011 at 10:13 PM, Ken Wesson kwess...@gmail.com wrote: On Thu, Jul 21, 2011 at 8:36 PM, octopusgrabbus octopusgrab...@gmail.com wrote: And do you have a suggestion for a functional way?

Re: [ANN] ClojureScript

2011-07-22 Thread Vincent
What is possible use of ClojureScript ? -- 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

Re: How to Return Vector of Vectors

2011-07-22 Thread Ulises
An alternative is to use partition together with interleave: user (partition 2 (interleave [ 1 2 ] [ \a \b ])) ((1 \a) (2 \b)) Combined with (map vec ...) you should get: user (map vec (partition 2 (interleave [ 1 2 ] [ \a \b ]))) ([1 \a] [2 \b]) user U -- You received this message because

Argh - was Re: Re: Re: Re: Re: Re: The Last Programming Language

2011-07-22 Thread Nick
On 22/07/11 05:30, daly wrote: On Thu, 2011-07-21 at 23:03 -0400, Jeff Dik wrote: On Tue, Jul 19, 2011 at 9:04 PM, daly d...@axiom-developer.org wrote: On Tue, 2011-07-19 at 20:14 -0400, Adam Richardson wrote: On Tue, Jul 19, 2011 at 6:23 PM, Brian Hurt bhur...@gmail.com wrote: What's

Why is this code so slow?

2011-07-22 Thread Oskar
Hi! I was doing some project euler problems and I wrote the following code. It is really slow, and I would like to know why and how it can be made faster. Not that I care much about this code in particular, but I want to understand Clojure better. (def vs (int-array 401)) (def ss

Re: Anyone on Google+ yet?

2011-07-22 Thread Eric Budd
gplus.to/calamitous -- 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,

suggestion: update

2011-07-22 Thread Vinzent
Hello, in clojure.core we have assoc and assoc-in, dissoc and dissoc-in (in the incubator), but there is only update-in, without update. Implementation might look like this: (defn update [m kfs] (let [coll (partition 2 kfs)] (reduce (fn [m [k f]] (update-in m [k] f)) m coll)))

Re: Anyone on Google+ yet?

2011-07-22 Thread Simon Holgate
Hi, has anyone got a spare invite for me, please? :) On Jul 15, 3:09 pm, Sergey Didenko sergey.dide...@gmail.com wrote: Jeremy, I can send you an invitation. Do you need it? On Fri, Jul 15, 2011 at 4:53 PM, Jeremy Heiler jeremyhei...@gmail.comwrote: Is Google+ invite based? How did

Re: BUG REPORT: ClojureScript : Portable Path Support

2011-07-22 Thread Troy Clevenger
This patch here fixes the path issues on windows for me. I haven't tested it on a non-windows system though. Thought I'd post it here in case it helps anyone. http://content.wuala.com/contents/Daedalus/DropBox/Fixed-unoptimized-compile-in-windows.diff?dl=1 Regards, Troy On Jul 20, 10:12 pm,

Project Management with Leiningen or Gradle

2011-07-22 Thread Dan
Aside from the fact that Leiningen is coded in Clojure and Gradle in Groovy are there any other noteworthy differences? Are there any benefits of using Leiningen over Gradle and vice-versa? Thanks. Best, Dan -- You received this message because you are subscribed to the Google Groups Clojure

Re: Can't find clojure.main in clojurescript's script/repl on Windows

2011-07-22 Thread Troy Clevenger
On Jul 21, 5:50 pm, Tamreen Khan histor...@gmail.com wrote: Hmm, I have clojure.jar, but not clojure-1.3.jar in clojurescript/lib On Thu, Jul 21, 2011 at 5:49 PM, Tamreen Khan histor...@gmail.com wrote: Yes. It worked fine. On Thu, Jul 21, 2011 at 5:48 PM, Devin Walters dev...@gmail.com

Re: Why is this code so slow?

2011-07-22 Thread Ken Wesson
On Thu, Jul 21, 2011 at 9:32 AM, Oskar oskar.kv...@gmail.com wrote: Hi! I was doing some project euler problems and I wrote the following code. It is really slow, and I would like to know why and how it can be made faster. Not that I care much about this code in particular, but I want to

Re: [ANN] ClojureScript

2011-07-22 Thread Mark Rathwell
The main target use case seems to be browser based apps that would make heavy use of javascript, the kind of apps that would otherwise be built using with libraries/frameworks such as Google Closure Library, Dojo, SproutCore, Backbone w/ jQuery, etc. Michael Fogus has also mentioned command line

Re: Anyone on Google+ yet?

2011-07-22 Thread Tassilo Horn
Simon Holgate simon.holg...@googlemail.com writes: Hi, has anyone got a spare invite for me, please? :) I did so. :-) Bye, Tassilo -- 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

Re: Why is this code so slow?

2011-07-22 Thread David Nolen
(set! *warn-on-reflection* true) (set! *unchecked-math* true) (defn sk [^longs vs ^booleans ss] (fn ^long [^long k] (if (aget ss k) (aget vs k) (let [ans (if ( k 56) (- (mod (+ 13 (- (* k 23)) (* 37 k k k)) 100) 50)

Re: How to Return Vector of Vectors

2011-07-22 Thread octopusgrabbus
On Jul 21, 10:15 pm, Ken Wesson kwess...@gmail.com wrote: On Thu, Jul 21, 2011 at 10:13 PM, Ken Wesson kwess...@gmail.com wrote: On Thu, Jul 21, 2011 at 8:36 PM, octopusgrabbus octopusgrab...@gmail.com wrote: And do you have a suggestion for a functional way? Is all-csv-rows being

Re: ClojureScript

2011-07-22 Thread faenvie
in the first place i did not realize, how smart this move is, but then ... clojure rocks ... javascript reaches ... and as a sideeffect a first implementation of clojure-in-clojure is rolled out into the wild even before clojure 1.3 is released. in addition that works as a showcase for porting

Re: [ANN] CongoMongo 0.1.6-SNAPSHOT

2011-07-22 Thread Sean Corfield
On Fri, Jul 22, 2011 at 1:02 AM, Bruce Durling b...@otfrom.com wrote: Great news. Where is the best git repo to follow this from/issue pull requests to? The official repo is https://github.com/aboekhoff/congomongo Several of us now have push rights to the official Clojars location:

Re: [ANN] ClojureScript

2011-07-22 Thread Vincent
that means , if i write a clojure program using javax.swing to build windows based appl. manipulating database at backend ( all written in clojure) , this will be converted to javascript and we will be able to run as web appljust as GWT. -- You received this message because you are

Re: [ANN] ClojureScript

2011-07-22 Thread Wilson MacGyver
No I don't think so. Clojurescript doesn't have java libs, so your swing calls will nit work On Jul 22, 2011 1:49 PM, Vincent vincent@gmail.com wrote: that means , if i write a clojure program using javax.swing to build windows based appl. manipulating database at backend ( all written in

Re: [ANN] ClojureScript

2011-07-22 Thread Mark Rathwell
No, you cannot use java libraries with ClojureScript, you would instead use the Google Closure Library or pure clojure. Same as with the CLR version, you can only make use of .NET libs. On Fri, Jul 22, 2011 at 1:48 PM, Vincent vincent@gmail.com wrote: that means , if i write a clojure

Re: Argh - was Re: Re: Re: Re: Re: Re: The Last Programming Language

2011-07-22 Thread Alan Malloy
On Jul 22, 3:35 am, Nick oinksoc...@letterboxes.org wrote: On 22/07/11 05:30, daly wrote: On Thu, 2011-07-21 at 23:03 -0400, Jeff Dik wrote: On Tue, Jul 19, 2011 at 9:04 PM, daly d...@axiom-developer.org wrote: On Tue, 2011-07-19 at 20:14 -0400, Adam Richardson wrote: On Tue, Jul 19, 2011

Re: Why that slowness?

2011-07-22 Thread Alan Malloy
On Jul 21, 11:23 pm, Alan Malloy a...@malloys.org wrote: On Jul 21, 2:39 pm, Tassilo Horn tass...@member.fsf.org wrote: Alan Malloy a...@malloys.org writes: Hi Alan, Any hints? (1) The first version is doing way less work. It tries the first rule until it runs out of steam, then

Re: Why is this code so slow?

2011-07-22 Thread Dmitry Gutov
In case the two replies above didn't drive the point home, the Python version is not recursive (it uses results memoized in the data array). So, not the same thing. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

JSON library for clojure 1.3

2011-07-22 Thread Islon Scherer
Is there a clojure json library that works in clojure 1.3? I tried danlarkin/clojure-json but it gives me error: java.lang.IllegalArgumentException: Unable to resolve classname: IPersistentMap, compiling:(org/danlarkin/json/encoder.clj:144) -- You received this message because you are

Re: JSON library for clojure 1.3

2011-07-22 Thread Wilson MacGyver
I'm still using https://github.com/mmcgrana/clj-json with 1.2, it's worth a try though, since it's just a wrapper for jackson. On Fri, Jul 22, 2011 at 5:05 PM, Islon Scherer islonsche...@gmail.com wrote: Is there a clojure json library that works in clojure 1.3? I tried danlarkin/clojure-json

Re: JSON library for clojure 1.3

2011-07-22 Thread Sean Corfield
On Fri, Jul 22, 2011 at 2:05 PM, Islon Scherer islonsche...@gmail.com wrote: Is there a clojure json library that works in clojure 1.3? How about: [org.clojure/data.json 0.1.1] (formerly clojure.contrib.json)? -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/

better community docs: getting started

2011-07-22 Thread Stuart Halloway
I am working through a few of the pages on clojure.org with two goals: (1) remove or fix anything that is outdated or incorrect (2) move to the community site (dev.clojure.org) things that should be maintained by the community. As a first pass, I have trimmed

Re: better community docs: getting started

2011-07-22 Thread Aaron Cohen
On Fri, Jul 22, 2011 at 5:22 PM, Stuart Halloway stuart.hallo...@gmail.comwrote: I am working through a few of the pages on clojure.org with two goals: (1) remove or fix anything that is outdated or incorrect I really like how minimal that is now. A quick suggestion: shouldn't the Copyright

Re: JSON library for clojure 1.3

2011-07-22 Thread Islon Scherer
Thanks Sean, org.clojure/data.json worked like a charm. -- 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

better community docs: contrib

2011-07-22 Thread Stuart Halloway
The Contrib link in the top right corner of clojure.org now points to http://dev.clojure.org/display/doc/Clojure+Contrib. Currently, this landing page is just a list of links to the various contrib projects. Not great, but that is better than the old link, which simply dumped you into the old,

Re: better community docs: getting started

2011-07-22 Thread Stuart Halloway
I am working through a few of the pages on clojure.org with two goals: (1) remove or fix anything that is outdated or incorrect I really like how minimal that is now. A quick suggestion: shouldn't the Copyright date be updated too? Yuo. Fixed, thanks. Stu Stuart Halloway

Re: [ANN] CongoMongo 0.1.6-SNAPSHOT

2011-07-22 Thread Michael Klishin
2011/7/22 Sean Corfield seancorfi...@gmail.com I noticed a ticket opened asking for a non-snapshot release - any opinions on that? Sounds like something that deserves 0.1.6, not 0.2.0. -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- You received this message

Re: JSON library for clojure 1.3

2011-07-22 Thread Lee Hinman
On Jul 22, 3:05 pm, Islon Scherer islonsche...@gmail.com wrote: Is there a clojure json library that works in clojure 1.3? I tried danlarkin/clojure-json but it gives me error: java.lang.IllegalArgumentException: Unable to resolve classname: IPersistentMap,

Re: better community docs: getting started

2011-07-22 Thread Phil Hagelberg
Stuart Halloway stuart.hallo...@gmail.com writes: As a first pass, I have trimmed http://clojure.org/getting_started, and quite clearly linked out to http://dev.clojure.org/display/doc/Getting+Started for advice on tools, IDEs, etc. That's a huge improvement; glad to see it finally getting

Re: better community docs: contrib

2011-07-22 Thread pmbauer
Would be glad to help. I have a JIRA account (CA signed, etc) but no perms to add/edit pages. -- 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: better community docs: contrib

2011-07-22 Thread pmbauer
P.S. JIRA account ID: pmbauer -- 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

Re: better community docs: getting started

2011-07-22 Thread Alan Malloy
On Jul 22, 3:32 pm, Phil Hagelberg p...@hagelb.org wrote: Stuart Halloway stuart.hallo...@gmail.com writes: As a first pass, I have trimmedhttp://clojure.org/getting_started, and quite clearly linked out tohttp://dev.clojure.org/display/doc/Getting+Startedfor advice on tools, IDEs, etc.

Re: better community docs: getting started

2011-07-22 Thread Sean Corfield
On Fri, Jul 22, 2011 at 2:22 PM, Stuart Halloway stuart.hallo...@gmail.com wrote: I am working through a few of the pages on clojure.org with two goals: (1) remove or fix anything that is outdated or incorrect (2) move to the community site (dev.clojure.org) things that should be maintained by

Re: [ANN] ClojureScript

2011-07-22 Thread Sean Corfield
On Fri, Jul 22, 2011 at 10:48 AM, Vincent vincent@gmail.com wrote: that means , if i write a clojure program using javax.swing to build windows based appl. manipulating database at backend ( all written in clojure) , this will be converted to javascript and we will be able to run as web

Re: How to Return Vector of Vectors

2011-07-22 Thread Ken Wesson
On Fri, Jul 22, 2011 at 8:47 AM, octopusgrabbus octopusgrab...@gmail.com wrote: On Jul 21, 10:15 pm, Ken Wesson kwess...@gmail.com wrote: On Thu, Jul 21, 2011 at 10:13 PM, Ken Wesson kwess...@gmail.com wrote: On Thu, Jul 21, 2011 at 8:36 PM, octopusgrabbus octopusgrab...@gmail.com wrote:

Re: better community docs: getting started

2011-07-22 Thread Stuart Halloway
I am working through a few of the pages on clojure.org with two goals: (1) remove or fix anything that is outdated or incorrect (2) move to the community site (dev.clojure.org) things that should be maintained by the community. As a first pass, I have trimmed

Re: JSON library for clojure 1.3

2011-07-22 Thread Islon Scherer
I'll take a look, but I only need basic json encoding/decoding right now. Islon -- 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

Re: Problem Running ClojureScript on OpenJDK

2011-07-22 Thread db
I believe that the issue can be avoided with OpenJDK by disabling Rhino optimization. generated bytecode for method exceeds 64K limit. (cljs/core.cljs#2743) This appears to be identical to what the fantom guys have encountered: http://fantom.org/sidewalk/topic/1181 Although instead of

A Couple of emacs questions

2011-07-22 Thread yair
I searched google for these but came up short, I was wondering if anyone here could help. I use emacs with clojure and really like it. There are two things I haven't been able to do successfully so far. 1. Following the CDT instructions here (http://georgejahad.com/clojure/ swank-cdt.html), I

Re: Problem Running ClojureScript on OpenJDK

2011-07-22 Thread Sean Corfield
On Fri, Jul 22, 2011 at 7:08 PM, db donald.bl...@gmail.com wrote: I believe that the issue can be avoided with OpenJDK by disabling Rhino optimization.    generated bytecode for method exceeds 64K limit. (cljs/core.cljs#2743) This appears to be identical to what the fantom guys have

Re: Why is this code so slow?

2011-07-22 Thread Oskar
Thanks for the replies everyone! About the Python version not being recursive: Oh yeah, didn't even think about that, but it shouldn't matter that much, or? With all the right type hints the clojure version should be much faster than the previous one even with recursion, right? On Jul 22, 10:51 

Re: Why is this code so slow?

2011-07-22 Thread Ken Wesson
On Fri, Jul 22, 2011 at 11:02 PM, Oskar oskar.kv...@gmail.com wrote: Thanks for the replies everyone! About the Python version not being recursive: Oh yeah, didn't even think about that, but it shouldn't matter that much, or? With all the right type hints the clojure version should be much

Re: Why is this code so slow?

2011-07-22 Thread Sean Corfield
FWIW, out of the box on Clojure 1.3.0 with no changes at all, your code took about 8 seconds on my machine on the first run. Since your sk function will reuse the arrays, subsequent runs don't calculate any new values, they just return the pre-calculated ones. Subsequent runs took about 2 seconds

Re: ClojureScript

2011-07-22 Thread Arthur Edelstein
Hi Christopher, We plan to have a recording of tonight's talk posted soon. I'm looking forward to seeing it. Thanks! :) Arthur -- 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