4 ms·
The Relooper is good enough that the lack of goto isn't an issue in a practical sense these days.
by pcwalton 14y ago
The Relooper is good enough that the lack of goto isn't an issue in a practical sense these days.
- politician 14y agoThe Emscripten Relooper algorithm "takes basic blocks of code - chunks of simple code, at the end of which are branches to other blocks of code - and generates high-level structure from that using loops and ifs." http://mozakai.blogspot.com/2012/05/reloop-all-blocks.html http://mozakai.blogspot.com/2012/05/reloop-all-blocks.html
- pcwalton 14y agoThat's my point. The Relooper does a good job with vast majority of code that you might conceivably want to compile to JS, making the lack of goto not a problem in a practical sense for these compilers.
- politician 14y agoHah, sorry, I didn't know what Relooper did, so I posted a comment describing where to find out about it for other people.