Having some fun with a "toy" CLJS transpiler which currently works with bb but can go more places if there's any interest. github.com/borkdude/cherry #clojure #clojurescript

Jul 20, 2022 · 2:41 PM UTC

6
5
1
43
GIF
Some (advanced compiled) core vars published to cherry-cljs on npm. The transpiled .js uses that package. #clojure #clojurescript
2
1
1
6
And here's an example of async/await: #clojure #clojurescript
1
9
Destructuring:
1
2
A bit controversial maybe: js/keys for js object destructuring #clojurescript
3
6
Replying to @borkdude
I may try some interesting things on it, to transpile to something else... 🤔
1
1
Does it support macros already? Also, do you plan to add REPL support?
1
Replying to @borkdude
Can you put it in sci? :D
1
1
TBD how this fits together ;)
Replying to @borkdude
This reminds me of Sibilant (sibilant.org/), but flavored with Clojure’s syntax and idioms. Looks like a noce alternative. Are you allowing mutation or keeping Clojure’s immutability?
1
The goal is to keep immutability and all Clojure semantics + shared core functions via one dependency, so you can build libraries and share them in the JS ecosystem.
3