SharedArrayBuffers with wasm?

Google announced that V8 version 6.0
<https://v8project.blogspot.com/2017/06/v8-release-60.html> supports
SharedArrayBuffers and implies they can be used with WebAssembly:

"SharedArrayBuffers also unlock the ability to port threaded applications
to the web via asm.js or WebAssembly."

I've created a simple program to test importing and exporting a
WebAssembly.Memory object when instantiating a wasm module written in C.
I'm using Nodev9 which has V8 v6.1 and the program is working as intended.

Next I'd like to try SharedArrayBuffers, but I've been unable to figure out
how to get the SAB into the wasm module. Can anyone give me some guidance?

Received on Thursday, 22 June 2017 01:21:37 UTC