Implement Clojure on top of the V8 engine

I'm just wondering if it makes sense to implement Clojure on top of the Javascript Googles V8 engine. I never use Java compatibility. I also study ClojureScript. So I saw the advantage of using Clojure on a V8 engine.

Any thoughts on this? Does anyone do this? How hard is that?

+6
source share
2 answers

ClojureScript could already run on top of V8 outside the browser and was able from the start. In particular, the test suite and benchmark are run in V8 if the path to the V8 directory is provided to runner scripts (via an environment variable); except V8, SpiderMonkey and JavaScriptCore are used in this way.

Node.js adds the complete standard library to V8 and has been a valid compilation target for ClojureScript since its release. Regarding the prior art, JohnJ's link to the Bodil presentation is good (see also Bodil projects such as cljs-noderepl and Dog Fort ).

ClojureScript now lacks certain Clojure functions, especially access to the compiler, but there is a fork with a compiler ported to ClojureScript. The standalone version of ClojureScript is probably a matter of time.

+18
source

Check out Bodil Stokke's video, "ClojureScript All The Way Down," where she creates a full-stack web application on top of Node.js.

+1
source

Source: https://habr.com/ru/post/944481/


All Articles