Live data from Hacker News

First 3D Commercial Web Game Powered By asm.js

blog.mozilla.org

31–40 of 89 posts

Re: First 3D Commercial Web Game Powered By asm.js

#32
post #17

Earlier quoted context omitted.

I just hope that it helps drive growth away from Internet Exploder ...

No. Given that IE previews support WebGL and typed arrays, asm.js should run just fine on them. This is entirely the point of asm.js!

It gives a fraction of the performance that Firefox gives you.

quick google, this guy[0] got

IE10 = 11900,

chrome = 22500,

firefox = 40000

[0]http://www.beyondjava.net/blog/google-adds-asm-js-test-octan...

If IE is giving you half the performance of the nearest, free, easily downloaded competitor in your favourite online game, you might be tempted to switch. And this is for the few users that are on IE10!

Re: First 3D Commercial Web Game Powered By asm.js

#34
post #11

Earlier quoted context omitted.

Minecraft in the browser has been done already, hasn't it? It'd be pretty trivial, as it's been ported to java / c# / objective c already, and has low system requirements. Given that asm.js games tend to run at something like 15-30% of the speed of native code, I doubt we'll see Battlefield 4 or Starcraft 2 anytime soon. Additionally, given that the WoW game client is many gigabytes in size, I doubt we'll see that ei…

Citation on the 15-30% claim? We see more like 50%, including compilation time. Sometimes much faster on certain benchmarks (Bullet IIRC?) now that float32 support has landed.

https://hacks.mozilla.org/2013/12/monster-madness-creating-g...

This is from a link in the article for more information. These Monster Madness fellows found Firefox gave them 33% of native performance, and Chrome 20%. Presumably IE would give you fractions of these figures.

I figured that, rather than citing figures from benchmarks, I'd go for the real world scenario that this release has given us.

Re: First 3D Commercial Web Game Powered By asm.js

#37
post #16

Earlier quoted context omitted.

Only if they want ultra-high performance, for writing games and suchlike. Otherwise they can stick to javascript. (And, of course, anything else that compiles to javascript)

To be fair, if you want ultra-high performance for high quality 3d games, why did you learn javascript? Go away and learn C or C++ ... This doesn't give anything to web developers. It gives C / C++ developers a way onto the web.

> To be fair, if you want ultra-high performance for high quality 3d games, why did you learn javascript?

That's not fair at all, because there are valid answers to that question like "Because I also want my programs to run in the browser."

Re: First 3D Commercial Web Game Powered By asm.js

#38
Wayyyy back in 2007 I half-jokingly made a prediction about the future of computing. The hot topics at the time were AJAX and new multi-core processors targeted at consumers. Everyone was trying to envision which language would win out by making it easy to write massively parallel programs. There were lots of articles published about Haskell and software transactional memory. The demise of C and C++, and their managed Java/C# spawn was imminent. How could you write in a language that couldn't handle multiple cores for you?

The future is here, in 1/4 of the time I thought it would take. I guess I have to go write a new prediction.

  So. . .here's my prediction, taking into account the pace
 of hardware development and the history of software
 development. In 20 years, cheap hardware will be
 ridiculously fast, but it will still look very much like
 Intel hardware today. We'll have many, many CPU cores to
 work with, but nobody will use a parallel programming
 language designed to take advantage of multiple cores.
 Instead, virtualization (i.e. VMware, Xen) will be
 integrated into the operating system, and each process
 will run on its own virtual machine.

  Each web browser will have been expanded into a full blown
 widget toolkit and have merged in something that looks
 like Flash, but there will still be multiple incompatible
 browsers. The latest craze will be a browser compatibility
 layer written in a programming language that compiles
 to "raw Javascript", and it will reduce the performance of
 applications but allow you to use them anywhere.

  People will set about re-writing a version of Photoshop in
 the new compatibility layer, and everyone will wonder why
 they'd do that, when the current version of Photoshop runs
 in Internet Explorer just fine.
Edit: The lesson here is that if you want to predict the future, try to do it by making a prediction so ridiculous it could only be a joke.

Re: First 3D Commercial Web Game Powered By asm.js

#39
Mozilla need to tone down the disingenuous marketing as it's going to bite the otherwise worthy asm.js in the long run.

The problem is that video fails to explicitly point out that the only version relying on asm.js is the browser version, which is the least interesting, while they're all excited about different devices those are all supported thanks to Unreal's cross platform support and has nothing to do with the asm.js version.

Re: First 3D Commercial Web Game Powered By asm.js

#40
post #16

Earlier quoted context omitted.

Only if they want ultra-high performance, for writing games and suchlike. Otherwise they can stick to javascript. (And, of course, anything else that compiles to javascript)

To be fair, if you want ultra-high performance for high quality 3d games, why did you learn javascript? Go away and learn C or C++ ... This doesn't give anything to web developers. It gives C / C++ developers a way onto the web.

What makes you think that many web developers don't already know C/C++?

Many developers choose the web because there is their audience, their business, their future. And we know that people don't like to install stuffs, they want to consume a product LIVE.

Post reply on HN