Live data from Hacker News

ClojureScript

github.com

51–60 of 95 posts

Re: ClojureScript

#51
post #46

Earlier quoted context omitted.

To play devil's advocate, wouldn't the exact same thing be possible with the above alternatives and Armed Bear Common Lisp? You can write full-stack in Common Lisp, it's just that different parts need to go through different compilers/interpreters/transformers/what-have-you. Just as it is with Clojure. No, I think the thing to note here is that Clojure--for reasons I can only guess at--has a lot more sex appeal than…

I think if Parenscript were just announced today it would get a big reaction as well. Just like there's a big reaction any time a language comes out and says it can compile down to Javascript. There was a big reaction when a guy did it for C# / XNA, for example. Just because people are excited about developments in the Clojure ecosystem doesn't mean they aren't excited you can do this elsewhere. It's interesting righ…

"Just because people are excited about developments in the Clojure ecosystem..."

Good point. My comment was more of a response to the "thought provoking" part rather than being excited about ClojureScript itself.

Re: ClojureScript

#52

It's interesting how closely tied to Google Closure this is. I wonder if that will present issues in the future. Regardless, ClojureScript has definitely made really smart use of it.

You can use other javascript libraries in addition to Closure (i.e. jquery). https://gist.github.com/1096382

Re: ClojureScript

#53
post #46

Earlier quoted context omitted.

To play devil's advocate, wouldn't the exact same thing be possible with the above alternatives and Armed Bear Common Lisp? You can write full-stack in Common Lisp, it's just that different parts need to go through different compilers/interpreters/transformers/what-have-you. Just as it is with Clojure. No, I think the thing to note here is that Clojure--for reasons I can only guess at--has a lot more sex appeal than…

I think if Parenscript were just announced today it would get a big reaction as well. Just like there's a big reaction any time a language comes out and says it can compile down to Javascript. There was a big reaction when a guy did it for C# / XNA, for example. Just because people are excited about developments in the Clojure ecosystem doesn't mean they aren't excited you can do this elsewhere. It's interesting righ…

I could be wrong, but I think this is different. Are there any other languages that are both hosted on the JVM and also in Javascript VMs? Beyond that, there almost certainly isn't a lisp that is.

Re: ClojureScript

#54

Earlier quoted context omitted.

I'm glad for the Clojure community if this didn't exist before, but I'm pretty sure Lispers (ie Common Lispers) have written "entire" web apps in Lisp for quite a while[1]. For example, Kenny Tilton wrote a Lisp wrapper to qooxdoo on top of his data-flow library (Cells). The only time we need to write JS code now is for additional glue for widgets or functionality we haven't wrapped yet. And since it wraps qooxdoo, t…

Clojure has had things like Parenscript for a while, including scriptjure (~1.75 years old) and clojurejs.

What's new/exciting/different about ClojureScript? No one has really made it clear here.

Edit: Trimmed unnecessary banter as it's a genuine question.

Re: ClojureScript

#55

Earlier quoted context omitted.

Clojure has had things like Parenscript for a while, including scriptjure (~1.75 years old) and clojurejs.

What's new/exciting/different about ClojureScript? No one has really made it clear here. Edit: Trimmed unnecessary banter as it's a genuine question.

What would you expect to be different? Your post says the important point: it's Clojure. For some an additonal point is that it's not JavaScript. There is nothing deeper than that.

Re: ClojureScript

#56
post #19

I'm wondering if this has the refs, agents, and atoms that make concurrent clojure so awesome. If not, it would feel.... strange.

Atoms are available now. Agents might come soon. Refs and Vars are questionable.

> Vars are questionable.

Really? Without vars you don't even have defn. Or do you just mean that vars in clojurescript don't implement IRef?

Re: ClojureScript

#57
post #55

Earlier quoted context omitted.

What's new/exciting/different about ClojureScript? No one has really made it clear here. Edit: Trimmed unnecessary banter as it's a genuine question.

What would you expect to be different? Your post says the important point: it's Clojure. For some an additonal point is that it's not JavaScript. There is nothing deeper than that.

If that's the most important point I fail to understand why it's #1 Hacker News, sorry. This makes HN no better than a "hype engine" as some say. If someone would at least mention that Google Closure makes it pretty neat, then I would have let it go, so to say.

Even worse, two other relevant Clojure libs are mentioned and the important point is still "it's Clojure"?

Re: ClojureScript

#58
"Numbers: Currently ClojureScript numbers are just JavaScript numbers"

Boo. I'm sure this is for performance reasons, but JS numbers really need an overhaul.

Re: ClojureScript

#59
post #53
post #46

Earlier quoted context omitted.

I think if Parenscript were just announced today it would get a big reaction as well. Just like there's a big reaction any time a language comes out and says it can compile down to Javascript. There was a big reaction when a guy did it for C# / XNA, for example. Just because people are excited about developments in the Clojure ecosystem doesn't mean they aren't excited you can do this elsewhere. It's interesting righ…

I could be wrong, but I think this is different. Are there any other languages that are both hosted on the JVM and also in Javascript VMs? Beyond that, there almost certainly isn't a lisp that is.

Java via GWT runs on the JVM and in JavaScript.

Re: ClojureScript

#60
post #53
post #46

Earlier quoted context omitted.

I think if Parenscript were just announced today it would get a big reaction as well. Just like there's a big reaction any time a language comes out and says it can compile down to Javascript. There was a big reaction when a guy did it for C# / XNA, for example. Just because people are excited about developments in the Clojure ecosystem doesn't mean they aren't excited you can do this elsewhere. It's interesting righ…

I could be wrong, but I think this is different. Are there any other languages that are both hosted on the JVM and also in Javascript VMs? Beyond that, there almost certainly isn't a lisp that is.

Theoretically almost any language that can run on x86 will now run in Javascript thanks to Fabrice Bellard: http://bellard.org/jslinux/

I don't think anyone has managed to get a JVM to run on his Linux port yet though.

More practically, Javascript itself runs fine on the JVM (via Rhino).

There are Ruby-on-JS[1] and Python-on-JS[2] efforts as well (both Ruby & Python run on the JVM)

[1] http://ejohn.org/blog/ruby-vm-in-javascript/

[2] http://pyjs.org/

Post reply on HN