7 ms·
Quake 1 (about 100k lines of C) runs in the browser just fine: https://www.netquake.io/quake https://www.netquake.io/quake Yes, it's a 30 year old game but the
by gizmo 3y ago
Quake 1 (about 100k lines of C) runs in the browser just fine: https://www.netquake.io/quake https://www.netquake.io/quake
Yes, it's a 30 year old game but the typical CRUD web app doesn't have close to the complexity of quake. Good C++ code is significantly faster than JS, that's true, but JS is also much, much faster than you'd think.
- stanleydrew 3y agoThat quake demo is surely running on the WASM runtime which isn't really related to JavaScript: https://en.m.wikipedia.org/wiki/WebAssembly https://en.m.wikipedia.org/wiki/WebAssembly
- medo-bear 3y agonow you can make web apps in your compiled language of choice (limited choice) and not worry (as much) that its not fast enough
- chrisco255 3y agoWebassembly started its life as a JS hack, called asm.js: https://en.wikipedia.org/wiki/Asm.js https://en.wikipedia.org/wiki/Asm.js, which itself was fully capable of running Quake. Here's the Unreal engine demo from 10 years ago: https://www.youtube.com/watch?v=XsyogXtyU9o https://www.youtube.com/watch?v=XsyogXtyU9o