4 ms·
I wonder why V8 is considered as superior compared to WASM for sandboxing.
by buremba 10mo ago
I wonder why V8 is considered as superior compared to WASM for sandboxing.
- skybrian 10mo agoOn V8, you can run both JavaScript and WASM.
- buremba 10mo agoTheoretically yes, but CF workers or this project doesn't support it. Indeed none of the cloud providers support WASM as first-party support yet.
- otterley 10mo agoThe problem is that there’s not much of a market opportunity yet. Customers aren’t voting for WASM with their wallets like they are mainstream language runtimes.
- justincormack 10mo agoWorkers does support wasm https://developers.cloudflare.com/workers/runtime-apis/webassembly/ https://developers.cloudflare.com/workers/runtime-apis/webas...
- buremba 10mo agoMaybe it's better now but I wouldn't call this first-class support, as you rely on the JS runtime to initialize WASM. The last time I tried it, the cold start was over 10 seconds, making it unusable for any practical use case. Maybe the tech is not there but given that WASM guarantees the sandboxing already and supports multiple languages, I was hoping we would have providers investing in it.
- max_lt 10mo agoCF Workers does support WASM. We do too as V8 handles it natively. Tested it, works, just hasn't been polished yet.
- m11a 10mo agoIs WASM’s story for side effects solved yet? eg network calls seems too complicated (https://github.com/vasilev/HTTP-request-from-inside-WASM https://github.com/vasilev/HTTP-request-from-inside-WASM etc)