6 ms·
"Or so they say..." Javascript demo
- fleitz 16y agoAmazing demo for JS. I was really hoping it would work on any iOS device but all they i've tried 3GS/IPAD don't work, but it renders beautifully in chrome. On a somewhat related but off topic note, I've had this strange idea for a while now that if one had cassandra bindings for JS and a VM image that joined a cassandra image on boot and executed a JS file via Node.JS stored at a well-known key that you could build clusters of almost infinite size that would be accessible to almost every developer. Yes, I think that per node performance would be horrible initially but that the sheer scale and accessibility would make up for it.
- EasyCompany 16y agoHow about using a chrome frame, then it can run across all browsers.
- buro9 16y agoI don't think you can get Chrome for the iPad yet. Not holding out for it either.
- steveklabnik 16y agoI believe it already includes Chrome Frame. And it doesn't run on Safari because the <audio> is ogg.
- Twisol 16y agoThat's pretty cool, especially if you go fullscreen in Chrome. I can really see the potential for a JavaScript demoscene here.
- jacquesm 16y agoThere was a post about that yesterday: http://news.ycombinator.com/item?id=1581400 http://news.ycombinator.com/item?id=1581400
- kevingadd 16y agoRuns awful for me in Firefox, but looks and runs great in Chrome. Really impressive - I think this is the first 'pure HTML' demo I've seen that really sells me on what can be done with Canvas, <audio>, etc - it doesn't feel like a compromised or 'it's cool because it's in the browser' experience, it's a legitimate demo that stands on its own without even considering how it was made.
- phreeza 16y agoThe first few seconds work well for me in Chrome, but as soon as it gets to the Galaxies it starts to get real slow. This is on a 2GHz Core2Duo. What version of Chrome are you using?
- tgandrews 16y agoWorks well on Chrome 6 dev with a e6600 c2d which is quite old now.
- mrdoob2 16y agoYou'll find the answer to that (amd more) in the blog post. http://mrdoob.com/blog/post/702 http://mrdoob.com/blog/post/702
- DTrejo 16y agomrdoob rocks in so many ways.
- buro9 16y agoWorks great here, flawless throughout... only 4% CPU load on the dev channel version of Chrome. Having an octo-core might help out a bit ;)
- Keyframe 16y agoWorks apretty well in Chrome on my ancient desktop machine which is a HP machine with AMD Sempron 3000+ and 2GB of RAM.
- 16y ago
- startupgrrl 16y agoSweet code. I'm getting about 3FPS on my quad core machine and my browser is taking 300MB of resident RAM and I can barely notice the jpeg artifacts in the sprites. Look out demo scene!!
- stwe 16y agoChallenge: shrink it to 1k and submit it to http://js1k.com/ http://js1k.com/
- mattmanser 16y agoThe minified 3D engine is 33k on its own!
- jared314 16y agoThat sounds like a challenge to me!
- a00021 16y agoRuns relatively decent on Chrome 5.0.375.125. As usual, utter functional failure on Opera (10.60). Can someone more informed explain which one is closer to the truth? a) Opera's JS engine does not fully support standard functionality b) the demo uses yet-to-be-standardized functions that have been implemented in Chrome
- mrdoob2 16y agoAgain, you'll find the answer to that (and more) in the blog post. http://mrdoob.com/blog/post/702 http://mrdoob.com/blog/post/702
- qjz 16y agoI especially liked the part where smoke came out of the fan vent on my laptop. But seriously, if this is where things are headed, why not just run compiled binaries in the browser? There, I said it.
- jamii 16y ago> why not just run compiled binaries in the browser Indeed, this is the whole point of NaCl. http://code.google.com/p/nativeclient/ http://code.google.com/p/nativeclient/
- ynniv 16y agoCompiled for what platform? jamii mentions NaCl, but x86 is a very complicated architecture to emulate. Java applets are better, but there is still a lot of overhead (and most people never performance optimize their Java). I would like to see a plugin system based on LLVM, but we have a ways to go there.
- patrickaljord 16y agohttp://code.google.com/p/nacl-llvm-branches/ http://code.google.com/p/nacl-llvm-branches/
- blasdel 16y agoNaCL is a verifier and a set of userland syscalls, not an emulator.
- dkarl 16y agoIt's harder to verify that a program doesn't violate the browser's security policies and try to get out of the sandbox. That's why NaCl is such an impressive project.
- long 16y agoI don't think compilation per se would make this sort of program run faster. The slowness would be better addressed by giving a lot of computation to the GPU, which is the direction browsers are headed (e.g. WebGL). For whatever reason, people don't like compiling stuff, and I think that's a primary constraint.
- GrandMasterBirt 16y agoNERDGASM! I must say the program in itself is nicely made, not mentioning the javascript-fact of it. Edit: Too bad does not work in IE9, was hoping to see what video acceleration can do for performance.
- jws 16y agoINVALID_STATE_ERR: DOM Exception 11: An attempt was made to use an object that is not, or is no longer, usable. Safari 5.0.1 mac.
- mrdoob2 16y agoSafari doesn't support .ogg for <audio>. I guess I should show a message for Safari (and IE9) users.
- thought_alarm 16y agoMy copy of Safari must be broken then, because it plays the embedded .ogg audio just fine.
- mrdoob2 16y agoYou probably installed a theora plugin to quicktime :)
- zzzmarcus 16y agohttp://xplsv.com/prods/demos/xplsv_orsotheysay/ http://xplsv.com/prods/demos/xplsv_orsotheysay/ Install that component and it will play, slightly better than the Chrome dev builds in my experience, but not much.