Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sorry for being offtopic,

Could Clojurescript become the primary clojure implementation, replacing the JVM, someday in the future?



That's a secondary priority, wish list goal. Work is being done to separate out the JavaScript bits and to beef up the analysis bits. However, the JVM Clojure implementation is stable and reliable. There isn't a really pressing need to replace it. Self-hosting languages are neat, but Clojure has always been about pragmatism. Stability and performance are paramount in the ClojureScript compiler. That being said, it's a fun goal, so there are various projects working on alternative backends, Clojure-in-Clojure JVM targets, etc. And patches towards that goal are welcome in ClojureScript!


Its in the secondry priority

What? Shifting the main development to JS so that clojurescript may be called clojure? So we might see the main development shifting from 'targeting the JVM' to 'targeting JS' ???


I'm not sure what you're asking... Clojure is a language that, as an explicit design goal, embraces a host platform. Two of those hosts, actively maintained by registered Clojure contributors, are the JVM and JavaScript. The JVM ecosystem came first, has access to a generally superior host platform and libraries, is implemented largely in Java, and contains many required components to bootstrap ClojureScript. ClojureScript is implemented in JVM-Based Clojure, reusing some of those Java components (like the reader), lacking in features that generally make less sense in target environments (ie. eval in browsers), and generally acts as a complementary library for JVM Clojure web apps. Being a Clojure dialect, there is community interest in reusing some of ClojureScript's implementation, meta circularly, for additional platforms including Lua, ChickenScheme, LLVM/ObjC, .NET, and yes, the JVM. If the people working on those projects want to contribute modularity and platform abstraction improvements to ClojureScript's reader, analyzer, code generator, build infrastructure, or libraries, their patches will be actively considered.


Oh do not mind that...

I was just asking a noobish question

1: What will be the primary clojure platform in the future?

It will be JVM.

2: Do clojurescript and clojure compete?

No. :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: