5 ms·
Wow, this is quite amazing! Does this also mean that we will be able to write macros in Clojurescript? Are there any plans to use mostly the same backend for C
by hencq 11y ago
Wow, this is quite amazing! Does this also mean that we will be able to write macros in Clojurescript?
Are there any plans to use mostly the same backend for Clojure and Clojurescript? It seems that since the languages are almost the same, it's only the code generation part that would be different?
- mfikes 11y agoYes and no. You can write macros for which the source is ClojureScript, but they need to be kept separate. Here is a stab I took at explaining that subject: http://blog.fikesfarm.com/posts/2015-06-19-portable-macro-musing.html http://blog.fikesfarm.com/posts/2015-06-19-portable-macro-mu... There are no plans for the same backend AFAIK.
- deleted 11y ago[deleted]
- deleted 11y ago[deleted]
- sbensu 11y agoUsing the same code for the backend is not realistic since Clojure leverages JVM libraries. A new ClojureScript backend ecosystem would need to start wrapping Node libraris to reach Clojure parity
- maehwasu 11y agoI did this late last year for a traffic analytics backend. As you said, I had to wrap a lot of Node.js libraries, and then wire them up with core.async. It was a fun project, and I learned a lot, but I ended up reimplementing the whole thing in Clojure+Java because performance and DB access was so much better in this use case. Having only a single event thread kills Node relative to the top JVM servers.