News for hackers. Stuff that matters.
Re:JavaScript is Not Web Assembly by swannodette on Wednesday September 14, 2011 @06:09PM (#2998057)
The following code looks pretty assembly-like to me ;) This is my state-of-the-art pattern matcher for Clojure working w/ ClojureScript.

https://gist.github.com/1177437

While this may look scary the pattern match compiler now emits precise errors (not shown here).

Also I mentioned to Brendan Eich that I created an 8 line ClojureScript macro to marry closures and prototypes.

https://gist.github.com/1214547

You would not write any of this stuff by hand.

ClojureScript lets you fully leverage the promise of JavaScript. I haven't seen anything else that comes even close.

Re:JavaScript is Not Web Assembly by scott_s on Wednesday September 14, 2011 @07:04PM (#2998209)
It also looks like the kind of code one would generate when C is the target language.
Re:JavaScript is Not Web Assembly by swannodette on Wednesday September 14, 2011 @07:39PM (#2998293)
Sure before Google Closure takes an optimization pass at it. Anyways, I don't really think it's a point worth debating to death - I defer to Erik Meijer.
Re:JavaScript is Not Web Assembly by cousin_it on Thursday September 15, 2011 @04:40AM (#2999343)
Your first example has massive code duplication. If you did that in idiomatic JavaScript, it would be smaller, faster and debuggable.