3 ms·
> asm.js is already a stronger candidate because I can use it right now and it will work everywhere. This is fundamentally not true. We tend to think of "bette
by munificent 14y ago
> asm.js is already a stronger candidate because I can use it right now and it will work everywhere.
This is fundamentally not true. We tend to think of "better perf" as not being breaking the web, but that isn't always the case. Imagine a game written using asm.js. Plays beautifully at 30fps on Firefox. Great! And it runs on every browser, right?
Well, if it runs at three FPS on Safari, then as far as the game developer and the player are concerned, no, the game doesn't run on Safari.
- pcwalton 14y agoApps can degrade gracefully by scaling down graphics when they are running on non-asm browsers.
- munificent 14y agoIf your graphics are the bottleneck, then you're likely GPU bound and not CPU bound, so that may not buy you much. Making a game that can make players happy across a 10x range of hardware capabilities is hard.
- wycats 14y agoDoes this mean that Chrome "broke the web" by being so fast while IE6 was still in circulation?
- munificent 14y agoIf you're going to use IE6 as the baseline that pretty much every browser was breaking the web relative to it, including later versions of IE, weren't they? I don't recall many websites at the time only being effectively usable for perf reasons in Chrome, but my memory is a bit hazy. Certainly, there were fewer very JavaScript heavy sites, and most of HTML5 hadn't been created yet. That meant there were fewer opportunities to build web apps that required fast JS. Also, Chrome wasn't as fast as it is now. But, yes, if people were building apps then that said "only in Chrome" then that would imply that to some degree Chrome was breaking the web. Fortunately, in that case, the other browsers caught up quickly and resolved that tension.
- rwallace 14y agoYes but games with their real-time requirements are a special case. Most websites are still usable even if the Javascript is running a tenth as fast.