Re: Problem Running ClojureScript on OpenJDK

2011-07-22 Thread Sean Corfield
On Fri, Jul 22, 2011 at 7:34 PM, Sean Corfield wrote: > I may just switch to the Sun, er, Oracle JVM since I've a feeling one > of my other projects (not yet migrated to my netbook) will require > that JVM anyway... Just an update: I installed Oracle's JDK and everything is working perfectly on m

Re: Problem Running ClojureScript on OpenJDK

2011-07-22 Thread db
The hello example runs after adding a call to setOptimizationLevel -1. --- a/src/clj/cljs/compiler.clj +++ b/src/clj/cljs/compiler.clj @@ -916,11 +916,12 @@ goog.require = function(rule) {Packages.clojure.lang.RT[\"var\"](\"cljs.compiler\ (print js)) (let [filename (.get jse

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

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 o

Re: Why is this code so slow?

2011-07-22 Thread Ken Wesson
On Fri, Jul 22, 2011 at 11:02 PM, Oskar 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 faster than the > p

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 p

Re: Problem Running ClojureScript on OpenJDK

2011-07-22 Thread Sean Corfield
On Fri, Jul 22, 2011 at 7:08 PM, db 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 encountered: > > http:/

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 can

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 swi

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 p

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 http://clojure.org/getti

Re: How to Return Vector of Vectors

2011-07-22 Thread Ken Wesson
On Fri, Jul 22, 2011 at 8:47 AM, octopusgrabbus wrote: > > On Jul 21, 10:15 pm, Ken Wesson wrote: >> On Thu, Jul 21, 2011 at 10:13 PM, Ken Wesson wrote: >> > On Thu, Jul 21, 2011 at 8:36 PM, octopusgrabbus >> > wrote: >> >> And do you have a suggestion for a functional way? > > Is all-csv-rows

Re: [ANN] ClojureScript

2011-07-22 Thread Sean Corfield
On Fri, Jul 22, 2011 at 10:48 AM, Vincent 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 > appljust as GWT.

Re: better community docs: getting started

2011-07-22 Thread Sean Corfield
On Fri, Jul 22, 2011 at 2:22 PM, Stuart Halloway 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 the community. > As a

Re: better community docs: getting started

2011-07-22 Thread Alan Malloy
On Jul 22, 3:32 pm, Phil Hagelberg wrote: > Stuart Halloway 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. > > That's a huge improvement; glad t

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 t

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: getting started

2011-07-22 Thread Phil Hagelberg
Stuart Halloway 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 some attention. I have h

Re: JSON library for clojure 1.3

2011-07-22 Thread Lee Hinman
On Jul 22, 3:05 pm, Islon Scherer 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, compiling:(org/danlarkin/json/encoder.clj:144) Check o

Re: [ANN] CongoMongo 0.1.6-SNAPSHOT

2011-07-22 Thread Michael Klishin
2011/7/22 Sean Corfield > 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 because you are subsc

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 Cloj

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: 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 p

Re: better community docs: getting started

2011-07-22 Thread Aaron Cohen
On Fri, Jul 22, 2011 at 5:22 PM, Stuart Halloway 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 > > I really like how minimal that is now. A quick suggestion: shouldn't the Copyright date be updated too?

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 http://clojure.org/getting_started,

Re: JSON library for clojure 1.3

2011-07-22 Thread Sean Corfield
On Fri, Jul 22, 2011 at 2:05 PM, Islon Scherer 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/ World Singles, LLC. -- h

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 wrote: > Is there a clojure json library that works in clojure 1.3? > I tried danlarkin/clojure-json but it gives me error:

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 subscribe

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 c

Re: Why that slowness?

2011-07-22 Thread Alan Malloy
On Jul 21, 11:23 pm, Alan Malloy wrote: > On Jul 21, 2:39 pm, Tassilo Horn wrote: > > Alan Malloy 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.

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 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 wrote: > >>> On Tue, 2011-07-19 at 20:14 -0400, Adam Richardson wrote: > On Tue, Jul 19, 2011 at 6:23 PM, Brian Hurt wrote: > >>

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 wrote: > that means , if i write a clojure program using javax.swin

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" 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 wi

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 subscri

Re: [ANN] CongoMongo 0.1.6-SNAPSHOT

2011-07-22 Thread Sean Corfield
On Fri, Jul 22, 2011 at 1:02 AM, Bruce Durling 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: http://clojars.org/congom

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 clo

Re: How to Return Vector of Vectors

2011-07-22 Thread octopusgrabbus
On Jul 21, 10:15 pm, Ken Wesson wrote: > On Thu, Jul 21, 2011 at 10:13 PM, Ken Wesson wrote: > > On Thu, Jul 21, 2011 at 8:36 PM, octopusgrabbus > > wrote: > >> And do you have a suggestion for a functional way? Is all-csv-rows being re-bound with the results of [] and then returned as the fun

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: Anyone on Google+ yet?

2011-07-22 Thread Tassilo Horn
Simon Holgate 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 that posts from new members

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 s

Re: Why is this code so slow?

2011-07-22 Thread Ken Wesson
On Thu, Jul 21, 2011 at 9:32 AM, Oskar 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 understand 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 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 wrote: > > Yes. It worked fine. > > > On Thu, Jul 21, 2011 at 5:48 PM, Devin Walters wrote: > > >>  Did you run script/bootstrap?

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" g

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, pm

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 wrote: > Jeremy, I can send you an invitation. Do you need it? > > On Fri, Jul 15, 2011 at 4:53 PM, Jeremy Heiler wrote: > > > > > > > > > Is Google+ invite based? How did all of you get a profile? -- You re

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 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,

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 (boo

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 wrote: >>> On Tue, 2011-07-19 at 20:14 -0400, Adam Richardson wrote: On Tue, Jul 19, 2011 at 6:23 PM, Brian Hurt wrote: What's this awk-a-mel he speaks of

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

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 unsubsc

Re: How to Return Vector of Vectors

2011-07-22 Thread octopusgrabbus
Thanks for the example. On Jul 21, 10:15 pm, Ken Wesson wrote: > On Thu, Jul 21, 2011 at 10:13 PM, Ken Wesson wrote: > > On Thu, Jul 21, 2011 at 8:36 PM, octopusgrabbus > > wrote: > >> And do you have a suggestion for a functional way? > > > Yes. Change > > > (doseq [one-full-csv-row all-csv-ro

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: [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 wrote: > On Clojars. Fixes (almost) all reflection warnings but should > otherwise be identical to 0.1.5-SNAPSHOT. > -- > Sean A Corfield -- (904)

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 - http://

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 wrote: > Video is now available of Rich Hickey's ta