Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-07-06 Thread László Török
Hi, using the reducers library also eliminates the per-step allocation of temporary results when the processing code is composed of multiple functions, AFAIK. Las 2012/7/4 Balint Erdi balint.e...@gmail.com Hey, AFAIK the clojure reducers library gains its performance boost since the

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-28 Thread Christian M.
I have developed a tiny web app in Clojure/ClojureScript and have written an overview here http://notehub.org/2012/6/16/how-notehub-is-built. In general, it was an exciting experience, but I also faced several problems with ClojureScript. For example, if you compile your code to JS, then the

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-28 Thread David Nolen
On Mon, Jun 25, 2012 at 12:31 AM, Christian M. chrm...@gmail.com wrote: I have developed a tiny web app in Clojure/ClojureScript and have written an overview here http://notehub.org/2012/6/16/how-notehub-is-built. In general, it was an exciting experience, but I also faced several problems

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-28 Thread Ben Mabey
On 6/24/12 10:31 PM, Christian M. wrote: I think the only problem (if it is a problem at all), which won't be solved soon is ClojureScript's performance resulting from creating a lot of implicit objects in very high level computations. Something like (filter (map (reduce ... ... (map ...

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-28 Thread David Nolen
reducers are already available - though further perf work needs to be done to really deliver on the performance promises. Even so I wouldn't be surprised if they already outperform many chained sequence operations. David On Thu, Jun 28, 2012 at 5:45 PM, Ben Mabey b...@benmabey.com wrote: On

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-24 Thread Jacobo Polavieja
On Saturday, June 23, 2012 12:43:38 AM UTC+2, wingie wrote: Since you love FP I wanted to mention another option: LiveScript http://gkz.github.com/LiveScript/blog/functional-programming-in-javascript-using-livescript-and-prelude-ls.html http://gkz.github.com/LiveScript

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-23 Thread wingie
Since you love FP I wanted to mention another option: LiveScript http://gkz.github.com/LiveScript/blog/functional-programming-in-javascript-using-livescript-and-prelude-ls.html http://gkz.github.com/LiveScript http://gkz.github.com/prelude-ls/ It's a script that compiles down to JavaScript.

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-14 Thread Jacobo Polavieja
El jueves, 14 de junio de 2012 03:18:29 UTC+2, Kevin Lynagh escribió: Jacobo, Using JavaScript from ClojureScript is very straightforward. There are a few points where interop is awkward, but that wasn't the main reason I wrote a new library (in Clojure). There were two primary

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-14 Thread Kevin Lynagh
As to your first point and only to clarify, had you made it a wrapper for D3 and in a node.js application, there would still be no problem in using it server-side, am I right? Unfortunately, no---D3 requires a full DOM. Node.js is just the JavaScript engine. There are some fake DOM

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-14 Thread Jacobo Polavieja
El jueves, 14 de junio de 2012 08:39:19 UTC+2, Kevin Lynagh escribió: As to your first point and only to clarify, had you made it a wrapper for D3 and in a node.js application, there would still be no problem in using it server-side, am I right? Unfortunately, no---D3 requires a full

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-14 Thread Paul deGrandis
I've been building out substantial ClojureScript apps for a few months now. Previously I had written an HTML5 game engine, so I'm no stranger to lots of JavaScript. My CLJS code base is smaller, easier to organize/maintain, more functional and declarative, and boasts a level of server-side

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-14 Thread Jacobo Polavieja
El jueves, 14 de junio de 2012 14:42:14 UTC+2, Paul deGrandis escribió: I've been building out substantial ClojureScript apps for a few months now. Previously I had written an HTML5 game engine, so I'm no stranger to lots of JavaScript. My CLJS code base is smaller, easier to

ClojureScript instead of CoffeeScript for complete web app development?

2012-06-13 Thread Jacobo Polavieja
Hi all, I've always developed desktop apps with the typical C/C++/C# stack and I was willing to delve into web development. I really don't like Javascript so I thought to give CoffeScript with node.js a chance, but as I love functional programming the idea of using Clojure/Clojurescript for

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-13 Thread thenwithexpandedwingshesteershisflight
1. I suppose you can't call any Java library from ClojureScript if you want it to compile to JS. Can you call any Clojure library and have it translated? If you want to use existing Java libraries then run those on the server. Clojure code will run either on the client or the server if

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-13 Thread Kevin Lynagh
Jacobo, Using JavaScript from ClojureScript is very straightforward. There are a few points where interop is awkward, but that wasn't the main reason I wrote a new library (in Clojure). There were two primary motivations for that. 1) We needed a visualization library that would work on the

Re: ClojureScript instead of CoffeeScript for complete web app development?

2012-06-13 Thread Jacobo Polavieja
El jueves, 14 de junio de 2012 02:28:23 UTC+2, thenwithexpandedwingshesteershisflight escribió: 1. I suppose you can't call any Java library from ClojureScript if you want it to compile to JS. Can you call any Clojure library and have it translated? If you want to use existing Java