News for hackers. Stuff that matters.
Re:"Or so they say..." Javascript demo by kevingadd on Sunday August 08, 2010 @04:04AM (#1585034)
Runs 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.
Re:"Or so they say..." Javascript demo by phreeza on Sunday August 08, 2010 @05:25AM (#1585113)
The 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?
Re:"Or so they say..." Javascript demo by mrdoob2 on Sunday August 08, 2010 @07:26AM (#1585210)
You'll find the answer to that (amd more) in the blog post. http://mrdoob.com/blog/post/702
Re:"Or so they say..." Javascript demo by DTrejo on Sunday August 08, 2010 @05:38PM (#1586238)
mrdoob rocks in so many ways.
Re:"Or so they say..." Javascript demo by buro9 on Sunday August 08, 2010 @10:03AM (#1585352)
Works great here, flawless throughout... only 4% CPU load on the dev channel version of Chrome.

Having an octo-core might help out a bit ;)

Re:"Or so they say..." Javascript demo by Keyframe on Sunday August 08, 2010 @10:38AM (#1585393)
Works apretty well in Chrome on my ancient desktop machine which is a HP machine with AMD Sempron 3000+ and 2GB of RAM.
Re:"Or so they say..." Javascript demo by tgandrews on Sunday August 08, 2010 @06:42AM (#1585167)
Works well on Chrome 6 dev with a e6600 c2d which is quite old now.
Re:"Or so they say..." Javascript demo by hvs on Sunday August 08, 2010 @01:09PM (#1585639)
Ran pretty well for me in Chrome Dev Channel (Ver 6.0.472), with about 60%-70% processor on my Core2 Duo 3 GHz and an NVIDIA Quadro NVS 160M.
Re:"Or so they say..." Javascript demo by qjz on Sunday August 08, 2010 @09:46AM (#1585333)
I 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.

Re:"Or so they say..." Javascript demo by jamii on Sunday August 08, 2010 @09:52AM (#1585338)
> why not just run compiled binaries in the browser

Indeed, this is the whole point of NaCl.

http://code.google.com/p/nativeclient/

Re:"Or so they say..." Javascript demo by ynniv on Sunday August 08, 2010 @11:58AM (#1585499)
Compiled 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.
Re:"Or so they say..." Javascript demo by patrickaljord on Sunday August 08, 2010 @06:27PM (#1586352)
Re:"Or so they say..." Javascript demo by blasdel on Sunday August 08, 2010 @09:15PM (#1586665)
NaCL is a verifier and a set of userland syscalls, not an emulator.
Re:"Or so they say..." Javascript demo by rabidsnail on Sunday August 08, 2010 @01:55PM (#1585740)
All of the heavy lifting that this demo is doing can (and should) be done on the GPU. WebGL should allow that, and the next versions of firefox, chrome, and safari will ship with it (you can play with it in their nightly builds).
Re:"Or so they say..." Javascript demo by nkassis on Sunday August 08, 2010 @11:30PM (#1586917)
Amen to that, I was going to point out the same thing. With the new drivers from AMD supporting OpenGL ES 2.0 on all their cards and Nvidia supporting Opengl 4.1(full OpenGL ES compatibility) for their newest cards (fermi) WebGL is going to kick ass. I'm already using it in Firefox 4 beta 2 and chrome nightlies for work (building some scientific visualization software with it).
Re:"Or so they say..." Javascript demo by dkarl on Sunday August 08, 2010 @12:04PM (#1585511)
It'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.
Re:"Or so they say..." Javascript demo by long on Sunday August 08, 2010 @12:32PM (#1585576)
I 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.
Re:"Or so they say..." Javascript demo by AndrejM on Sunday August 08, 2010 @02:28PM (#1585818)
All of this because people are too lazy to install software? Why not just run compiled binaries in the operating system?
Re:"Or so they say..." Javascript demo by fjabre on Sunday August 08, 2010 @06:02PM (#1586310)
Because it's more fun to make the web do things it was never intended for and it's still the closest thing we have to a universal write once platform.
Re:"Or so they say..." Javascript demo by gokhan on Sunday August 08, 2010 @04:35PM (#1586098)
Applets, clickonce etc.
Re:"Or so they say..." Javascript demo by fleitz on Sunday August 08, 2010 @03:03AM (#1584985)
Amazing 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.

Re:"Or so they say..." Javascript demo by EasyCompany on Sunday August 08, 2010 @04:20AM (#1585054)
How about using a chrome frame, then it can run across all browsers.
Re:"Or so they say..." Javascript demo by steveklabnik on Sunday August 08, 2010 @03:33PM (#1585958)
I believe it already includes Chrome Frame. And it doesn't run on Safari because the <audio> is ogg.
Re:"Or so they say..." Javascript demo by buro9 on Sunday August 08, 2010 @10:05AM (#1585355)
I don't think you can get Chrome for the iPad yet. Not holding out for it either.
Re:"Or so they say..." Javascript demo by Twisol on Sunday August 08, 2010 @03:56AM (#1585026)
That's pretty cool, especially if you go fullscreen in Chrome. I can really see the potential for a JavaScript demoscene here.
Re:"Or so they say..." Javascript demo by jacquesm on Sunday August 08, 2010 @05:22AM (#1585110)
There was a post about that yesterday: http://news.ycombinator.com/item?id=1581400
Re:"Or so they say..." Javascript demo by a00021 on Sunday August 08, 2010 @07:17AM (#1585198)
Runs 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
Re:"Or so they say..." Javascript demo by mrdoob2 on Sunday August 08, 2010 @07:31AM (#1585217)
Again, you'll find the answer to that (and more) in the blog post. http://mrdoob.com/blog/post/702
Re:"Or so they say..." Javascript demo by stwe on Sunday August 08, 2010 @05:20AM (#1585104)
Challenge: shrink it to 1k and submit it to http://js1k.com/
Re:"Or so they say..." Javascript demo by mattmanser on Sunday August 08, 2010 @06:15AM (#1585152)
The minified 3D engine is 33k on its own!
Re:"Or so they say..." Javascript demo by jared314 on Sunday August 08, 2010 @02:25PM (#1585808)
That sounds like a challenge to me!
Re:"Or so they say..." Javascript demo by jws on Sunday August 08, 2010 @10:46AM (#1585401)
INVALID_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.

Re:"Or so they say..." Javascript demo by zzzmarcus on Sunday August 08, 2010 @10:50PM (#1586858)
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.

Re:"Or so they say..." Javascript demo by mrdoob2 on Sunday August 08, 2010 @11:12AM (#1585434)
Safari doesn't support .ogg for <audio>. I guess I should show a message for Safari (and IE9) users.
Re:"Or so they say..." Javascript demo by thought_alarm on Sunday August 08, 2010 @01:10PM (#1585643)
My copy of Safari must be broken then, because it plays the embedded .ogg audio just fine.
Re:"Or so they say..." Javascript demo by mrdoob2 on Sunday August 08, 2010 @02:09PM (#1585771)
You probably installed a theora plugin to quicktime :)
Re:"Or so they say..." Javascript demo by GrandMasterBirt on Sunday August 08, 2010 @10:27AM (#1585376)
NERDGASM!

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.