@mcc only tangentially related but have you watched Gary Bernhardt's talk, The Birth & Death of JavaScript? (It is very funny)
https://www.destroyallsoftware.com/talks/the-birth-and-death-of-javascript
Discover & share this Reaction GIF with everyone you know. GIPHY is how you search, share, discover, and create GIFs.
@mcc Nerd sniped
https://lambdageek.dev/wasmbo/
@lambdageek Oh wowww
Just out of curiosity, how large is this, disk-space-wise
@lambdageek That's actually not so bad. The C# web-izer has come a long way.
So what I was originally hoping to do, just so the original prompt doesn't seem weird, was the possibility of running js "sandboxed" inside of a web page, like imagine mastodon allowing user scripts within posts…
@mcc Yea that makes a lot of sense actually.
up-thread @zemlanin suggested compiling QuickJS with Emscripten by hand, and that probably makes more sense if you're doing this seriously and don't have other .NET dependencies in play.
And apparently someone already did the compiling part https://www.npmjs.com/package/quickjs-emscripten
Javascript/Typescript bindings for QuickJS, a modern Javascript interpreter, compiled to WebAssembly.. Latest version: 0.22.0, last published: 2 months ago. Start using quickjs-emscripten in your project by running `npm i quickjs-emscripten`. There are 14 other projects in the npm registry using quickjs-emscripten.
@mcc The steps some people will go to avoid using eval()…
/s
@mcc I'd compile QuickJS to WASM & use that!
That's got a reasonable codesize...