Skip to content

Instantly share code, notes, and snippets.

@guest271314
Created November 10, 2024 01:37
Show Gist options
  • Save guest271314/b9d2c5f55374a3e2ca17b60c35d845bd to your computer and use it in GitHub Desktop.
Save guest271314/b9d2c5f55374a3e2ca17b60c35d845bd to your computer and use it in GitHub Desktop.
Just an idea...

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment