News for hackers. Stuff that matters.
Re:ClojureScript, Lisp's Revenge [video] by andrewchambers on Thursday September 18, 2014 @02:35AM (#8334012)
David is a great guy, but sometimes his talks don't get the point across in a powerful way.

Clojurescript uses CSP (same concept as Go channels invented by Tony Hoare) to allow simulated multiple concurrent threads of execution in javascript. How many compile to javascript languages have concurrency? not many.

Clojurescript has powerful immutability at the core of the language, macros that are so powerful they can add concurrency to single threaded javascript via a library.

I admit it's not simple to understand everything clojurescript has from a casual glimpse, but if you learn enough, it can really kick all the other compile to JS languages in the butt.

Re:ClojureScript, Lisp's Revenge [video] by amithgeorge on Thursday September 18, 2014 @03:25AM (#8334107)
I am still learning FP and originally I was only looking at server side languages as I felt Javascript already lets me write code in an FP manner. It was after I read SwannOdette's blogs posts on ClojureScript and CSP that I started getting really excited about it. Couple that with Om and Flux, I think I would love writing apps that way. Meaning I was already sold on the potential of ClojureScript/CSP before even watching this presentation.

My dissatisfaction wasn't with ClojureScript but with the presentation. Given that I saw the presentation out of context (I don't know who the audience at the goto; conference was supposed to be - experienced FP developers looking to move to web or existing js web developers looking for something better). Purely from the presentation, I (who belongs the latter) wasn't really sold on anything. Maybe I wasn't the group being targetted.

Finally, I didn't watch the presentation because it was presented by David (I didn't who he was), I watched it for the title. It wasn't till midway through the presentation I realized SwannOdette is actually David. And that surprised me a lot cuz his blog posts are really good, and as I said really sold me on considering ClojureScript. I didn't intend to pick on David, maybe he just had a sub-par day. Especially after knowing David=SwannOdette :)

Re:ClojureScript, Lisp's Revenge [video] by klibertp on Thursday September 18, 2014 @04:51AM (#8334292)
"macros that are so powerful"

You just made every single Common Lisp programmer who reads your comment cringe.

Clojure is a very nice language and while it has no real innovations it does bundle a few unusual (for mainstream) concepts into a single easy to use package. However, you should wait with calling Clojure macros "powerful" until after you get access to readtable. Or wait, you won't ever, that's a feature, supposedly...

Re:ClojureScript, Lisp's Revenge [video] by divs1210 on Thursday September 18, 2014 @05:07AM (#8334337)
Clojure has something better than CL reader-macros [1]. These are name-space specific, and more composable than CL's reader macros.

And reader-macros can be achieved with a small hack [2].

[1] http://www.infoq.com/interviews/hickey-clojure-reader

[2] http://briancarper.net/blog/449/clojure-reader-macros

Re:ClojureScript, Lisp's Revenge [video] by lispm on Thursday September 18, 2014 @07:15AM (#8334636)
That's a just small part of Lisp's reader macros.
Re:ClojureScript, Lisp's Revenge [video] by nickik on Thursday September 18, 2014 @05:03AM (#8334326)
Just because its not the most powerful macro systen ever created does not mean that its not powerful, so the sentence is completly ok.
Re:ClojureScript, Lisp's Revenge [video] by weavie on Thursday September 18, 2014 @06:07AM (#8334460)
It is definitely more powerful than Javascripts...
Re:ClojureScript, Lisp's Revenge [video] by klibertp on Thursday September 18, 2014 @08:29AM (#8334825)
You mean it's better than Sweet.js? http://sweetjs.org/
Re:ClojureScript, Lisp's Revenge [video] by nickik on Thursday September 18, 2014 @09:58AM (#8335209)
> Sweet.js brings the hygienic macros of languages like Scheme and Rust

So it seams to clojure macro system is more powerful. That said that does not mean its better.

Re:ClojureScript, Lisp's Revenge [video] by klibertp on Thursday September 18, 2014 @01:23PM (#8336434)
Of course, Sweet.js provides means for breaking hygiene.

Also, Clojure macros are kind-of, a-little-bit hygienic, with their rules for identifiers resolution.

Anyway, I'd say they're rather similar in expressivity and capabilities, but I don't know both macro systems well enough to do detailed comparison.

Re:ClojureScript, Lisp's Revenge [video] by kul_ on Friday September 19, 2014 @12:06AM (#8338951)
you can break hygiene in clojure macros using classical anaphoric macros. I guess that holds for clourescript as well.
Re:ClojureScript, Lisp's Revenge [video] by weavie on Thursday September 18, 2014 @09:40AM (#8335109)
No, I haven't looked into sweetjs enough. I was just referring to raw javascript macros.. (ie. non existent).
Re:ClojureScript, Lisp's Revenge [video] by klibertp on Thursday September 18, 2014 @01:15PM (#8336373)
Right, in general languages without any means of syntactic abstraction feel contrived to me now, and after working with several macro-enabled languages I really want to have support for them in more places. JS (Sweet.js), along with Dylan and Nimrod (and others) showed that it's possible to have real macros in non-prefix languages - I wonder how long it will take the "mainstream" to become comfortable with this feature. It looks like it takes anywhere between 20 to 40 years on average for concepts to "enter mainstream", so I think we're going to have to wait quite a long time yet.
Re:ClojureScript, Lisp's Revenge [video] by nickik on Tuesday September 23, 2014 @02:22PM (#8357102)
You might want to check out the PLOT langauges, its just a spec but a great read if you are into macros.