Fork me on GitHub
#squint
<
2023-09-12
>
borkdude09:09:05

Made quite some releases (see #C015AL9QYH1 ) yesterday and just added bun compatibility:

$ time bunx --bun squint -e '(prn (mapv #(* % %) [1 2 3]))'
[1,4,9]
bunx --bun squint -e '(prn (mapv #(* % %) [1 2 3]))'   0.09s  user 0.03s system 148% cpu 0.083 total

👏 1
💯 1
mkvlr11:09:20

wondering if a squint/cherry plugin for bun could result in a excellent dev experience: > Plugins intercept imports and perform custom loading logic: reading files, transpiling code, etc. They can be used to add support for additional file types, like .scss or .yaml. In the context of Bun’s bundler, plugins can be used to implement framework-level features like CSS extraction, macros, and client-server code co-location. > From https://bun.sh/docs/runtime/plugins

borkdude11:09:14

nice! something to look into

borkdude13:09:05

Damn JS...

$ ./node_cli.js -e "(prn (or 0 1 2))"
1
Just got bitten by this when porting some CLJS to squint

alexdavis15:09:49

This has bitten me many times.... I don't understand who could think to treat 0 as falsey

facepalm 1
Chris McCormick22:09:40

Python also does this. Also empty collections. So this prints true:

if not []:
  print True