-
Notifications
You must be signed in to change notification settings - Fork 9
Enable WASM Threads
The Ren-C JavaScript build cannot run effectively for interactive web apps without WebAssembly Threads and SharedArrayBuffer enabled. If you want a technical overview of why (or want to discuss it), please see the forum thread: "On Giving libRebol JS More Powers than JavaScript.
Browser-makers intend to ultimately turn these next-generation web features on by default. But since it's not known when that will be, a fallback has been implemented using the Emscripten project's bytecode interpreter. This is just to make people's first experience with the page do something to hopefully intrigue people. But it is over an order of magnitude slower, and the download of the code is twice as large!!!
So please flip the switch so the loader can pull the better version. This is a wiki, so please add instructions for your favorite browser below:
To enable both SharedArrayBuffer and WASM Threading in Firefox, use the about:config
setting for javascript.options.shared_memory
:
The bottom shared buffer provider option also needs to be enabled.
Chrome has two distinct settings for SharedArrayBuffer and WASM Threads which you can access through chrome://flags
. By default on desktop installations, SharedArrayBuffer should already be enabled on any recent installation...but on Android, you still have to turn it on. WASM Threading is a separate option.