Re:Esprit Board for Exploring ClojureScript on ESP32 Processors
by elwell on Wednesday June 03, 2020 @11:41AM
(#23404629)
I like how Clojure can be used in more lightweight contexts by using ClojureScript instead. Did you try a Clojure (JVM or GraalVM?) implementation?
[ Parent
| on HN ]
Re:Esprit Board for Exploring ClojureScript on ESP32 Processors
by mfikes on Wednesday June 03, 2020 @12:26PM
(#23405243)
I haven't. But I suspect that's next. If you compare things like Lumo / Planck (ClojureScript) to Babashka (GraalVM-based Clojure), you can clearly see the perf benefits of going native.
This stuff is arguably just an initial foray into the embedded world. You could imagine a Clojure dialect or compiler that emits WASM, or C, or even native code.
Re:Esprit Board for Exploring ClojureScript on ESP32 Processors
by tincholio on Wednesday June 03, 2020 @02:29PM
(#23406934)
There is an older approximation of that, in Ferret (https://ferret-lang.org/ ), which compiles a dialect of Clojure to c++, and can be used in embedded (IIRC it does have some pretty hefty limitations, but it's very cool nonetheless).