News for hackers. Stuff that matters.
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.