C
C#15mo 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
JakenVeina15mo ago
you're basically asking "how do I write a WASM compiler"?
Mrloic
MrloicOP15mo 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
JakenVeina15mo ago
how does a program that outputs machine code not qualify as a compiler?
Mrloic
MrloicOP15mo ago
ok fair
JakenVeina
JakenVeina15mo ago
anyway, you're gonna want to look for a WASM emitter or compiler library I sure don't know of any
Mrloic
MrloicOP15mo 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
JakenVeina15mo ago
this one looks promising
JakenVeina
JakenVeina15mo ago
Wasm 0.1.7
cs-wasm is a C# library that can read, write, interpret and optimize binary WebAssembly files.
JakenVeina
JakenVeina15mo ago
albeit a prerelease
Mrloic
MrloicOP15mo ago
prerealease that's 4 years old and not touched since Looks like a dead project sadly
Accord
Accord15mo 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.

Did you find this page helpful?