Repository navigation
Clarify regular load/store semantics when threads are added - #259
Conversation
There was a problem hiding this comment.
Maybe clarify that we're envisioning an atomicity annotation on loads and stores, with the default being the most relaxed.
There was a problem hiding this comment.
Adding mention of atomicity annotation.
"relaxed" isn't quite appropriate because it has a meaning in the C++ memory model. Non-annotated accesses have different semantics than relaxed accesses: they can be elided, duplicated, split up.
There was a problem hiding this comment.
This is also good content, but it seems like it belongs in PostMVP.md#threads too, so that all the interesting information about threads is in one place.
|
Updated per @sunfishcode's suggestions. |
There was a problem hiding this comment.
I think this is technically correct, but only in the way that false implies P is vacuously true so I think it'd be more clear to reword. The fact that you can have separate wasm modules executing in separate workers (and thus on separate threads) is irrelevant since the wasm spec only considers the execution of a single module (much like the C spec is only talking about what's happening in a single process). I guess the goal is to provide a link from here to PostMVP.md#threads; perhaps clearer to just say "When [threads] are added, the memory model will be augmented to define the semantics of concurrent linear heap accesses." or something.
|
Ping? |
|
lgtm, with typo fixed. |
Clarify regular load/store semantics when threads are added
Resolves #248.