Recent submissions

Comment · 2 years ago
Comment · 4 years ago
There is a section in the linked announcement titled "Why use a WebAssembly Runtime?" that hopefully answers your question.
Comment · 7 years ago
Both Wasmtime and Lucet can AOT compile Wasm, for what it's worth.
Comment · 8 years ago
Comment · 8 years ago
Comment · 8 years ago
Comment · 8 years ago
Thanks for the heads up. It used to be a `thread_local!`, but switching to a `static mut` resulted in smaller code size. I just forgot to update the code snippet in the article.

> which IIRC requires unsafe access as it's not thread-safe

Yes, and also has no guarantees against mutably aliasing and re-entry.

Note that wasm currently has no shared memory threading (just message passing via FFI through JS and workers), so thread-safety isn't an issue to be wary of here, just re-entry.

Comment · 8 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton