Here's an example of some mutex operations in WAT: https://gist.github.com/devsnek/9274f1420b7641d1b6c34141921f...
1,676 karma · joined February 24, 2017
Here's an example of some mutex operations in WAT: https://gist.github.com/devsnek/9274f1420b7641d1b6c34141921f...
Note that there is work to improve this (interface types, anyref, etc), but we're not there yet.
It also seems to work without UA switcher, but still states it won't work. ¯\_(ツ)_/¯
Hopefully y'all get a kick out of playing with some future JS features too. I'm also working locally on a system for stepping through code, although it depends on SharedArrayBuffer, which is disabled in many browsers.
Fun example of specification parity: https://tc39.es/ecma262/#sec-object.fromentries vs https://github.com/engine262/engine262/blob/85fdf5b2dcd50269...
What I think actually needs to happen is a standard for deferred navigation where the UA can be told to load a bunch of resources and then choose one of them to actually navigate to (basically what AMP does). The problem here is that Google is (as we type here) actively coming up with horrible standards like signed exchanges so that they never have to send users away from their own domain, so I don't think they would be fans of a standardized system that killed AMP.
On a sidenote, firefox has fantastic build times (like 20-45 minutes cold), and the codebase is fairly well organized, so if you want to try contributing to a browser, that's probably the one to start with. Chromium has a much nicer source IMO, but cold build times can be as high as seven or eight hours.