Emscripten and New Javascript Engine Bring Unreal Engine To Firefox 124
MojoKid writes "There's no doubt that gaming on the Web has improved dramatically in recent years, but Mozilla believes it has developed new technology that will deliver a big leap in what browser-based gaming can become. The company developed a highly-optimized version of Javascript that's designed to 'supercharge' a game's code to deliver near-native performance. And now that innovation has enabled Mozilla to bring Epic's Unreal Engine 3 to the browser. As a sort of proof of concept, Mozilla debuted this BananaBread game demo that was built using WebGL, Emscripten, and the new JavaScript version called 'asm.js.' Mozilla says that it's working with the likes of EA, Disney, and ZeptoLab to optimize games for the mobile Web, as well."
Emscripten was previously used to port Doom to the browser.
Chrome (Score:5, Informative)
Re:Remember the good old days? (Score:5, Informative)
What happened to seeing a grid of 80x25 characters on a black background? Progress.
Re:I don't care (Score:4, Informative)
64-bit gives better security (Score:5, Informative)
Plus, there is no real advantage to using a 64-bit browser unless you want it to use more than 2gb of memory
ASLR (Address Space Layout Randomization) is far more effective in a 64-bit address space than in a 32-bit address space. Browsers need all the layers of protection they can get from exploits.
On the other hand, WebGL gives any website in the world nearly direct access to exploit bugs in GPU drivers, significantly increasing the attack surface of the browser. I say nearly, because the browser does check all parameters for possible buffer overflow conditions before passing them onto OpenGL calls, but any other type of exploit is still possible.
I would definitely prefer that Firefox prioritize features that increase security over those that decrease it.
Re:I don't care (Score:5, Informative)
64-bit browsers are inherently more secure, and can access more memory. Native 64-bit apps also run faster. You're trying to call someone an idiot without realizing that you don't know what you're talking about in claiming there are no advantages.
http://arstechnica.com/information-technology/2012/11/64-bit-firefox-for-windows-should-be-prioritized-not-suspended/ [arstechnica.com]
Re:I don't care (Score:4, Informative)
Firefox these days uses less memory than Chrome.
http://www.ghacks.net/2012/06/21/chrome-uses-way-more-memory-than-firefox-opera-or-internet-explorer/ [ghacks.net]
Mind you, Chrome is still my everyday browser, but Firefox has gotten really good at being efficient with memory.
Re:Javascript engine evolution (Score:5, Informative)
Ah, my mistake. "use asm" is a proposed Javascript feature:
http://asmjs.org/spec/latest/ [asmjs.org]
Also interesting:
http://www.i-programmer.info/news/167-javascript/5694-firefox-runs-javascript-games-at-native-speed.html [i-programmer.info]
Google is interested in asm.js (Score:2, Informative)
"At least some at Google [cnet.com] want to embrace a Mozilla-backed project to speed up Web apps written with JavaScript -- even though it competes directly with Google's own Native Client and Dart programming technology. "
Re:WHY?!? (Score:4, Informative)
Why? Because you're in a browser right now and it's the most popular software platform ever.
https://wiki.mozilla.org/GamepadAPI [mozilla.org]
No it isn't.
WebGL sends shader programs to the GPU which executes them. There isn't a layer underneath it.
People had no interest in such world browsers, several companies including Microsoft offered them in the 90s and they all died. Microsoft's 1997 technology was called Chrome (yes, really), and they promised "Chromeffects [wikipedia.org] would turn a web browser into a rippling, 3D space with audio and video playback".
Meanwhile people do like 3D games, they do love running things in their browser, and the fullscreen API [davidwalsh.name] lets the game canvas go fullscreen. Enjoy your lawn.