Re: Problem Running ClojureScript on OpenJDK

2011-07-23 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: Problem Running ClojureScript on OpenJDK

2011-07-23 Thread Sean Corfield
On Fri, Jul 22, 2011 at 7:34 PM, Sean Corfield seancorfi...@gmail.com 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

Re: better community docs: getting started

2011-07-23 Thread Sergey Didenko
I checked the great manual 113 Design Guidelines for Homepage Usability from Jakob Nielsen and here are my thoughts about the main page (clojure.org ): 1) It's misleading that some links in the left pane are underlined (API, Recent changes, Libraries, Community) while others are not. 2) It's

One syntax to rule them all

2011-07-23 Thread Jozef Wagner
With the release of ClojureScript, I can use nothing but Clojure in my apps! http://wagjo.blogspot.com/2011/07/one-syntax-to-rule-them-all.html Clojure can run on top of JVM, CLR and Javascript VM. Clojure data structures can replace syntax of SQL result sets, JSON, XML, HTML, CSS and other

Re: ClojureScript announcement video

2011-07-23 Thread Harrison Maseko
Thanks Baishampayan. That's exactly what I was looking for, the download link. -h. On Jul 22, 9:17 am, Baishampayan Ghose b.gh...@gmail.com wrote: Video is now available of Rich Hickey's talk at ClojureNYC yesterday announcing ClojureScript.

Re: One syntax to rule them all

2011-07-23 Thread Mark Derricutt
...and immediately a new attack vector is born with Clojure structure injection attacks... I so hope people don't start passing executable clojure back and forth. On 23/07/2011, at 7:54 PM, Jozef Wagner wrote: Clojure can run on top of JVM, CLR and Javascript VM. Clojure data structures can

Re: Project Management with Leiningen or Gradle

2011-07-23 Thread Meikel Brandmeyer
Hi, Am 21.07.2011 um 23:14 schrieb 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. There are a lot of plugins available for leiningen,

Re: One syntax to rule them all

2011-07-23 Thread Jozef Wagner
That's why *read-eval* should IMHO default to false. Anybody knows the reason why it doesn't? On Saturday, July 23, 2011 10:35:40 AM UTC+2, Mark Derricutt wrote: ...and immediately a new attack vector is born with Clojure structure injection attacks... I so hope people don't start passing

Re: Why is this code so slow?

2011-07-23 Thread Dmitry Gutov
Sorry, I overlooked the fact that the function checks if the value is cached at the top, so, with the way you're running the benchmark, the recursive calls don't result in more recursive calls. Eliminating them gives performance increase of about 30%, but that's nothing compared to adding

Re: One syntax to rule them all

2011-07-23 Thread daly
On Sat, 2011-07-23 at 03:03 -0700, Jozef Wagner wrote: That's why *read-eval* should IMHO default to false. Anybody knows the reason why it doesn't? -1 On Saturday, July 23, 2011 10:35:40 AM UTC+2, Mark Derricutt wrote: ...and immediately a new attack vector is born with Clojure

Re: One syntax to rule them all

2011-07-23 Thread Stuart Halloway
The fact that Read and Eval are separate steps is fundamental here. The ClojureScript reader does not eval, and the Clojure reader gives you the knobs you need to do what you want. Stu ...and immediately a new attack vector is born with Clojure structure injection attacks... I so hope

Re: One syntax to rule them all

2011-07-23 Thread Mark Derricutt
IMHO *read-eval* should ONLY ever be true -IF- you're using a REPL. Having that on by default feels very insecure. And whilst code is data, and would be great to pass around, thats awesome when you're in a position to trust both ends of the system - but in the world of browsers and javascript

Re: One syntax to rule them all

2011-07-23 Thread Mark Derricutt
...and the moment I hit send I remembered that in a language like clojure - read/eval is the only way to get code in the running system, unless you're using AOT classes and turning that off would be essentially turning off clojure. On 24/07/2011, at 12:04 AM, Mark Derricutt wrote: IMHO

Re: Why is this code so slow?

