News for hackers. Stuff that matters.
Re:WebAssembly 2.0 First Working Draft by jfmc on Wednesday April 20, 2022 @04:35AM (#31094226)
The requirement for structured programs dates back from the asm.js hack. Both relooper and stackifier are still workarounds. CPUs do not require structure programs at all. Unless there is a really good reason this still looks a hack driven by limitations of the underlying code generation. I understand that some compilation passes are easier/cheaper with structured control. But then... why are not LLVM and GCC enforcing them as well (at least their roadmaps)?
Re:WebAssembly 2.0 First Working Draft by astrange on Wednesday April 20, 2022 @06:41AM (#31094982)
It’s for security reasons and enabling static code analysis, there’s no particular need to make compilation “easier”.

PNaCL also had a lot of limitations though I don’t remember what they actually were.