WebAssembly / binaryen

Optimizer and compiler/toolchain library for WebAssembly
Apache License 2.0
7.44k stars 737 forks source link

Shared memory text syntax #1248

Open binji opened 6 years ago

binji commented 6 years ago

@dschuff Should've listened to you earlier. :-) Just recently added this to the spec interpreter, and @rossberg suggested your original syntax: see https://github.com/WebAssembly/threads/pull/74

So it should look like this:

(memory 1 1 shared)
dschuff commented 6 years ago

Heh, ok. I don't have a strong opinion on that, I'll change it back if that's what goes in the spec. Related (and to https://github.com/WebAssembly/threads/pull/76) I do also like the idea of adding "atomic" to wait and wake.

binji commented 6 years ago

Well, I already landed it in wabt: https://github.com/WebAssembly/wabt/pull/661