3 ms·
WASM is used to implement all kinds of control flow in other languages, so here it makes a lot of sense to have a lower level abstraction. The languages on top
by spankalee 3y ago
WASM is used to implement all kinds of control flow in other languages, so here it makes a lot of sense to have a lower level abstraction.
The languages on top of WASM will still have exceptions, generators, etc.
- vanderZwan 3y agoI was thinking the same thing: surely the needs of low-level languages intended as compilation targets are different from languages intended to be programmed in directly? Especially if the goal is to be able to accommodate different high-level language paradigms, which WASM seems to be aiming for.
- infogulch 3y agoThis is the best argument for a general effects implementation specifically for wasm -- the many languages that target wasm have a wide variety of control flow needs. A generalized solution to this problem has the advantage that it enables different compilers to use effects to match their required control flow semantics, while minimizing the surface area for runtime implementers.