-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WAMR integration & WASM/WASI compilers #2
Comments
Not wanting to cause you any more pain, but I'll tell you that I don't have experience with anything you mentioned above. My friend @Jammyjamjamman might wanna have a glance and see if he's interested though. |
No worries, those attempts were made few weeks ago, long enough for me to heal :D. |
More refs on how to integrate native functionality in the wasm runtime: The main issue would be offering them for For now, building bindings to Integration of bindings for embedded scripts is just as complex as the one for quickjs, so at least that part is ok. |
Integrating wasm would have been nice, but it really looks like:
I have been looking for alternatives, and this might be a good one: https://github.com/libriscv/libriscv |
Or the real Path of Pain with even less rewards at the end.
The integration of WAMR should enable
vs
:For example, a C compiler running in WAMR and generating a wasm output.
To the extreme of this, running the full app in
vs
after XML->C->wasmAll this is technically feasible, and would be more or less as complex as the other integration have been so far.
The only exception would be running native components, for which it is unclear the scope of the exposed interface:
cfltk
bindings, allowing real custom widgets to be defined and used, while wrapping them asui_base
objectsfltk
.Subtasks:
Find a way to have llvm/clang running as wasm an build to wasm (no emscripten)spoiler, not workingFind a way to integrate assemblyscript as a language and embeding the compilerahah. not even closeHowever...
Issues with WASM
Why is WASM so frustrating to work with!?! Virtually no compiler can compile itself into a functional wasm/wasi binary.
I am starting to regret the portability of java bytecode already. I never considered this day would have come.
AssemblyScript is barely able to do so with some magic tricks, but it still requires binaryen distributed alongside. Because of that, V8 is virtually the only runtime capable of running that combo.
There are also some LLVM patches to support wasm/wasi, but they all have been failures so far (at best half working). Aside from the fact it would end up being quite slow.
Notice: the wasmer registry seems to have a small collection of clang builds on it. It might be good enough to start experimenting.
If you have insights to share, please do that because I am really out of ideas.
The text was updated successfully, but these errors were encountered: