To read all comments associated with this story, please click here.
Agreed. It's one thing to provide a sandbox for scripting code that requires an interpreter. It's another matter entirely to sandbox code that's running natively on the CPU. Without knowing more about the security they'd be putting in place, I'm not at all comfortable with this idea.
I'm not even sure what the advantages of running native code are supposed to be. Poor implementations of non-JIT Java with horrid support for UIs back during the heyday of Java "applets" combined with more years of poor implementations of non-JIT javascript have given portable runtimes (and the letters 'j', 'a', and 'v') a bad name. Java is really only a little clunky these days, and Javascript engines are getting ready to not suck. We're finally mostly rid of the rid of the ActiveX terror. This is not the time to be pushing native code. It's finally time to start pushing client-side Java and Javascript.
Then again, the guys at Google are a lot smarter than I am. So there must be some uber-rarified reason for doing this.
Edited 2008-12-10 20:41 UTC
Agreed. Pushing and optimizing Java might be the better option IMHO.
Secretly I am hoping that open source and open standard will break the dominance of X86. It would be really nice to have a fast ARM Netbook in 2009 that can run nearly everything for a whole working day (8 to 10 hours).
100% working open source flash is the only thing I still really need.
And I don't think Google is smarter than I am
(Lively anyone?)
The problem with "JIT" is that the results are simply thrown away after use. A much better approach would be "JITAR" (Just in Time And Retain), which would then amortize the translation of executable code across multiple invocations. Combined with efficient fine-grained dynamic linkin, a mechanism for finding and using common libraries (not necessarily maintained by a single source), and reliable version checking -- all to reduce the actual amount of compilation done across applications -- it could be extremely efficient.
Of course, given its relative ubiquity, x86 (or a reasonable subset) could be used as the intermediate language to even further reduce compilation for common cases.







Member since:
2006-01-04
.. not sure it will happen though.
I for one will be _VERY_ hesitant to run native code from some website.
Actually I might not even install the plugin ;P