squint 2026-07-22

Pretty nice, invoke squint-compiled babashka.cli with deno straight from the command line:

$ time deno eval '
import { parseOpts } from "npm:@babashka/cli";
console.log(parseOpts(Deno.args));
' -- --foo 42 --bar
{
  foo: 42,
  bar: true,
  [Symbol("IMeta_-meta")]: [Function (anonymous)],
  [Symbol("IWithMeta_-with-meta")]: [Function: with_meta_copy]
}
deno eval  -- --foo 42 --bar   0,02s  user 0,01s system 96% cpu 0,033 total
It even prints that secret metadata I put on the return value :P Baseline deno with a console.log is 25ms, so adding bb.cli into the mix only costs 6ms of startup time which is pretty neat imo. Note that this loads the whole squint stdlib too

It seems like loading squint's stdlib takes almost no time in deno at all:

$ time deno eval '
import * as squint from "npm:squint-cljs@0.14.206/core.js";
squint.prn(squint.frequencies(["a","b","c", "c"]));
'
{:a 1, :b 1, :c 2}
deno eval    0,02s  user 0,01s system 92% cpu 0,028 total

😮 3
🎉 2