2011-07-23 Thread Dmitry Gutov
Ahem. Here is a more idiomatic version that runs under half a second, no annotations required. (def vs (atom {})) (defn sk [k] (if (@vs k) (@vs k) (let [ans (if ( k 56) (- (mod (+ 13 (- (* k 23)) (* 37 k k k)) 100)

Re: One syntax to rule them all

2011-07-23 Thread Luc Prefontaine
We have been delivering our software AOT compiled for a more than a year roughly. We never disabled read-eval... We are sending messages serialized in Clojure on our message bus in our next release instead of serializing with Yaml. We do however encrypt it and most of that traffic is concealed

Re: ClojureScript

2011-07-23 Thread atucker
Aughh! This is great (and a smart move). But I'd assumed CHouser's original Clojurescript was dead, and spent the last two months learning Javascript itself! Why so secretive?? A On Jul 21, 1:40 am, Christopher Redinger redin...@gmail.com wrote: In case you missed the announcement streamed

Re: emacs-clojure-vagrant: a sane development virtual environment

2011-07-23 Thread nil
So my problem was the line endings in clojure_emacs.sh were windows- style, not unix. But now the next problem with my environment is that the output from vagrant up reports that emacs can't open the .emacs.d/init.el file. I suppose it's on this line: emacs --batch -l .emacs.d/init.el -f

Re: Clojure Books

2011-07-23 Thread Stefan Kamphausen
Is this post only asking for English books? cheers, stefan -- 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

[parallel][incanter]State, how to do it right ? (rng state for parallel computing)

2011-07-23 Thread bernardH
Context : I'm currently comparing (ease of implementation *and* performance) C++ and Clojure (no flame war intented : I *love* them both) trying to find when / how one can code in Clojure rather than in C++. Problem : Rewriting some financial computing code, I was very pleased with my first

Re: Anyone on Google+ yet?

2011-07-23 Thread Simon Holgate
Thank you, Tassilo! On Jul 22, 12:55 pm, Tassilo Horn tass...@member.fsf.org wrote: 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

clojurescript: How to transform a clojurescript map to a javascript object?

2011-07-23 Thread Robert Luo
To interact with various javascript libraries, they often requires you provide data in javascript object, while in clojurescript we normally use a map. How can we transform a map to javascript object and vice versa? BTW, now I use (js* {width: 400, height: 300}) to do it. -- You received this

[ANN] Prudence 1.1: A RESTful web development framework for Clojure (and Scripturian, and Savory)

2011-07-23 Thread Tal Liron
I'm very happy to announce the official release of Prudence 1.1. http://threecrickets.com/prudence/ Prudence is a container and platform for scalable RESTful web applications and services. It features powerful HTML generation, letting you insert Clojure

Needing type hinting help for number crunching

2011-07-23 Thread bernardH
Hi, I have rewritten some number crunching code from C++ to Clojure. I was pleasantly surprised to find that the Clojure code is within 10x of the C++ excecution time (both multicore implementations), but always eager for more speed, I (reluctantly) moved away from incanter (only used a couple of

Re: Anyone on Google+ yet?

2011-07-23 Thread Simon Holgate
Here's my shiny new account... http://gplus.to/sjh123 On Jul 21, 7:26 pm, Simon Holgate simon.holg...@googlemail.com wrote: 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

Re: ClojureScript Presentation - video

2011-07-23 Thread Brian
Here ya go: http://blip.tv/clojure/rich-hickey-unveils-clojurescript-5399498 Brian On Jul 21, 1:09 am, Harrison Maseko lis...@gmail.com wrote: Hi all, I did not watch the live cast of Rich's presentation on ClojureScript. Could someone please point me to a video or audio recording of the

Leiningen on OpenBSD

2011-07-23 Thread Scott Scites
While walking through the Clojure/Heroku/Database tutorial the Leiningen REPL fails to display a prompt. When I control-c out, the final output before closing shows a connection being made and the prompt. If I change out of the project directory and lein repl I get the connection and the

[ANN] Prudence 1.1: A RESTful web development framework for Clojure (and Scripturian, and Savory)

2011-07-23 Thread Tal Liron
I'm very happy to announce the official release of Prudence 1.1. http://threecrickets.com/prudence/ Prudence is a container and platform for scalable RESTful web applications and services. It features powerful HTML generation, letting you insert Clojure scriptlets into web pages, or write

Re: Leiningen on OpenBSD

2011-07-23 Thread Aaron Bedra
The java that you cobble together for openbsd is really a mess. Unless they have a working version of the standard jdk, I wouldn't bother. I love and support the openbsd project, but I stay away from any kind of java on openbsd. Cheers, Aaron Bedra -- Clojure/core http://clojure.com On Jul

Re: [incanter]State, how to do it right ? (rng state for parallel computing)

2011-07-23 Thread cej38
I don't know if calx is the best choice or not. Also, I know that this suggestion isn't clojure, but AMD is working on a java API for running on code on in openCL: http://developer.amd.com/zones/java/aparapi/pages/default.aspx I haven't used it at all (my java knowledge is about zero, and I

Problem with ClojureScript and Node.js

2011-07-23 Thread Benny Tsai
I'm experimenting with the latest build of ClojureScript from github on Windows. I can get as far as compiling nodehello.cljs from the Quick Start guide, but I get the following error when trying to run the compiled .js file with Node: node.js:195 throw e; // process.nextTick error,

Re: Problem with ClojureScript and Node.js

2011-07-23 Thread Benny Tsai
I should add that I did have to make one change to closure.clj in order to compile nodehello.cljs; I changed the following line in the ns-file-name function: path (string/replace (munge ns) \. java.io.File/separatorChar)] To: path (string/replace (munge ns) \. \/)] -- You received this