Better HN
topnewbestaskshowjobs
Log inSign up

assambar

131 karma · joined Oct 17, 2022 (4y ago) · 11 submissions

Submissions

comment 3y ago · link · parent

The biggest gain comes from mod_wasm using a Wasm runtime to run the PHP interpreter in a sandboxed environment. And mod_wasm can be used the same with Python or Ruby, or anything that builds for WebAssembly.

- No errors (even fatal) from the Wasm module will bring down Apache HTTPD. - mod_wasm's code base is small enough to inspect thoroughly and test thoroughly to ensure it is secure - Indeed you will now have to trust the embedded Wasm runtime (wasmtime as of today). As a naïve analogy, this is the equivalent of trusting a virtual CPU(Wasm)+OS(WASI), which gets tested in thousands of other scenarios than the ones used in mod_wasm and issues get fixed and corrected asap.

2.

SQLite has out-of-the-box support for wasm32-wasi since 3.41.0(wasmlabs.dev ↗)

2 points · by assambar · 3y ago · discuss

comment 3y ago · link · parent

- enabled more PHP extensions

- options to bundle the standard libraries along with Python and Ruby

4.

WebAssembly: W2c2 by turbolent.com ports modern apps to old machines(twitter.com ↗)

4 points · by assambar · 3y ago · discuss

comment 3y ago · link · parent

I totally agree with you on how ridiculous this is. But it's all about trade offs in the end. In the case of Docker+Wasm you get portability and delivery speed.

You build one image for the wasm32/wasi platform and now it can run on any architecture that has Docker, just like that. And also you don't carry the whole OS baggage of a typical container. Only the language runtime. So download times are faster.

---

Lastly, the Docker deployment is just the easiest way for a WASM application to reach people. They can try it out without the necessity to setup and support a WASI runtime.

comment 3y ago · link · parent

Ready-to-use python.wasm, also in a Docker+Wasm container image.

7.

WebAssembly: Adding Python support to WASM language runtimes(wasmlabs.dev ↗)

216 points · by assambar · 3y ago · 86 comments

8.

WebAssembly and Sockets: PHP development server on WasmEdge(wasmlabs.dev ↗)

2 points · by assambar · 3y ago · discuss

9.

WebAssembly: Docker Without Containers(wasmlabs.dev ↗)

4 points · by assambar · 3y ago · discuss