3 ms·
There's a shim there, yeah (worker.js) :/
by stavros 4y ago
There's a shim there, yeah (worker.js) :/
- brabel 4y agoYeah, that's kind of cheating... it runs Rust after compiling it to WASM and running that inside a JS runtime! Anyone thinking of using that should definitely consider just using WASI instead as Rust, as Zig, can compile to WASM/WASI (for those who don't know, WASI is like a POSIX for WASM, so WASM-compiled programs have access to a POSIX-like API, and therefore don't depend on the Web APIs like the Rust-compiled-to-worker solution does).
- k__ 4y ago"Anyone thinking of using that should definitely consider just using WASI" As far as I know, CFW heavily leans on V8 isolates for scaling. Why reinvent the wheel?