Taking the JavaScript runtime agnostic approach a step further
I'm thinking about combining qjs
, node
, deno
, and bun
into a single executable (~350 MB, still less than Rust tool chain at ~500 MB)
that I can reference as such within JavaScript and/or TypeScript
in the same .js
and/or .ts
script, and do something like this
import { cc } from "bun:ffi";
import ( $ } from "jsr:@david/dax";
std.popen(...);
Deno.stdin.readable(...);
Bun.build(...);
NodeJS.crypto.generateKey(...);
Maybe mix in wasmtime
for another 40 MB.
Just an idea...