Live data from Hacker News

First 3D Commercial Web Game Powered By asm.js

blog.mozilla.org

51–60 of 89 posts

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

#51
post #37
post #16

Earlier quoted context omitted.

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."

Until recently, that was a contradictory set of goals. Now it's pretty feasible to achieve both goals using C++. But, not so much with hand-written JS... (Feasible, not arguing theoretical)

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

#52

I feel like "compatible with all modern browsers" is a little dishonest as long as Apple keeps dragging their feet with WebGL in iOS. I know that this isn't an asm.js problem, but the implication is that you can make a game like this which runs in all modern browsers, and that's simply not true yet.

I would argue that a browser without WebGL is not a "modern browser". WebGL is part of what a browser is today, and it works (and is on by default) in recent versions of Internet Explorer, Chrome, Firefox and Opera.

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

#54
post #35

I am not sure how to play the game. The intro messages reads: {"success":false,"error":"DuplicateEntryException","message":"\u0027Anonymous1900\u0027 already exists."}

$20 says it's a race condition being caused by multithreaded access to a nonatomic auto incrementing ID...

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

#55
post #35

I am not sure how to play the game. The intro messages reads: {"success":false,"error":"DuplicateEntryException","message":"\u0027Anonymous1900\u0027 already exists."}

$20 says it's a race condition being caused by multithreaded access to a nonatomic auto incrementing ID...

Hm, I thought asm.js didn't expose shared memory (yet(?)).

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

#56
Trying to open this up on Chrome to see whether it works, it can't download files, because the S3 bucket doesn't give an Access-Control-Allow-Origin header.

Can they put a CORS configuration up? http://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html#how... and http://docs.aws.amazon.com/AmazonS3/latest/UG/EditingBucketP...

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

#57

Earlier quoted context omitted.

$20 says it's a race condition being caused by multithreaded access to a nonatomic auto incrementing ID...

Hm, I thought asm.js didn't expose shared memory (yet(?)).

More likely in a back-end database.

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

#60
post #37

Earlier quoted context omitted.

> 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."

Until recently, that was a contradictory set of goals. Now it's pretty feasible to achieve both goals using C++. But, not so much with hand-written JS... ( Feasible , not arguing theoretical)

Kindasorta. They do contradict if you only write one program. But you could write a high-performance 3D game and a web app and achieve both goals, thus justifying learning both JavaScript and C++.
Post reply on HN