Re: Another ClojureScript app in the wild

2011-08-18 Thread Sam Aaron
Very cool! Now the logic of pacman is in a form I can easily read :-) Out of interest, do you know why it only works in Chrome? Doesn't the closure library do any work to shield you from from the browser differences, or is it simply a performance issue with the Chrome js engine the only one oper

Clojure Speed performance test

2011-08-18 Thread Roberto Mannai
Hello, I recently stumbled upon this page: http://java.dzone.com/articles/contrasting-performance They are comparing several languages (Java, Scala, Python, Erlang, Clojure, Ruby, Groovy, Javascript), and Clojure rated very badly: Object Oriented List Reduction Elemen

Re: Another ClojureScript app in the wild

2011-08-18 Thread Matthew Gilliard
> Very cool! Now the logic of pacman is in a form I can easily read :-) I assume you are referring to the gameinternals post not my code ! I do not know why it only works in Chrome. The error "too much recursion" is confusing. It happens before the game is rendered so I suspect it's in the cod

Re: Clojure-CLR, CLASSPATH, clojure.load.path and Cygwin

2011-08-18 Thread Alan D. Salewski
On Thu, Aug 18, 2011 at 01:39:21AM -0400, Ken Wesson spake thus: > On Thu, Aug 18, 2011 at 12:32 AM, Alan D. Salewski wrote: > > On Wed, Aug 17, 2011 at 01:47:53PM -0400, Ken Wesson spake thus: > >> On Wed, Aug 17, 2011 at 9:48 AM, Alan D. Salewski wrote: > >> > I approached the question from the

Re: lein gets error java 1.6.0_26 ???

2011-08-18 Thread Luc Prefontaine
You are missing the robert hook library. https://github.com/technomancy/robert-hooke This is used by leiningen and should be installed as part of the leiningen install. Did you do a clean reinstall of leinigen with the windows dist to ensure you have all the pieces ? Luc P. On Wed, 17 Aug 20

Re: Clojure Speed performance test

2011-08-18 Thread Paulo Pinto
Maybe Clojure code needs some type annotations. On Aug 18, 9:40 am, Roberto Mannai wrote: > Hello, > I recently stumbled upon this > page:http://java.dzone.com/articles/contrasting-performance > They are comparing several languages (Java, Scala, Python, Erlang, > Clojure, Ruby, Groovy, Javascrip

REPL and Leiningen checkouts

2011-08-18 Thread J . Pablo Fernández
Hello, I want to play around with a library I'm using so I started using the Leiningen checkouts feature and if I do lein repl it works. But when I'm running the REPL inside my editor I'm not running it through lein. Any ideas how to get my REPL to pick up checkouts like when I run it with lein

Re: Clojure-CLR, CLASSPATH, clojure.load.path and Cygwin

2011-08-18 Thread Dimitre Liotev
Ken Wesson writes: >> I approached the question from the perspective of one wanting to invoke >> Clojure-CLR with the ability to manipulate the value of >> 'clojure.class.path' "on-the-fly" in a way that is common and natural >> for *nix folks. > > And with 'env' it clearly is possible to manipul

clojurescript support of ns-* functions

2011-08-18 Thread Jim Blomo
Hi, I'm enjoying playing with ClojureScript so far, great job guys! I'm wondering if functions like ns-aliases and Vars like *ns* will be implemented in future versions of ClojureScript. If not, are there recommended workarounds or should I just hardcode the values? Thanks, Jim -- You received

Re: clojure-jack-in vs. slime-connect

