New SCI version dropped which now supports async/await in CLJS!
And new #nbbcljs dropped which uses the newest SCI. Demo:
$ npx nbb@1.4.206
Welcome to nbb v1.4.206!
user=> (defn ^:async foo [] (let [x (await (js/Promise.resolve 1))] (inc x)))
#'user/foo
user=> (foo)
#<Promise 2>
#clojure
Also since this is the first public mention of the Logseq CLI, I'd like to thank @borkdude.bsky.social for #nbbcljs. Rapid development and reuse of Logseq's core for the CLI is possible thanks to github.com/babashka/nbb
Nbb: the easiest way to script in ClojureScript on node, bun and deno
github.com/babashka/nbb
#clojure #clojurescript #nbbcljs
Multiplayer TicTacToe made with #nbbcljs and DataStar
gre.gorio.ch/projects/mul...
Deployed at multi-ttt-134n2qtfaad5.gregorybleiker.deno.net
#clojure #clojurescript
My project updates for May and June: 19 projects updated in total!
Thank you for sponsoring my work through Clojurists Together, Github Sponsors or otherwise!
(link in reply)
#clojure #babashka #scittlecljs #nbbcljs #squintcljs
It seems deno is currently the fastest at starting and executing something with #nbbcljs #clojure
$ time deno -A jsr:@babashka/nbb@1.3.202 -e '(+ 1 2 3)'
6
deno -A jsr:@babashka/nbb@1.3.202 -e '(+ 1 2 3)' 0,05s user 0,02s system 101% cpu 0,068 total
The nREPL server now works with deno too!
$ deno -A jsr:@babashka/nbb@1.3.202 nrepl-server
#clojure #nbbcljs
#nbbcljs can run on deno and now supports jsr: + npm: inline dependencies, so you don't need any config file or manually download dependencies for a single script!
#clojure #clojurescript
github.com/babashka/nbb...
The #squintcljs nREPL also works on @bunjavascript
Here is a little demo of changing the handler for a Bun.serve application.
(The same also works with #nbbcljs of course).
github.com/squint-cljs/...
#clojure #clojurescript
#nbbcljs also works on Android phone
#clojure #clojurescript