Re:Wazero: The zero dependency WebAssembly runtime for Go de...
by jedisct1 on Tuesday May 17, 2022 @07:33PM
(#31417477)
> it is very slow to compile
Emscripten is amazing if you need a full POSIX environment in a web browser. Everything is emulated through Javascript calls.
If you don't need that, or just need the WASI subset, you can simply use Zig to compile C/C++ code to WebAssembly ("zig cc -target wasm32-wasi"). Compilation is as fast as other targets.
Emscripten is amazing if you need a full POSIX environment in a web browser. Everything is emulated through Javascript calls.
If you don't need that, or just need the WASI subset, you can simply use Zig to compile C/C++ code to WebAssembly ("zig cc -target wasm32-wasi"). Compilation is as fast as other targets.