Fast path to having fun with ClojureScript

2013-10-28 Thread David Nolen
Absolutely not true with respect to numeric functions. In JS the behavior is *defined* in CLJS not defined and may warn or even throw in the future. On Monday, October 28, 2013, Leif wrote: > Wow, source maps make things much more pleasant. Time to give > clojurescript another shot, I think. > >

Re: Fast path to having fun with ClojureScript

2013-10-28 Thread Cedric Greevey
On Mon, Oct 28, 2013 at 10:53 PM, Leif wrote: > I was under the impression that clojurescript insulated us from > javascript's more distasteful behaviors. > Such as "turning it on indiscriminately for all web sites instead of using NoScript will get you hacked"? :) -- -- You received this mes

Re: Fast path to having fun with ClojureScript

2013-10-28 Thread Leif
Wow, source maps make things much more pleasant. Time to give clojurescript another shot, I think. But I was under the impression that clojurescript insulated us from javascript's more distasteful behaviors. The numeric functions seem to have the original anything-goes zany semantics. Is the

Re: Fast path to having fun with ClojureScript

2013-10-28 Thread David Nolen
Great to hear. On Mon, Oct 28, 2013 at 6:53 AM, Deniz Kurucu wrote: > Haven't tested source maps before, works perfectly ! > > > On Mon, Oct 28, 2013 at 6:25 AM, David Nolen wrote: > >> Given the source map improvements to ClojureScript, now is a good time to >> present a newbie friendly guide

Re: Fast path to having fun with ClojureScript

2013-10-28 Thread Deniz Kurucu
Haven't tested source maps before, works perfectly ! On Mon, Oct 28, 2013 at 6:25 AM, David Nolen wrote: > Given the source map improvements to ClojureScript, now is a good time to > present a newbie friendly guide to hacking with ClojureScript. Emphasis on > no fuss and getting as quickly as p

Re: [ClojureScript] Re: Fast path to having fun with ClojureScript

2013-10-28 Thread Julien Eluard
Thanks that's clearer now. Somehow I understood that output-to was supposed to be relative to output-dir. One thing that prevents me to use optimizations :none is that the generated js are not as straightforward to use as with others optimizations: you need to manually include some js files (at

Re: [ClojureScript] Re: Fast path to having fun with ClojureScript

2013-10-28 Thread David Nolen
On Mon, Oct 28, 2013 at 9:05 AM, Julien Eluard wrote: > Compilation is super fast in optimizations :none mode. A dumb change will > be compiled in below a second. Now the same change in optimizations :simple > takes 30 s. > Is that expected? Is it worth my time to investigate that? > :simple was

Re: Fast path to having fun with ClojureScript

2013-10-28 Thread Julien Eluard
Hi David, awesome to see all those recent improvements in the ClojureScript compiler! Thanks for the hard work. Compilation is super fast in optimizations :none mode. A dumb change will be compiled in below a second. Now the same change in optimizations :simple takes 30 s. Is that expected? Is

Fast path to having fun with ClojureScript

2013-10-27 Thread David Nolen
Given the source map improvements to ClojureScript, now is a good time to present a newbie friendly guide to hacking with ClojureScript. Emphasis on no fuss and getting as quickly as possible to productive experimentation: http://swannodette.github.io/2013/10/27/the-essence-of-clojurescript/ --