Linked by Thom Holwerda on Wed 9th Feb 2011 23:29 UTC
Hardware, Embedded Systems And, of course, just as I decide to leave the live blogging to play a game of Left 4 Dead 2, HP drops the big bombshell right at the end of their press event: webOS is coming to PCs!
Permalink for comment 461897
To read all comments associated with this story, please click here.
RE[3]: Comment by Laurence
by Valhalla on Fri 11th Feb 2011 06:03 UTC in reply to "RE[2]: Comment by Laurence"
Member since:

However WebOS (which is the platform we're discussing) /DOES/ use JS.

Yes, worth to note however is that Google uses a JIT-compiler for Javascript rather than interpreting. The JIT-Compiler they bought (V8) is very fast and unlike most other JIT-compilers it converts directly to machine code instead of the traditional bytecode, which means they don't need a 'virtual machine' but instead runs native code.

With both the code generator and the GC being state of the art I can see why Google bought V8. As for performance relative to Java or C#, obviously Java and C# being statically typed gives them an advantage but it would still be interesting to see just how much of a difference there really is.

Given that people write quite advanced games in purely interpreted languages like Python and Lua, there's no reason that JIT-compiled Javascript won't be able to perform well for many tasks given that the really heavy lifting will be done by the underlying system using native code and hardware acceleration, with Javascript merely handling the program 'logic'.

That would be down to shoddy programming then as your point is as nonsensical as arguing that C apps run faster than C++.

Indeed, there's nothing inherit in ObjectiveC that would make it's performance lesser than that of C or C++, this would be a question of the code quality generated by the compiler.

Reply Parent Score: 3