2011-08-18 Thread Phil Hagelberg
On Wed, Aug 17, 2011 at 8:53 AM, Jose A. Ortega Ruiz wrote: > I use (technomancy's) slime with clojure-mode (both elpa-installed) > without any issues (via lein swank and slime-connect). While the newish > clojure-jack-in works too, i prefer slime-connect (because i save the > time of re-evaluatin

Re: REPL and Leiningen checkouts

2011-08-18 Thread Phil Hagelberg
2011/8/16 J. Pablo Fernández : > I want to play around with a library I'm using so I started using the > Leiningen checkouts feature and if I do lein repl it works. But when I'm > running the REPL inside my editor I'm not running it through lein. Any ideas > how to get my REPL to pick up checkouts

Re: REPL and Leiningen checkouts

2011-08-18 Thread J . Pablo Fernández
I'm currently using La Clojure. Not sure if I can directly hook it to lein. -- 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 patien

Re: Clojure Speed performance test

2011-08-18 Thread David Nolen
The Clojure code posted there is pretty awful and shows a gross, gross misunderstanding of Clojure data types. I submitted one improved version already, but didn't spend the time to make it really, really fast. For this particular kind of pointless benchmark it's not hard to get identical Java per

Re: Clojure Speed performance test

2011-08-18 Thread David Nolen
On Thu, Aug 18, 2011 at 7:40 AM, Paulo Pinto wrote: > Maybe Clojure code needs some type annotations. Type annotations will not help this code at all. David -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Re: Clojure Speed performance test

2011-08-18 Thread Michael Jaaka
For list reduction it is said to remove every third solder but just with 1 step they remove 1 soldier. There is something wrong Scully. On Aug 18, 3:50 pm, David Nolen wrote: > The Clojure code posted there is pretty awful and shows a gross, gross > misunderstanding of Clojure data types. I submi

Re: Clojure-CLR, CLASSPATH, clojure.load.path and Cygwin

2011-08-18 Thread Ken Wesson
On Wed, Aug 17, 2011 at 4:25 PM, Dimitre Liotev wrote: > you can not set and query such a variable in a Bash script. Code has already been posted to this thread that does exactly that. -- Protege: What is this seething mass of parentheses?! Master: Your father's Lisp REPL. This is the lang

Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-18 Thread David Nolen
In case you didn't see this elsewhere: http://vimeo.com/27860102 David -- 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 w

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-18 Thread Laurent PETIT
Hello, I don't have a Facebook account (and don't want to create one), neither have or want to create a scribd account. Could it be possible to have the slides available for download without having to authenticate (e.g. slideshare) ? 2011/8/18 David Nolen > In case you didn't see this elsewhere

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-18 Thread Baishampayan Ghose
> I don't have a Facebook account (and don't want to create one), neither have > or want to create a scribd account. Could it be possible to have the slides > available for download without having to authenticate (e.g. slideshare) ? Slides are on Scribd as well - http://www.scribd.com/doc/62571669

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-18 Thread David Nolen
SlideShare link, http://www.slideshare.net/DavidNolen/patterns-8907600 David On Thu, Aug 18, 2011 at 2:57 PM, Laurent PETIT wrote: > Hello, > > I don't have a Facebook account (and don't want to create one), neither > have or want to create a scribd account. Could it be possible to have the > sl

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-18 Thread Laurent PETIT
Thanks David, I can't wait reading them ! Cheers, -- Laurent 2011/8/18 David Nolen > SlideShare link, http://www.slideshare.net/DavidNolen/patterns-8907600 > > David > > > On Thu, Aug 18, 2011 at 2:57 PM, Laurent PETIT wrote: > >> Hello, >> >> I don't have a Facebook account (and don't want t

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-18 Thread Laurent PETIT
2011/8/18 Baishampayan Ghose > > I don't have a Facebook account (and don't want to create one), neither > have > > or want to create a scribd account. Could it be possible to have the > slides > > available for download without having to authenticate (e.g. slideshare) ? > > Slides are on Scribd

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-18 Thread Laurent PETIT
2011/8/18 David Nolen > SlideShare link, http://www.slideshare.net/DavidNolen/patterns-8907600 Arrrgh, and now slideshare wants me to authenticate via FB or a slideshare account if I want to download the slides, again. Ok, I've already got a slideshare account, so I'll try to remember the pass

Re: Clojure-CLR, CLASSPATH, clojure.load.path and Cygwin

2011-08-18 Thread D L
On Thu, Aug 18, 2011 at 7:34 PM, Ken Wesson wrote: > > On Wed, Aug 17, 2011 at 4:25 PM, Dimitre Liotev wrote: > >      you can not set and query such a variable in a Bash script. > > Code has already been posted to this thread that does exactly that. Let me rephrase this for you: you can not set

Re: Clojure-CLR, CLASSPATH, clojure.load.path and Cygwin

2011-08-18 Thread Ken Wesson
On Thu, Aug 18, 2011 at 4:56 PM, D L wrote: > On Thu, Aug 18, 2011 at 7:34 PM, Ken Wesson wrote: >> >> On Wed, Aug 17, 2011 at 4:25 PM, Dimitre Liotev wrote: >> >      you can not set and query such a variable in a Bash script. >> >> Code has already been posted to this thread that does exactly

Re: REPL and Leiningen checkouts

2011-08-18 Thread Chas Emerick
FWIW, IntelliJ (like Eclipse) has excellent Maven support, which includes (IIRC, haven't touched IDEA in a long time) the equivalent of Eclipse's workspace dependency resolution. So, if you have project A that depends on vX of project B and vY of project C, then the IDE will add the compilation

Re: Video & Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-18 Thread Meikel Brandmeyer
Hi, Am 18.08.2011 um 22:27 schrieb Laurent PETIT: > 2011/8/18 David Nolen > SlideShare link, http://www.slideshare.net/DavidNolen/patterns-8907600 > > Arrrgh, and now slideshare wants me to authenticate via FB or a slideshare > account if I want to download the slides, again. > > Ok, I've alr

Can't resolve .write

2011-08-18 Thread Timothy Baldridge
I'm trying to track down some reflection warnings in my code. There is one that I can't track down, however. Example: (def ID 4) (defn output [itm ^java.io.DataOutputStream stream] (.write stream ID) (.writeInt itm)) Reflection warning, NO_SOURCE_PATH:4061 - call to write can

Re: Clojure-CLR, CLASSPATH, clojure.load.path and Cygwin

2011-08-18 Thread dmiller
Several comments: (a) 'clojure.load.path' is not new in 1.3. It's been in the code since at least May, 2009. (b) Regarding Dimitre's comment below, I probably did have Java system properties on my mind at the time. I guarantee that I was not thinking of picking Bash-compliant names. I doubt tha

Re: Can't resolve .write

2011-08-18 Thread Meikel Brandmeyer
Hi, Am 19.08.2011 um 05:00 schrieb Timothy Baldridge: > I'm trying to track down some reflection warnings in my code. > > There is one that I can't track down, however. > > Example: > > (def ID 4) > > (defn output [itm ^java.io.DataOutputStream stream] > (.write stream ID) > (

Re: REPL and Leiningen checkouts

2011-08-18 Thread J . Pablo Fernández
Thanks for the reply Chas. Does that mean that I have to create a Java project inside IntelliJ, instead of just opening the directory containing a Clojure/Lein project? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send emai

Re: REPL and Leiningen checkouts

2011-08-18 Thread Chas Emerick
A Maven project, yes. Just "mounting" a directory as a project and editing resources tells IntelliJ nothing about the projects in question. See: http://wiki.jetbrains.net/intellij/Creating_and_importing_Maven_projects#Importing_an_existing_Maven_project_into_an_IntelliJ_IDEA_project What I saw