Fork me on GitHub
#nbb
<
2022-08-26
>
borkdude08:08:39

Node 18.8 gets user-land snapshots: https://nodejs.org/en/blog/release/v18.8.0/ Would be interesting for nbb apps maybe

👀 2
souenzzo18:08:59

clojure AOT @ nodejs

raymcdermott13:08:31

which version of CLJS does nbb use? I want to use abs but it's not found! (available in CLJS since 1.11.50)

borkdude13:08:50

@raymcdermott I uses a new enough version of CLJS, but this new function has to be manually mapped (as SCI also works with older CLJS versions, it's not enabled by default)

borkdude13:08:05

PR welcome, the mapping is in nbb/core.cljs

sirwobin09:08:17

Do you have a wish list of items to map? I'm happy to help

raymcdermott13:08:22

(js/Math.abs my-thing) also works

raymcdermott13:08:59

I'll think about the PR for nbb after I have the work PR sorted 😉

borkdude13:08:28

This also works:

$ nbb -e '(Math/abs -10)'
10

borkdude13:08:48

It's the one thing in CLJS that works without js (or maybe there's some other thing too)

😲 1