I want a JavaScript interpreter written in wasm but I don't know how to convince anyone reading this that this isn't a joke
@mcc I wonder if something like this will run on .NET WASM https://github.com/sebastienros/jint
GitHub - sebastienros/jint: Javascript Interpreter for .NET

Javascript Interpreter for .NET. Contribute to sebastienros/jint development by creating an account on GitHub.

GitHub
wasmbo

@lambdageek Oh wowww

Just out of curiosity, how large is this, disk-space-wise

@mcc 9.8 megs without really doing anything to optimize for size. (it does run the IL trimmer with some default settings, but I don't remember if it's super-aggressive or if it just keeps any referenced assemblies)

@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 depending on what you're trying to achieve you might be better off loading the JS into a web worker.