C
C#14mo ago
Mrloic

❔ generate WASM at runtime

I'm working on an app that generates overlays for streams (it's a bit more specific but you get the idea) and I'm wondering if anyone knows of a way to generate WASM for that at runtime?
11 Replies
JakenVeina
JakenVeina14mo ago
you're basically asking "how do I write a WASM compiler"?
Mrloic
MrloicOP14mo ago
Not really (otherwise I would just generate JS Despairge ), more if there were already existing solutions for that (as blazor is kind of out of the picture in my case)
JakenVeina
JakenVeina14mo ago
how does a program that outputs machine code not qualify as a compiler?
Mrloic
MrloicOP14mo ago
ok fair
JakenVeina
JakenVeina14mo ago
anyway, you're gonna want to look for a WASM emitter or compiler library I sure don't know of any
Mrloic
MrloicOP14mo ago
yeah that's the problem I faced the only solution I had found was blazor, but it's not exactly usable (without a tedious and bug prone workaround)
JakenVeina
JakenVeina14mo ago
this one looks promising
JakenVeina
JakenVeina14mo ago
Wasm 0.1.7
cs-wasm is a C# library that can read, write, interpret and optimize binary WebAssembly files.
JakenVeina
JakenVeina14mo ago
albeit a prerelease
Mrloic
MrloicOP14mo ago
prerealease that's 4 years old and not touched since Looks like a dead project sadly
Accord
Accord14mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server