one question guys, what can be the limitations of compiling a runtime into webasm? the filesystem, threading, and other syscalls (that arent implemented for that platform) or is it possible to find incompatibilities in the runtime itself?
It depends on a runtime. E.g. it difficult to compile some goto/setjmp/longjump of C to wasm due to the structered control flow. You can also check marvelous WASI that provide a possibility to compile C/C++ to wasm with the limited set of imported syscalls.