- Joined
- Jan 2, 2020
- Messages
- 1,414
I'm mighty impressed how well Cerberus compiles to HTML5 & JavaScript.
I remember a technology called Asm.one which were a subset of JavaScript that was picked because how well it could be optimized.
This later became implemented as something now called WebAssembly.
Even if asm.one now is long gone that JavaScript subset is still very alive inside browsers and their compilers, and Cerberus seem to use that subset. When you benchmark WebAssembly-bytecode against regular JavaScript (that particular subset of JavaScript) WebAssembly rarely wins.
I'm not kidding when I say that compiling with Cerberus to HTML5 often produces code that executes close to or even faster than desktop.
Once JS was a slow script that everyone taunted like BASIC. Now it rules the world.
We've reached the point where web might well substitute desktop apps/games
I remember a technology called Asm.one which were a subset of JavaScript that was picked because how well it could be optimized.
This later became implemented as something now called WebAssembly.
Even if asm.one now is long gone that JavaScript subset is still very alive inside browsers and their compilers, and Cerberus seem to use that subset. When you benchmark WebAssembly-bytecode against regular JavaScript (that particular subset of JavaScript) WebAssembly rarely wins.
I'm not kidding when I say that compiling with Cerberus to HTML5 often produces code that executes close to or even faster than desktop.
Once JS was a slow script that everyone taunted like BASIC. Now it rules the world.
We've reached the point where web might well substitute desktop apps/games