<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:osnews="http://www.osnews.com/rss2#">
	<channel>
		<title>OSNews: </title>
		<link>http://www.osnews.com/story/26371/_There_is_something_magical_about_Firefox_OS_</link>
		<description>Exploring the Future of Computing</description>
		<language>en-us</language>
		<copyright>Copyright 2001-2013, David Adams</copyright>
		<webMaster>adam+nospam@osnews.com</webMaster>
		<lastBuildDate>Thu, 20 Jun 2013 06:17:09 GMT</lastBuildDate>
		<image>
			<url>http://www.osnews.com/images/osnews.gif</url>
			<title>OSNews.com</title>
			<link>http://www.osnews.com</link>
		</image>
		<item>
			<title>Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?534958</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534958</guid>
			<description>As it is currently being discussed to death in Reddit and HackerNews, given the way mobile operators and handset makers behave, the amount of failed attempts with alternative mobile operating systems, Firefox OS is most likely going to be the next corpse.</description>
			<pubDate>Thu, 13 Sep 2012 20:35:00 GMT</pubDate>
			<author>donotreply@osnews.com (moondevil)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?534960</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534960</guid>
			<description>Since it relies on Android compatible hardware and Android underlying lower stack with kernel/drivers - its potential installation base is quite broad. So it won't be a corpse by any means.<br />
<br />
So far what's really lacking are devices compatible with conventional (non Android) Linux stack. Samsung's devices for Tizen didn't come out yet to address this, and Jolla's one is supposed to appear next year.</description>
			<pubDate>Thu, 13 Sep 2012 20:56:00 GMT</pubDate>
			<author>donotreply@osnews.com (shmerl)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Great but...</title>
			<link>http://www.osnews.com/thread?534961</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534961</guid>
			<description>Worst case it will popularize some phone APIs, like SMS. I hope it succeed, but I just don't believe that much.</description>
			<pubDate>Thu, 13 Sep 2012 21:00:00 GMT</pubDate>
			<author>donotreply@osnews.com (dmrio)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?534962</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534962</guid>
			<description>I see a contradiction in the fact that they use HTML5 and JS and that they want it to run on cheap hardware as well as Android.<br />
 <br />
 I highly doubt the claim in the article about javascript game running faster than Android native games. I _really_ want to see some proof of that, because that's really not what I have seen. I mean even on the desktop, HTML5/JS is slow when compared to other technologies.<br />
<br />
Also, it's really time for the web browser developers to start working on a real VM for the browser instead of hacking on top of JS. .NET seems like a good example of how you can have a common API shared across multiple languages.Edited 2012-09-13 21:04 UTC</description>
			<pubDate>Thu, 13 Sep 2012 21:02:00 GMT</pubDate>
			<author>donotreply@osnews.com (bouhko)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>WebOS</title>
			<link>http://www.osnews.com/thread?534963</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534963</guid>
			<description>This sounds every bit like WebOS. As a former Pre owner, I love the idea, but am completely skeptical about the success of this.</description>
			<pubDate>Thu, 13 Sep 2012 21:08:00 GMT</pubDate>
			<author>donotreply@osnews.com (Patric)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Most forward-looking</title>
			<link>http://www.osnews.com/thread?534966</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534966</guid>
			<description>Firefox OS is the most forward-looking I have ever seen the open-source/standards-worshipping crowd. The overall strategy has a lot going for it, both when it comes to user rights and freedoms (open platform), market forces (getting apps will get easier and easier), and from a technology perspective (easy to profit from the work of a wider community). Looking forward to this. Interestingly Microsoft has also caught on to the wisdom of this move, having made HTML5 apps first-class both in the runtime and the dev tools in Windows 8. Surprisingly more forward-looking than Google when it comes to the web. Apple is also falling behind when it comes to this direction.<br />
<br />
On the surface it may look like users look down on webview apps, but they are getting better and better, and in many cases the users aren't complaining simply because they don't <i>realize</i> that it is a webview app they are dealing with.</description>
			<pubDate>Thu, 13 Sep 2012 21:36:00 GMT</pubDate>
			<author>donotreply@osnews.com (vaette)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?534969</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534969</guid>
			<description>Web based tools and languages don't even work properly for the web nowadays. JS for example is bloaty, inadequate and people try to make it do things it was never designed to do ... resulting in hacks uppon hacks uppon hacks. <br />
HTML is a MARKUP LANGUAGE, it is meant to do layout, framing, formatting, etc of a DOCUMENT. <br />
<br />
So why would it be a good idea to build an entire mobile operating system around this?</description>
			<pubDate>Thu, 13 Sep 2012 22:11:00 GMT</pubDate>
			<author>donotreply@osnews.com (p13.)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>STOP</title>
			<link>http://www.osnews.com/thread?534971</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534971</guid>
			<description>Trying to force HTML5 on developers. For fucks sake. It is not up to par. Just fucking stop. <br />
<br />
Kill this OS with fire. Hell, even WebOS with EnyoJS is better</description>
			<pubDate>Thu, 13 Sep 2012 22:49:00 GMT</pubDate>
			<author>donotreply@osnews.com (Nelson)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Comment by Luke McCarthy</title>
			<link>http://www.osnews.com/thread?534972</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534972</guid>
			<description>I welcome alternative and open OSes for mobile, but I'm not a fan of the &quot;do everything with web technologies&quot; approach. Despite the claims of this article, such an approach is always suboptimal. And the programming environment sucks in my opinion, I hate when I have to program anything for web browsers. I don't see how JavaScript applications are supposed to run faster than Android's Java apps. I would much prefer a system that runs native-compiled applications... like Moblin/Tizen/whatever. If and when Wayland is viable it would be a pretty nice base for a phone UI (since all phones have accelerated OpenGL ES now).<br />
<br />
I would really like to see smartphones that are actually fully-fledged PCs that can be docked to a base station (like the Motorola Atrix) and run a full desktop... but not like that tacked-on system that runs inside Android, but the same exact system that runs on the phone (just a different UI on a different screen). Now add multi-monitor support and you have something very special.<br />
<br />
ARM is missing a unified system-level platform like the PC/x86 enjoys, due to various different non-standard SoC implementations. ARM need to get their act together and create a common platform that SoC vendors can implement. Hopefully that's what HSA will lead to. Otherwise I fear Intel will catch up to them in power efficiency and beat them on flexibility, platform standardisation and openness.</description>
			<pubDate>Thu, 13 Sep 2012 22:52:00 GMT</pubDate>
			<author>donotreply@osnews.com (Luke McCarthy)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Most forward-looking</title>
			<link>http://www.osnews.com/thread?534978</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534978</guid>
			<description>Microsoft has moved HTML5 tooling forward a few years with Expression Blend. <br />
<br />
However, Windows 8 JavaScript apps are decidedly Windows 8 only. The knowledge carries over, its not a write once run anywhere deal.</description>
			<pubDate>Thu, 13 Sep 2012 23:20:00 GMT</pubDate>
			<author>donotreply@osnews.com (Nelson)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?534982</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534982</guid>
			<description>The slowest part isn't JavaScript, hasn't been for a while.<br />
<br />
Communication with the HTML-document has always been the slowest part. This is because you are crossing boundries and the page might need to re-render.<br />
<br />
Most of the things people should avoid doing are known.<br />
<br />
If your Firefox installation supports WebGL proper (see: about:support ) you can run WebGL games fairly close to what the hardware can give you. Just see the demo at: <a href="https://developer.mozilla.org/demos/detail/bananabread" rel="nofollow">https://developer.mozilla.org/demos/detail/bananabread</a><br />
<br />
For example I use <a href="https://addons.mozilla.org/en-US/firefox/addon/pdfjs/" rel="nofollow">https://addons.mozilla.org/en-US/firefox/addon/pdfjs/</a> which is a lot faster than loading some plugin or reader. The rendering itself isn't much slower actually.<br />
<br />
The slowers part of the language itself is that it is dynamically typed. But that has been solved by detecting the type and by introducing types for large sets of data (Typed Arrays).<br />
<br />
Java can be very close to C/C++ performance for a number of things, but definitely not everything. And the startup performance of Java usually sucks.<br />
<br />
Javascript is now with proper type support for most things about twice as slow as Java or C.<br />
<br />
If you remember that languages like PHP or Perl are 100 times slower than C, then you should see it's not that bad. For example Lua without JIT is something like 50 times slower than C.</description>
			<pubDate>Thu, 13 Sep 2012 23:53:00 GMT</pubDate>
			<author>donotreply@osnews.com (Lennie)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Great but...</title>
			<link>http://www.osnews.com/thread?534985</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534985</guid>
			<description>Did you know that browsers will soon support a whole lot more than just SMS.<br />
<br />
How about an API for doing real time communication like Video-chat, or VoIP-calls ? It's called WebRTC. RTC == Real Time Communication.<br />
<br />
WebRTC is a set of APIs:<br />
<br />
MediaStream: Granting web apps/sites access to the camera and microphone on your computer, via the getUserMedia API.<br />
<br />
DataChannel: Communicating data peer to peer.<br />
<br />
PeerConnection API: Enabling direct peer to peer connections between two web browsers for audio and video.<br />
<br />
Basically, it allows for:<br />
reliable (TCP) and unreliable (UDP) peer2peer encrypted communication between two or more browsers or a browser and a server. With NAT-traversal and encryption. Suitable for Video, Audio and any other data.<br />
<br />
Basically a built-in Skype-like API.<br />
<br />
If you have Firefox installed you probably also now have support for this really cool new free audio codec:<br />
<br />
<a href="https://hacks.mozilla.org/2012/07/firefox-beta-15-supports-the-new-opus-audio-format/" rel="nofollow">https://hacks.mozilla.org/2012/07/firefox-beta-15-supports-the-new-o...</a><br />
<br />
The Opus codec is mandatory-to-implement for browsers that support WebRTC. Which will probably include browsers from:<br />
- Mozilla<br />
- Opera<br />
- Google<br />
- Microsoft<br />
<br />
Apple is still keeping quiet.<br />
<br />
It can also be combined with traditional VoIP and thus old style phone calls.<br />
<br />
There seems to be even an interrest from Telcos.<br />
<br />
It gets even more interresting when you start combining it with other things:<br />
<br />
<a href="http://www.youtube.com/watch?v=aK1DC2zp6ZE" rel="nofollow">http://www.youtube.com/watch?v=aK1DC2zp6ZE</a> (playing Chess while you can see your opponent) I'm sure people will come up with even better ideas.</description>
			<pubDate>Fri, 14 Sep 2012 00:08:00 GMT</pubDate>
			<author>donotreply@osnews.com (Lennie)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?534986</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534986</guid>
			<description><div class="cquote">Web based tools and languages don't even work properly for the web nowadays. </div><br />
<br />
I find the situation to be better than it ever has been to be honest. It is certainly better than it was 10 years ago.<br />
<br />
<div class="cquote">JS for example is bloaty, inadequate </div><br />
<br />
How? Why? It has it's warts, no doubt about that, but honestly I find it to be a wonderfully useful language. It is also extremely powerful and expressive - it is just tied up in an unfortunate straight-jacket of C-like syntax. Sure it can be ugly, but it works - and it works <b>well</b>. <br />
<br />
Anyway, that is becoming less and less of an issue because it is (for better or worse) becoming quite common as intermediary language for other languages to target (GWT, CoffeScript, etc.)<br />
<br />
<div class="cquote">and people try to make it do things it was never designed to do </div><br />
<br />
That is more of a people problem than a language problem... It happens with all languages, just more so with popular ones.<br />
 <br />
<div class="cquote">HTML is a MARKUP LANGUAGE, it is meant to do layout, framing, formatting, etc of a DOCUMENT. <br />
<br />
So why would it be a good idea to build an entire mobile operating system around this? </div><br />
<br />
The same reason many modern GUI layout tools use markup-like systems (XAML, Glade, XUL, etc.) - you need to do layout, framing, formatting, etc in any GUI...<br />
<br />
Besides, your twisting the premise a bit. Firefox OS is not &quot;built around&quot; HTML, it is built around gecko... <br />
<br />
Gecko is a powerful, extremely feature rich layout engine - light years beyond most purpose built layout systems used in most OS stacks if feature set is your measuring stick. Same goes for webkit and other browser engines. Sure, there may not perform as well in certain scenarios, and they all sprawl quite a bit, but what they lack in speed and refinement they make up for in sheer flexibility.<br />
<br />
It is a crime to waste the amount of optimization and research that went into these engines - why wouldn't you want to use them for GUI layout?<br />
<br />
Just saying... What is so different between something like this and something like Glade or XAML?</description>
			<pubDate>Fri, 14 Sep 2012 00:54:00 GMT</pubDate>
			<author>donotreply@osnews.com (galvanash)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?534990</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534990</guid>
			<description><div class="cquote"><br />
 I find the situation to be better than it ever has been to be honest. It is certainly better than it was 10 years ago.<br />
  </div><br />
 <br />
 Relative to other languages, it is still in the stone age. Better than 10years ago isn't really an excuse. Web tooling is pathetic. <br />
 <br />
 <div class="cquote"><br />
 How? Why? It has it's warts, no doubt about that, but honestly I find it to be a wonderfully useful language. It is also extremely powerful and expressive - it is just tied up in an unfortunate straight-jacket of C-like syntax. Sure it can be ugly, but it works - and it works <b>well</b>.  </div><br />
 <br />
 Besides the warts, it is inherently difficult to make fast. Making something which is almost axiomatically slow the bed rock of web technology is foolish. <br />
 <br />
 Its barely palatable on the web, do not push it into the app space where there are much higher expectations. People have come to expect the web to be a sub optimal experience. <br />
 <br />
 <div class="cquote"><br />
 Anyway, that is becoming less and less of an issue because it is (for better or worse) becoming quite common as intermediary language for other languages to target (GWT, CoffeScript, etc.)<br />
  </div><br />
 <br />
 Use a real intermediary language. Don't shoe horn JavaScript into that position. <br />
 <br />
 You know things are bad when a selling point of JS is &quot;Its good because its so ugly others hide it as much as possible&quot;<br />
 <br />
 <div class="cquote"><br />
 That is more of a people problem than a language problem... It happens with all languages, just more so with popular ones. </div><br />
 <br />
 Correct. Mozilla has a people problem. Probably a common sense deficiency too. <br />
  <br />
 <div class="cquote"><br />
 The same reason many modern GUI layout tools use markup-like systems (XAML, Glade, XUL, etc.) - you need to do layout, framing, formatting, etc in any GUI... </div><br />
 <br />
 XAML is for marking up applications. It has a 1:1 mapping to the .NET object model. Glade is closer to XAML than it is to HTML. <br />
 <br />
 Just because they're all markup doesn't mean they're all the same. HTML is almost comically bad at marking up applications. <br />
 <br />
 The HTML layout model is a mish mash of 100 bad ideas. <br />
 <br />
 This is exactly what happens when you design by committee. I'm sure things will get better in another 10 years. Not.Edited 2012-09-14 01:32 UTC</description>
			<pubDate>Fri, 14 Sep 2012 01:31:00 GMT</pubDate>
			<author>donotreply@osnews.com (Nelson)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>multi-core</title>
			<link>http://www.osnews.com/thread?534991</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534991</guid>
			<description><i>River Trail is an Intel Labs project that enables data-parallelism in web applications by leveraging multiple CPU cores and vector instructions in the boundaries of the JavaScript programming paradigm.</i><br />
<a href="http://software.intel.com/en-us/articles/opencl-river-trail/" rel="nofollow">http://software.intel.com/en-us/articles/opencl-river-trail/</a></description>
			<pubDate>Fri, 14 Sep 2012 01:35:00 GMT</pubDate>
			<author>donotreply@osnews.com (swift11)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?534993</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?534993</guid>
			<description><div class="cquote">Relative to other languages, it is still in the stone age. Better than 10years ago isn't really an excuse. Web tooling is pathetic. </div><br />
<br />
I was talking about web development in general - not comparing to other languages... Besides - it makes no sense at all to mix metaphors like that, languages themselves have next to nothing to do with <b>development</b> as a whole - it is just a small cog in the machine.<br />
<br />
And web development tooling is great imo - some people just don't like having 500+ options to choose from I guess... There doesn't have to be a &quot;one true way&quot; answer to every problem.<br />
 <br />
<div class="cquote">Besides the warts, it is inherently difficult to make fast. Making something which is almost axiomatically slow the bed rock of web technology is foolish. </div><br />
<br />
That is categorically false - you have no idea what you are talking about. Modern JS engines are extremely performant - in fact much more impressively so when you consider they have to work directly from human readable source code. Sure, compared to C, Java, and C# they have weak spots - but those are compiled languages (or at the least they do byte code compilation) - and even then it is usually only a factor or 3 slower...<br />
<br />
Compared to other straight-up runtime interpreted languages? Extremely competitive, often greatly superior. I do not know where you get the idea that it is slow... <br />
<br />
Regardless, it is a stupid argument anyway. Languages are not fast or slow - interpreters and compilers and binary executables are - and they can be quite easily improved without changing a language. Even then, it makes little difference in the grand scheme of things. There are things JS is extremely good at (async programming being one of them) and some things it isn't (low level byte manipulation, etc.) The same arguments apply to any language. It isn't all about how fast it goes at the end of the day.<br />
 <br />
<div class="cquote">Its barely palatable on the web, do not push it into the app space where there are much higher expectations. People have come to expect the web to be a sub optimal experience. </div><br />
<br />
Yes, the web is a sub-optimal experience. For lots of reasons - design by committee feature sets, incompatibilities, etc. etc. No argument. Its also constantly changing and a challenge to keep up with. But people overlook what it buys you...<br />
<br />
Sure, it is much easier to write a C# app targeting .NET, or a java app targeting a JRE... The fact is neither of those will ever be universal.<br />
<br />
There are 3 major mobile platforms - Windows Phone, Android, and iOS. They have 3 completely incompatible development frameworks, but they can all run HTML5 apps quite well... So can desktops (any OS), so can just about anything with a chip in it. HTML5 makes up for its shortcomings by being deployable almost anywhere - and not in the &quot;run anywhere&quot; fairytale land of Java where it is a figurative statement - I mean <b>really</b> deployable <b>anywhere</b>.<br />
<br />
Makes perfect sense to me to cut out the middleman and build a mobile OS designed with HTML5 apps as a 1st class citizen... You can turn up you nose at it all you want - I'll still have a job in 10 years <img src="/images/emo/smile.gif" alt=";)" /> <br />
<br />
<div class="cquote">Use a real intermediary language. Don't shoe horn JavaScript into that position. </div><br />
<br />
If what you want is a human readable IM language, It is as good as any other. If you want byte code then we are talking about two different things... Byte code will never fly on the internet (been tried - failed terribly -at least twice)...<br />
<br />
If you write .NET apps you are worshipping at Microsofts altar. If you write Android apps you are worshipping at Google's altar. If you write iOS apps you are worshipping at Apple's altar.<br />
<br />
I don't have to worship at anyone's altar - I don't care who wins. I make a comfortable living and have for 15+ years. I like iOS development too, as well as C# and a few other platforms - but none of them hold a candle to web development when it comes to reach. <br />
 <br />
<div class="cquote">You know things are bad when a selling point of JS is &quot;Its good because its so ugly others hide it as much as possible&quot; </div><br />
<br />
I didn't say that was a selling point - just pointing out reality. Syntax isn't everything - CoffeScript and JavaScript are in fact the same language semantically, the only difference is syntax - and CoffeeScript is quite lovely to look at. Syntax can be fixed quite easily, and it eventually will be. <br />
<br />
The point is that <b>semantically</b> javascript is a great language for its current use case - which is wiring up logic to GUIs. <br />
 <br />
<div class="cquote">XAML is for marking up applications. It has a 1:1 mapping to the .NET object model. Glade is closer to XAML than it is to HTML. <br />
 <br />
Just because they're all markup doesn't mean they're all the same. HTML is almost comically bad at marking up applications. </div><br />
<br />
Your arguing about the semantics of the markup language... What does any markup language need? A fast parser, a good interpreter, a layout and rendering engine.... <br />
<br />
Gecko???<br />
<br />
You don't like the semantics of HTML - that's fine. It is not ideal and probably never will be. But it is flexible as hell and gets better as time goes by. <br />
 <br />
<div class="cquote">The HTML layout model is a mish mash of 100 bad ideas. </div><br />
<br />
And yet it is still around after 20 years, and becomes more and more ubiquitous as time goes by. It changes when it needs to. Things like XAML will be a faded memory in 5 years or so...</description>
			<pubDate>Fri, 14 Sep 2012 02:48:00 GMT</pubDate>
			<author>donotreply@osnews.com (galvanash)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[4]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535005</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535005</guid>
			<description><div class="cquote"><br />
I was talking about web development in general - not comparing to other languages... Besides - it makes no sense at all to mix metaphors like that, languages themselves have next to nothing to do with <b>development</b> as a whole - it is just a small cog in the machine.<br />
<br />
And web development tooling is great imo - some people just don't like having 500+ options to choose from I guess... There doesn't have to be a &quot;one true way&quot; answer to every problem.<br />
  </div><br />
<br />
Comparatively is the only way to go about such things, since the argument is that JS+HTML is god awful choice for app development. <br />
<br />
The tooling state is laughable, compared to C#, there is no comparison when it comes to things like debugging. Hats off to the JS support in Blend and Visual Studio, and those developers are wizards, but its still comparatively terrible. <br />
<br />
<br />
<div class="cquote"><br />
That is categorically false - you have no idea what you are talking about. Modern JS engines are extremely performant - in fact much more impressively so when you consider they have to work directly from human readable source code. Sure, compared to C, Java, and C# they have weak spots - but those are compiled languages (or at the least they do byte code compilation) - and even then it is usually only a factor or 3 slower...<br />
<br />
Compared to other straight-up runtime interpreted languages? Extremely competitive, often greatly superior. I do not know where you get the idea that it is slow...  </div><br />
<br />
You say &quot;fast despite inherent limitations&quot; (non static typing leading to stupid design and compile time assumptions, no byte code compilation, etc) and I say &quot;slow because of inherent limitations&quot;. Its two sides of the same coin. <br />
<br />
The fact that JS is as fast as it is, is a testament to the immense skill of the engineers behind the JS engines. It doesn't mean the language is conducive to speed at all, in fact, a reasonable language in the browser is almost certain to be much faster. <br />
<br />
<div class="cquote"><br />
Regardless, it is a stupid argument anyway. Languages are not fast or slow - interpreters and compilers and binary executables are - and they can be quite easily improved without changing a language. Even then, it makes little difference in the grand scheme of things. There are things JS is extremely good at (async programming being one of them) and some things it isn't (low level byte manipulation, etc.) The same arguments apply to any language. It isn't all about how fast it goes at the end of the day.<br />
 </div><br />
<br />
Actually, no. JS has some uniquely JS features which make it slower than it should be. Namely, is type system makes it difficult to do type based optimizations at JIT level. Sure you can do cool type inferencing, but you quickly run across an even more limited time budget than traditional JIT compilers. <br />
<br />
<br />
<div class="cquote"><br />
Yes, the web is a sub-optimal experience. For lots of reasons - design by committee feature sets, incompatibilities, etc. etc. No argument. Its also constantly changing and a challenge to keep up with. But people overlook what it buys you...<br />
<br />
Sure, it is much easier to write a C# app targeting .NET, or a java app targeting a JRE... The fact is neither of those will ever be universal.<br />
<br />
There are 3 major mobile platforms - Windows Phone, Android, and iOS. They have 3 completely incompatible development frameworks, but they can all run HTML5 apps quite well... So can desktops (any OS), so can just about anything with a chip in it. HTML5 makes up for its shortcomings by being deployable almost anywhere - and not in the &quot;run anywhere&quot; fairytale land of Java where it is a figurative statement - I mean <b>really</b> deployable <b>anywhere</b>. </div><br />
<br />
Here we come to a fundamental disagreement. I categorically reject the notion that write once run anywhere is desirable. I didn't buy it when Java said it, andi don't buy it now. It leads to a poor and confusing user experience. <br />
<br />
I believe in code sharing between mobile apps by using common back ends with native front ends. On the web, I'm cool with JS and HTML. Let the web be the web. But for Christ's sake, let apps be apps. <br />
<br />
<div class="cquote"><br />
Makes perfect sense to me to cut out the middleman and build a mobile OS designed with HTML5 apps as a 1st class citizen... You can turn up you nose at it all you want - I'll still have a job in 10 years <img src="/images/emo/smile.gif" alt=";)" />  </div><br />
<br />
I wouldve offed myself years ago if I had to deal with web technology. <br />
<br />
<div class="cquote"><br />
If what you want is a human readable IM language, It is as good as any other. If you want byte code then we are talking about two different things... Byte code will never fly on the internet (been tried - failed terribly -at least twice)...<br />
 </div><br />
<br />
I'm interested to the instances where its failed, but ultimately, this is a discussion about HTML and JS for use as a fundamental app platform. <br />
 <br />
<div class="cquote"><br />
<br />
I didn't say that was a selling point - just pointing out reality. Syntax isn't everything - CoffeScript and JavaScript are in fact the same language semantically, the only difference is syntax - and CoffeeScript is quite lovely to look at. Syntax can be fixed quite easily, and it eventually will be.  </div><br />
<br />
Syntax and peformance are separate things. Only in JS, things are slow because of the syntax. You can fix one part of it using CoffeeScript, arguably, but you still can never fix the second, since you compile down into JS along with its limits. <br />
<br />
<div class="cquote"><br />
The point is that <b>semantically</b> javascript is a great language for its current use case - which is wiring up logic to GUIs. [\q]<br />
<br />
Mine is that its not the best, or anything close. <br />
 <br />
[q]<br />
Your arguing about the semantics of the markup language... What does any markup language need? A fast parser, a good interpreter, a layout and rendering engine.... <br />
 </div><br />
<br />
They are used differently. HTML defines structure. XAML is a declarative way to instantiate .NET objects. It can easily be extended to do whatever you want, it can map to arbitrary .NET objects. <br />
<br />
You can't really do that in HTML, which is a shame, because it'd be a tremendous improvement alone. You're stuck with awkward solutions which is funny because it makes your code less declarative. <br />
<br />
Besides, XAML has the concept of controls, events, properties, data binding, static methods, etc. <br />
<br />
Just because XAML is markup, and HTML is markup.. doesn't make HTML good because XAML is good. <br />
<br />
So your original &quot;but you're okay with XAML what's so wrong with HTML&quot; statement is wrong. <br />
<br />
<div class="cquote"><br />
And yet it is still around after 20 years, and becomes more and more ubiquitous as time goes by. It changes when it needs to. Things like XAML will be a faded memory in 5 years or so... </div><br />
<br />
You're aware XAML is a key part of the Windows 8 app platform, right? You're aware that the XAML team is part of the Windows Division, right?<br />
<br />
XAML going anywhere is a Pipedream. It'll be on 800 million devices in a years time.</description>
			<pubDate>Fri, 14 Sep 2012 04:05:00 GMT</pubDate>
			<author>donotreply@osnews.com (Nelson)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[5]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535008</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535008</guid>
			<description><div class="cquote">Comparatively is the only way to go about such things, since the argument is that JS+HTML is god awful choice for app development. </div><br />
<br />
I said <b>web</b> development... as in JS as it applies to <b>web</b> development is better than it was 10 years ago. There is no comparison there, because there is nothing to compare it to.<br />
<br />
Whatever though - I get your point.<br />
<br />
<div class="cquote">The tooling state is laughable, compared to C#, there is no comparison when it comes to things like debugging. Hats off to the JS support in Blend and Visual Studio, and those developers are wizards, but its still comparatively terrible. </div><br />
<br />
Whats missing? I have a debug console. I can step through code. I can setup watches on variables. I can analyze objects and browse their properties. I can even fiddle with values at runtime and change code as I'm stepping through it... <br />
<br />
Again, what is missing exactly? I think you are using the wrong tools...<br />
<br />
<div class="cquote">You say &quot;fast despite inherent limitations&quot; (non static typing leading to stupid design and compile time assumptions, no byte code compilation, etc) and I say &quot;slow because of inherent limitations&quot;. Its two sides of the same coin. </div><br />
<br />
Now you getting into religious arguments <img src="/images/emo/smile.gif" alt=";)" />  Personally, I would argue that static typing is just a compiler optimization - it isn't a language feature. Its a stupid design decision because its primary purpose is to make compilers faster - it isn't about developer productivity at all. Its about forcing developers to  manually disclose things that a computer can easily figure out at runtime.<br />
<br />
To each their own on that one - I use 7 or 8 languages routinely, about half statically typed and the other half dynamic. I prefer dynamic any day of the week, I don't like having to put training wheels on my code.<br />
<br />
Ill give MS credit for allowing the CLR to do it either way though - if they didnt' allow dynamic typing the number of languages running on it would have stopped at 1...<br />
<br />
<div class="cquote">The fact that JS is as fast as it is, is a testament to the immense skill of the engineers behind the JS engines. </div><br />
<br />
The exact same thing can be said about C# or Java. Time, money, and good engineering can turn a weakness into a strength... <br />
<br />
<div class="cquote">Actually, no. JS has some uniquely JS features which make it slower than it should be. Namely, is type system makes it difficult to do type based optimizations at JIT level. Sure you can do cool type inferencing, but you quickly run across an even more limited time budget than traditional JIT compilers. </div><br />
<br />
Again - &quot;features&quot; that exist to make compilers happy and developers sad don't interest me much... <br />
<br />
<div class="cquote">Here we come to a fundamental disagreement. I categorically reject the notion that write once run anywhere is desirable. </div><br />
<br />
Yep. Pretty fundamental.<br />
<br />
<div class="cquote">I didn't buy it when Java said it, andi don't buy it now. It leads to a poor and confusing user experience. </div><br />
<br />
I would argue that the user experience depends more on the developer than the tools used. Ill even concede it is much easier to create a consistent user experience when using a full stack application development framework - as long as you are only targeting that single stack. I often care more about how many screens I can reach - and it is far easier to spend the time and write a good UI in HTML5 that you can deploy everywhere. It depends of course - it isn't good for everything - but that doesn't make it bad.<br />
<br />
<div class="cquote">I believe in code sharing between mobile apps by using common back ends with native front ends. On the web, I'm cool with JS and HTML. Let the web be the web. But for Christ's sake, let apps be apps. </div><br />
<br />
I do too for the most part. I'm pragmatic - sometimes it is easier that way to get a good result. But I find I choose that route less and less often because the JS/HTML approach is improving so much. I'm not religious about it - I just think saying it is crap and nonviable is extremely short-sighted...<br />
<br />
<div class="cquote">I wouldve offed myself years ago if I had to deal with web technology. </div><br />
<br />
Come on now... Its fun! Having to relearn everything every 3 years keeps you on your toes <img src="/images/emo/smile.gif" alt=";)" />  <br />
<br />
<div class="cquote">I'm interested to the instances where its failed, but ultimately, this is a discussion about HTML and JS for use as a fundamental app platform. </div><br />
<br />
Um.. Java. Flash. Silverlight for the most part too. Im not saying they are dead for app development, but they are all dead for general purpose web development...  <br />
 <br />
<div class="cquote">Syntax and peformance are separate things. Only in JS, things are slow because of the syntax. </div><br />
<br />
You talking about dynamic typing again I assume... Ive said enough on that I think.<br />
<br />
<div class="cquote">They are used differently. HTML defines structure. XAML is a declarative way to instantiate .NET objects. It can easily be extended to do whatever you want, it can map to arbitrary .NET objects.<br />
<br />
You can't really do that in HTML, which is a shame, because it'd be a tremendous improvement alone. You're stuck with awkward solutions which is funny because it makes your code less declarative.<br />
<br />
Besides, XAML has the concept of controls, events, properties, data binding, static methods, etc. </div><br />
<br />
Look at meteor. Or angularjs. Or knockout. Or about 20 other up and coming declarative frameworks. Same thing... That is my point - HTML eventually adopts anything worth doing. It might not be quite as elegant and refined as XAML, but in the long run it won't matter because it doesn't need yet-another-runtime in order to work.<br />
 <br />
<div class="cquote">Just because XAML is markup, and HTML is markup.. doesn't make HTML good because XAML is good. </div><br />
<br />
Markup is markup. XAML is not good because of the markup language - it is good for the reasons you stated above - which are features of the runtime. Most of the same features can (and have been) applied to HTML/JS...  <br />
<br />
<div class="cquote">You're aware XAML is a key part of the Windows 8 app platform, right? You're aware that the XAML team is part of the Windows Division, right?<br />
<br />
XAML going anywhere is a Pipedream. It'll be on 800 million devices in a years time. </div><br />
<br />
800 million devices with a 2-3 year lifespan... Well see how it goes. I'm actually a fan of Windows 8 - Im not knocking it at all. My point was what they call XAML now will likely be replaced with the-next-new-paradigm in the next 10 years or so. There is always something better around the corner - things like XAML fade away - remember OWL, MFC, etc. Web technologies evolve and adapt...</description>
			<pubDate>Fri, 14 Sep 2012 05:19:00 GMT</pubDate>
			<author>donotreply@osnews.com (galvanash)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535010</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535010</guid>
			<description>Lennie,<br />
<br />
I have to admit that's a cool demo.  It only partially worked in FF before an update. Hopefully mozilla doesn't make a habit of imposing version incompatibilities (to be fair, at least this was documented).<br />
<br />
I think they may have gotten the high res and low res reversed because High res worked ok (though it did pause briefly at intervals for me) and &quot;Low res&quot; was unusable.<br />
<br />
The graphics look great, obviously opengl should render the same under the control of any language. Also with the resources being preloaded even a modest performing language should be able to run fluidly - at least until the number of in-game objects imposes a game engine bottleneck.<br />
<br />
All in all it's certainly impressive. Never the less, as a developer I would prefer to build on top a well tuned native game engine rather than one implemented in javascript. For my own curiosity, I compared GCC and Firefox on these two. I'll share those results here:<br />
<br />
int main(int argc, char *argv[]) {<br />
	int x=0;<br />
	for(int a=0; a</description>
			<pubDate>Fri, 14 Sep 2012 05:42:00 GMT</pubDate>
			<author>donotreply@osnews.com (Alfman)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: STOP</title>
			<link>http://www.osnews.com/thread?535012</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535012</guid>
			<description>I think the initial idea of this effort is not to force anything on developers, but to use it as an experiment to broaden the usage and design perspective of Web APIs.<br />
<br />
<a href="https://wiki.mozilla.org/Booting_to_the_Web" rel="nofollow">https://wiki.mozilla.org/Booting_to_the_Web</a><br />
<br />
I.e. the effort will benefit browsers running on conventional OSes, and no one forces you to use these kind of web flavored only systems.</description>
			<pubDate>Fri, 14 Sep 2012 06:06:00 GMT</pubDate>
			<author>donotreply@osnews.com (shmerl)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[6]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535015</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535015</guid>
			<description>I think you two are getting overly hyped up over what is, at the end of the day, a matter of preference about which technologies you like better.<br />
 <br />
galvanash,<br />
Yes, javascript promises to lower the barrier to entry for app development. But you've said alot of things I disagree with. Like static typing...it does have a use (though whether you benefit from it is a different matter), it explicitly limits the number of states a variable may hold and helps catch errors at compile time.<br />
 <br />
In some languages, string concatenation and arithmetic addition are separate operators to help resolve the ambiguity, but javascript depends on inferred typing.<br />
 var a = x.foo() + 'x'; // what is a?<br />
 <br />
For this reason, I'd argue javascript is a poor choice for mission critical applications like those at NASA. There are more problems, like the inability to define proper &quot;classes&quot;, which make javascript both slower and less error proof. Again, maybe you prefer not to use classes and find the prototype substitute good enough for you. But whether it's an enhancement or restriction of the language depends on your point of view - it's a matter of opinion.<br />
 <br />
 <br />
Also, we've build other languages on top of javascript because browsers don't give us much choice, not because it particularly makes sense to do so otherwise.<br />
 <br />
Nelson,<br />
 <br />
You are right that no single language is good for everything. But you must accept that portability is very important and useful to many developers and users, they should be able to write once, run anywhere without needing to rewrite it again... You can dismiss portability for yourself, but it really doesn't make sense to dismiss the utility for others.Edited 2012-09-14 06:41 UTC</description>
			<pubDate>Fri, 14 Sep 2012 06:39:00 GMT</pubDate>
			<author>donotreply@osnews.com (Alfman)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535026</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535026</guid>
			<description>+1 As I cannot vote<br />
<br />
Even though I get paid to develop mostly web applications, for me HTML is for documents.<br />
<br />
It is insane what people try to bend the browsers to do, spending sometimes days fighting with HTML+CSS+JavaScript, for what would be a few function calls in a native application.<br />
<br />
And in the end they complain that it still does not look integrated. Of course it does not, HTML is for documents!<br />
<br />
But at the end of the day it is all about the money, so the customer gets what s/he asks for.</description>
			<pubDate>Fri, 14 Sep 2012 07:46:00 GMT</pubDate>
			<author>donotreply@osnews.com (moondevil)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535027</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535027</guid>
			<description><div class="cquote">So far what's really lacking are devices compatible with conventional (non Android) Linux stack. Samsung's devices for Tizen didn't come out yet to address this. </div><br />
Tizen is much broader than Samsung: <a href="http://www.tizenassociation.org/en/" rel="nofollow">http://www.tizenassociation.org/en/</a></description>
			<pubDate>Fri, 14 Sep 2012 07:50:00 GMT</pubDate>
			<author>donotreply@osnews.com (swift11)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535028</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535028</guid>
			<description><div class="cquote">But at the end of the day it is all about the money, so the customer gets what s/he asks for. </div><br />
HTML5 is also about freedom:<br />
<a href="http://mashable.com/2012/09/05/grooveshark-html5-player/" rel="nofollow">http://mashable.com/2012/09/05/grooveshark-html5-player/</a></description>
			<pubDate>Fri, 14 Sep 2012 07:54:00 GMT</pubDate>
			<author>donotreply@osnews.com (swift11)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Comment by clasqm</title>
			<link>http://www.osnews.com/thread?535032</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535032</guid>
			<description>May I ask a very silly, naive question? Is there any real, organized marketing push behind this, or is it just a bunch of geeks hobbying around on the basis of &quot;If we build it, they will come&quot;?<br />
<br />
If you don't have a handset maker committed to building a phone around this OS and bringing it to market at least a year before you expect to hit 1.0, then just admit that you are hobbyists. Nothing wrong with that, everyone needs a hobby.<br />
<br />
Look at Linux's stagnant market share in desktops/laptops (as opposed to its leading position in other sectors). If regular, non-geek people are not prepared to strip Windows off their PCs and put Linux on, they are certainly not going to strip off iOS/Android/Win8 and install FirefoxOS. Not.Gonna.Happen.<br />
<br />
So don't tell us how you're doing this technically. Technical problems are there to be solved. Tell us how you are going to get millions of Chinese-made FFOS phones into peoples' hands. <br />
<br />
Why would manufacturers choose this over Android? Because it's free? Android is also free. <br />
<br />
Because it gives better performance on cheaper hardware? If manufacturers cared about better performance, someone would have purchased WebOS by now, making HP an offer they couldn't refuse. <br />
<br />
Better performance on cheaper hardware is NOT in the manufacturers' interest. It makes the customers hang on to their existing phone a little bit longer instead of performing their civic duty of constant upgrading.<br />
<br />
I'm afraid this won't be the first technically elegant solution that died and withered because its creators remained aloof of the commercial realities of the world they lived in [sigh ... BeOS]. Nor the last.</description>
			<pubDate>Fri, 14 Sep 2012 08:28:00 GMT</pubDate>
			<author>donotreply@osnews.com (clasqm)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Comment by clasqm</title>
			<link>http://www.osnews.com/thread?535034</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535034</guid>
			<description>Most companies don't want a Google monopoly on mobile:<br />
 Firefox OS (Gecko): <a href="https://blog.mozilla.org/blog/2012/07/02/firefox-mobile-os/" rel="nofollow">https://blog.mozilla.org/blog/2012/07/02/firefox-mobile-os/</a> <br />
 Tizen (Webkit): <a href="http://www.tizenassociation.org/en/" rel="nofollow">http://www.tizenassociation.org/en/</a><br />
<br />
HTML5 without a browser is probably the best option to avoid a new monopoly.Edited 2012-09-14 08:58 UTC</description>
			<pubDate>Fri, 14 Sep 2012 08:40:00 GMT</pubDate>
			<author>donotreply@osnews.com (swift11)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535035</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535035</guid>
			<description>I agree that most of the problem is the document/JS boundary.<br />
<br />
Still, I've played a bit with WebGL and it can be quite fast when using static scene data and therefore the JS code only upload the data to the graphic card and that's it. If you start doing things in JS between each frame (like trying to add a physic engine or animate lot of stuff), then performances quickly drop.<br />
<br />
That being said, I would be happy to be proven wrong. It's just that claiming that JS games on mobile* run just fine without any proof triggered some alarms.<br />
<br />
* I've written a small Android game and I had to write most of it in C++ to get decent performances on low-end devices.</description>
			<pubDate>Fri, 14 Sep 2012 08:56:00 GMT</pubDate>
			<author>donotreply@osnews.com (bouhko)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535036</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535036</guid>
			<description>This only works until the handset manufacturers start blacklisting web sites.</description>
			<pubDate>Fri, 14 Sep 2012 09:01:00 GMT</pubDate>
			<author>donotreply@osnews.com (moondevil)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Comment by clasqm</title>
			<link>http://www.osnews.com/thread?535037</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535037</guid>
			<description><div class="cquote">May I ask a very silly, naive question? Is there any real, organized marketing push behind this, or is it just a bunch of geeks hobbying around. </div><br />
<br />
âWe donât like the fact that one part of the value chain of our business is tightly controlled,â Carlos Domingo, director of product development at Telefonicaâs digital unit, said in an interview. âIn the case of the emerging countries itâs worse, because it becomes a monopoly by Google.â<br />
<br />
 <a href="http://www.bloomberg.com/news/2012-07-04/telefonica-bids-to-own-the-latin-smartphone-halting-google-tech.html" rel="nofollow">http://www.bloomberg.com/news/2012-07-04/telefonica-bids-to-own-the...</a></description>
			<pubDate>Fri, 14 Sep 2012 09:13:00 GMT</pubDate>
			<author>donotreply@osnews.com (swift11)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[4]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535038</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535038</guid>
			<description>Game-engines are ported from C/C++ to Javascript with emscripten:<br />
<br />
<a href="https://github.com/kripken/emscripten" rel="nofollow">https://github.com/kripken/emscripten</a><br />
<br />
I believe this is the talk/demo you might want to watch:<br />
<br />
<a href="http://blip.tv/jsconfeu/alon-zakai-emscripten-5666035" rel="nofollow">http://blip.tv/jsconfeu/alon-zakai-emscripten-5666035</a></description>
			<pubDate>Fri, 14 Sep 2012 09:23:00 GMT</pubDate>
			<author>donotreply@osnews.com (Lennie)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[4]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535040</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535040</guid>
			<description>This would roughly cut your runtime roughly in half:<br />
   <br />
   <div class="cquote">var t0=new Date().getTime(); <br />
   var count=10000; <br />
   var x=0; <br />
   var coords=new Array(count); <br />
   var coord_i = null;<br />
   var coord_j = null;<br />
   		<br />
   for(var i=0; i &lt; count; i++) { <br />
   coords[ i ] = [ i,i,i ];<br />
   } <br />
   <br />
   for(var j=0; j &lt; count; j++) {<br />
   coord_j = coords[j]; <br />
   for(var i=0; i &lt; count; i++) {<br />
   coord_i = coords[ i ]; <br />
   coord_i[0]=(coord_i[0]+coord_j[1]) * .5; <br />
   coord_i[1]=(coord_i[1]+coord_j[2]) * .5; <br />
   coord_i[2]=(coord_i[2]+coord_j[0]) * .5; <br />
   } <br />
   } <br />
   <br />
   for(var i=0; i &lt; count; i++) { <br />
   x+=coords[ i ][0]+coords[ i ][1]+coords[ i ][2]; <br />
   } <br />
   	<br />
   var t1=new Date().getTime(); <br />
   		document.getElementById(&quot;out&quot;).innerHTML=x + ' ' + (t1-t0) + ' '; </div> <br />
   <br />
   Not that is matters much... I'm not suggesting this is as an optimization, I just wanted to point out that only about half of the performance difference is due to object access overhead in your example - the rest is just pure overhead due to it being interpreted. Converting from objects to arrays (with a few minor optimizations here and there) only cuts the runtime in half.<br />
   <br />
   When I profile this in Chrome 90% of the execution time ends up being engine overhead (parsing, compilation, etc). The actual time spent running the meat of the code itself is only about 10-15ms.<br />
   <br />
   Just saying while scripting overhead is not exactly a fixed cost - it tends to be inversely proportional to the amount of code you write. In other words the bigger and more complex the application is, the less it matters... <br />
   <br />
   In a contrived example like this - all you are really demonstrating is that a scripting language has high overhead costs relative to a compiled language when your code is essentially doing nothing useful in a tight loop. <br />
   <br />
   I wouldn't make the arguement that Javascript is an ideal language for doing computationally intensive stuff - but then again that isn't what it is for. Still, it isn't half bad compared with other interpreted languages...Edited 2012-09-14 10:02 UTC</description>
			<pubDate>Fri, 14 Sep 2012 09:56:00 GMT</pubDate>
			<author>donotreply@osnews.com (galvanash)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[4]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535042</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535042</guid>
			<description>What usually happends with game engines is they port an existing engine (like the demo) to Javascript with the use of <a href="https://github.com/kripken/emscripten" rel="nofollow">https://github.com/kripken/emscripten</a><br />
<br />
I think this is the talk/demo which explains it best:<br />
<br />
<a href="http://blip.tv/jsconfeu/alon-zakai-emscripten-5666035" rel="nofollow">http://blip.tv/jsconfeu/alon-zakai-emscripten-5666035</a></description>
			<pubDate>Fri, 14 Sep 2012 10:10:00 GMT</pubDate>
			<author>donotreply@osnews.com (Lennie)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[7]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535044</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535044</guid>
			<description><div class="cquote">Like static typing...it does have a use (though whether you benefit from it is a different matter), it explicitly limits the number of states a variable may hold and helps catch errors at compile time. </div><br />
<br />
Exactly. I don't like languages that limit the number of states a variable may hold. And the types of errors that are actually caught by type checking at compile time are generally trivial typos and such.<br />
<br />
That said, if you do proper unit testing (something you should be doing in either type of language) all the pros of static typing disappear - except for it being faster to compile. Hence why I said that is its only real strength.<br />
 <br />
<div class="cquote">var a = x.foo() + 'x'; // what is a? </div><br />
<br />
a is a variable <img src="/images/emo/smile.gif" alt=";)" /> <br />
 <br />
<div class="cquote">For this reason, I'd argue javascript is a poor choice for mission critical applications like those at NASA. </div><br />
<br />
Most of the space stuff tends to use plain old C, which might be statically typed but it isn't strongly typed - which is arguably just as bad from an &quot;avoiding errors&quot; point of view... <br />
<br />
Then again, I have read they use quite a bit of Python at JPL - Python isn't all that different from javascript fundamentally - both are dynamically typed. It sure is prettier though...<br />
<br />
<div class="cquote">There are more problems, like the inability to define proper &quot;classes&quot;, which make javascript both slower and less error proof. </div><br />
<br />
How does using prototypes instead of class make things slower and less error proof? Its just a different way to skin the cat - they both get the job done equally well if you understand the paradigm.<br />
<br />
<div class="cquote">Again, maybe you prefer not to use classes and find the prototype substitute good enough for you. </div><br />
<br />
I don't consider prototyping a &quot;substitute&quot; for classes - it is the sane way to do it <img src="/images/emo/smile.gif" alt=";)" /> <br />
<br />
<div class="cquote">But whether it's an enhancement or restriction of the language depends on your point of view - it's a matter of opinion. </div><br />
<br />
Agreed.<br />
 <br />
<div class="cquote">Also, we've build other languages on top of javascript because browsers don't give us much choice, not because it particularly makes sense to do so otherwise. </div><br />
<br />
Whether its javascript or some other language - it makes no sense to deliver an opaque intermediary language representation to a browser that is designed to render human readable markup. The human readable part is important for a multitude of reasons, and that includes the logic too...</description>
			<pubDate>Fri, 14 Sep 2012 10:37:00 GMT</pubDate>
			<author>donotreply@osnews.com (galvanash)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535051</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535051</guid>
			<description>I had to go back and re-read that claim - and the claim is that FirefixOS runs webapps faster than the Android *browser*, not than native apps. And that claim is perfectly believable to me.</description>
			<pubDate>Fri, 14 Sep 2012 12:09:00 GMT</pubDate>
			<author>donotreply@osnews.com (ricegf)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Most forward-looking</title>
			<link>http://www.osnews.com/thread?535052</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535052</guid>
			<description>&quot;Works Best in IE6&quot; websites didn't work well in Firefox 1.0, either. A few years later, Microsoft was desperately trying to kill IE6 if favor of IE8 - that worked well with Firefox-compatible (standard) sites.<br />
<br />
Not saying that David will beat Goliath again, but he's 1-0.  I'm not betting against him.<br />
<br />
(I'm anxious to try a FirefoxOS device now. I love the scrappy underdog...)</description>
			<pubDate>Fri, 14 Sep 2012 12:17:00 GMT</pubDate>
			<author>donotreply@osnews.com (ricegf)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Comment by Luke McCarthy</title>
			<link>http://www.osnews.com/thread?535053</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535053</guid>
			<description>Suboptimal tech usually wins, unfortunately. Firefox was an anomaly, based on historical precedent we should all still be stuck in IE.<br />
<br />
I still prefer a native Qt environment like MeeGo, but I'll sacrifice that for true freedom in Firefox OS. If lightning strikes twice, I'm a potential customer.</description>
			<pubDate>Fri, 14 Sep 2012 12:28:00 GMT</pubDate>
			<author>donotreply@osnews.com (ricegf)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[5]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535066</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535066</guid>
			<description>galvanash,<br />
<br />
&quot;When I profile this in Chrome 90% of the execution time ends up being engine overhead (parsing, compilation, etc). The actual time spent running the meat of the code itself is only about 10-15ms.&quot;<br />
<br />
Just to be clear, this example did NOT measure script parsing overhead, which was mere milliseconds on my machine and an acceptable one-time cost. What was slow was the run time inside the loop - several seconds in each case. I'm baffled why you're claiming 90% of the execution time is due to &quot;parsing, compilation, etc&quot;? Obviously we can't be talking about the same thing.<br />
<br />
<br />
&quot;Converting from objects to arrays (with a few minor optimizations here and there) only cuts the runtime in half. &quot;<br />
<br />
There are several ways we could have eliminated the objects, but given that they were what I was measuring the overhead of this would have defeated the point.<br />
<br />
<br />
&quot;In a contrived example like this - all you are really demonstrating is that a scripting language has high overhead costs relative to a compiled language when your code is essentially doing nothing useful in a tight loop.&quot;<br />
<br />
Maybe I could of/should have implemented a vector multiplication benchmark to be less contrived, but I doubt it would have improved the performance of javascript objects, which is still a problem.<br />
<br />
<br />
&quot;I wouldn't make the arguement that Javascript is an ideal language for doing computationally intensive stuff - but then again that isn't what it is for.&quot;<br />
<br />
<br />
Fair enough, but if HTML apps continue to displace native ones for things like game engines, that's kind of where we'll end up.<br />
<br />
<br />
&quot;Still, it isn't half bad compared with other interpreted languages... &quot;<br />
<br />
Agree, I think it's a pretty good language &amp; the implementations of it aren't bad either.</description>
			<pubDate>Fri, 14 Sep 2012 15:20:00 GMT</pubDate>
			<author>donotreply@osnews.com (Alfman)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535067</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535067</guid>
			<description>May be, but it doesn't seem that anyone besides Samsung is going to release any devices. I'm not even sure that Samsung really will.Edited 2012-09-14 15:26 UTC</description>
			<pubDate>Fri, 14 Sep 2012 15:26:00 GMT</pubDate>
			<author>donotreply@osnews.com (shmerl)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Great but...</title>
			<link>http://www.osnews.com/thread?535073</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535073</guid>
			<description><div class="cquote">Did you know that browsers will soon support a whole lot more than just SMS. </div><br />
<br />
Yes, I know, and that is exactly my point. Mozilla is pioneering here, so even if the OS platform as a whole fails miserably, their work must be credited.</description>
			<pubDate>Fri, 14 Sep 2012 16:06:00 GMT</pubDate>
			<author>donotreply@osnews.com (dmrio)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[8]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535077</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535077</guid>
			<description>galvanash,<br />
<br />
&quot;Exactly. I don't like languages that limit the number of states a variable may hold.&quot;<br />
<br />
Other than an ADT, can you give me an example where storing multiple types in one variable is good practice?<br />
<br />
VB supported both typed and untyped code, plus it did not overload '+' as a concatenation operator, both of these traits help resolve ambiguities we have in javascript.<br />
<br />
&quot;That said, if you do proper unit testing (something you should be doing in either type of language) all the pros of static typing disappear - except for it being faster to compile.&quot;<br />
<br />
This is not it at all. Throw out compilation speed all together and you'll still find that some programmers prefer rigid constraints to inferences. If I know that I want a boolean, there's no reason the language should force me to use a variable than can store a float, an integer, a string, an object, an array, etc. For me, this is a shortcoming of JS REGARDLESS of performance. Even if variants are better in your opinion, they're not better for everyone.<br />
<br />
<br />
&quot;How does using prototypes instead of class make things slower and less error proof? Its just a different way to skin the cat&quot;<br />
<br />
The problem with JS objects is the same as the problem with it's variables: it doesn't permit the programmer to be explicit about his intentions at compile time.<br />
<br />
As for performance, javascript's objects are actually hash tables, very powerful but they're not anywhere as efficient (space or computation) as a static language memory structure. While it is true that JS objects are more flexible at run time, that benefit is completely lost on programmers who (in their own opinion) would benefit more from compile time structure/type checking.<br />
<br />
<br />
&quot;Whether its javascript or some other language - it makes no sense to deliver an opaque intermediary language representation to a browser that is designed to render human readable markup.&quot;<br />
<br />
I don't think being HTML or JS are intrinsically human readable unless that code was written by a human. Ever tried to use a JS optimizer to remove variable names/spacing/comments? It's impossible to read again without reverse engineering it. So to the extent that a human wrote the code, then having source code is nice (even if irrelevant to most users). But I doubt many devs will have reason to work with the intermediate representation even if it is in Javascript.<br />
<br />
So for running many languages in the browser, we'd probably be better off with a well defined bytecode that can easily be decompiled back into source form (tools exist to do this for java).</description>
			<pubDate>Fri, 14 Sep 2012 16:24:00 GMT</pubDate>
			<author>donotreply@osnews.com (Alfman)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[4]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535083</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535083</guid>
			<description><div class="cquote">May be, but it doesn't seem that anyone besides Samsung is going to release any devices. </div><br />
 Just curious: where did you get that info ?<br />
FYI Huawei is hiring engineers for Tizen <img src="/images/emo/wink.gif" alt=";)" /> Edited 2012-09-14 17:22 UTC</description>
			<pubDate>Fri, 14 Sep 2012 17:21:00 GMT</pubDate>
			<author>donotreply@osnews.com (swift11)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[6]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535085</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535085</guid>
			<description><div class="cquote"><br />
I said <b>web</b> development... as in JS as it applies to <b>web</b> development is better than it was 10 years ago. There is no comparison there, because there is nothing to compare it to.<br />
<br />
Whatever though - I get your point. </div><br />
<br />
That's true, and fine. I just don't see how its a counter point to excuse poor tooling. <br />
<br />
<div class="cquote"><br />
Now you getting into religious arguments <img src="/images/emo/smile.gif" alt=";)" />  Personally, I would argue that static typing is just a compiler optimization - it isn't a language feature. Its a stupid design decision because its primary purpose is to make compilers faster - it isn't about developer productivity at all. Its about forcing developers to  manually disclose things that a computer can easily figure out at runtime.<br />
<br />
To each their own on that one - I use 7 or 8 languages routinely, about half statically typed and the other half dynamic. I prefer dynamic any day of the week, I don't like having to put training wheels on my code. </div><br />
<br />
I don't particularly find that to be a win. Dynamic typing make code less readable at a glance, and especially in the case of JS leads to ridiculous decisions like the lack of an integer system. <br />
<br />
<div class="cquote"><br />
Ill give MS credit for allowing the CLR to do it either way though - if they didnt' allow dynamic typing the number of languages running on it would have stopped at 1... </div><br />
<br />
I think this is a good idea and would rock for JS. Default static typing with optional dynamic typing. <br />
<br />
<br />
<div class="cquote"><br />
The exact same thing can be said about C# or Java. Time, money, and good engineering can turn a weakness into a strength... <br />
 </div><br />
<br />
Well, I think that there are certain design issues in JavaScript that make it relatively harder to make fast. That's the crux of this argument. <br />
<br />
<br />
<div class="cquote"><br />
Again - &quot;features&quot; that exist to make compilers happy and developers sad don't interest me much...  </div><br />
<br />
I don't know man, as a developer, poor performance makes me sad. <br />
<br />
<div class="cquote"><br />
I would argue that the user experience depends more on the developer than the tools used. Ill even concede it is much easier to create a consistent user experience when using a full stack application development framework - as long as you are only targeting that single stack. I often care more about how many screens I can reach - and it is far easier to spend the time and write a good UI in HTML5 that you can deploy everywhere. It depends of course - it isn't good for everything - but that doesn't make it bad. </div><br />
<br />
Code reuse greatly alleviates this. Its middle ground between two extremes. Not quite write once run anywhere, but not quite single stack either. <br />
<br />
<br />
<div class="cquote"><br />
I do too for the most part. I'm pragmatic - sometimes it is easier that way to get a good result. But I find I choose that route less and less often because the JS/HTML approach is improving so much. I'm not religious about it - I just think saying it is crap and nonviable is extremely short-sighted... </div><br />
<br />
I don't think its improving fast at all. The next improvements to the fundamental technologies are still years off. In the meantime, the deficiencies are unacceptable to me. <br />
<br />
<div class="cquote"><br />
Um.. Java. Flash. Silverlight for the most part too. Im not saying they are dead for app development, but they are all dead for general purpose web development...   </div><br />
<br />
Silverlight was never meant to replace the web, only augment it. Remember, HTML5 didn't exist at that time. The only way to write RIAs was using a plugin. Silverlight was the best at this. <br />
<br />
It doesn't mean byte code is categorically bad for the web. Hell, the generated , minified, gunk that is JS on most sites is a lot less human readable. <br />
<br />
<div class="cquote"><br />
Look at meteor. Or angularjs. Or knockout. Or about 20 other up and coming declarative frameworks. Same thing... That is my point - HTML eventually adopts anything worth doing. It might not be quite as elegant and refined as XAML, but in the long run it won't matter because it doesn't need yet-another-runtime in order to work. </div><br />
<br />
While good, you said it best, it lacks cohesiveness. For Knockout you need to select elements out of the tree and apply bindings and view models manually. There is no declarative databinding because markup can't be extended. <br />
<br />
Its not really declarative then, its just a hack. The point is, its an app platform, not the web, you'll need a runtime anyway, so Mozilla used suboptimal tech for a really terrible reason. Developers should reject this crap. <br />
 <br />
<div class="cquote"><br />
Markup is markup. XAML is not good because of the markup language - it is good for the reasons you stated above - which are features of the runtime. Most of the same features can (and have been) applied to HTML/JS...   </div><br />
<br />
No they have not, because the markup hasn't been leveraged in doing so. JS has. Its not the same thing. Its perfectly reasonable to say HTML is terrible and inadequate, and say XAML is a lot better. <br />
<br />
<br />
<div class="cquote"><br />
800 million devices with a 2-3 year lifespan... Well see how it goes. I'm actually a fan of Windows 8 - Im not knocking it at all. My point was what they call XAML now will likely be replaced with the-next-new-paradigm in the next 10 years or so. There is always something better around the corner - things like XAML fade away - remember OWL, MFC, etc. Web technologies evolve and adapt... </div><br />
<br />
XAML has been around since 2004. Its been used in WPF, Silverlight, Workflow Foundation, XPS, WinRT, Windows Embedded, the Xbox 360, etc <br />
<br />
The key difference now is that its part of the Windows Division, not the Developer Division. Its gone from a dev platform to an inherent part of Windows, with all the legacy implications that it brings.</description>
			<pubDate>Fri, 14 Sep 2012 17:22:00 GMT</pubDate>
			<author>donotreply@osnews.com (Nelson)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[7]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535086</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535086</guid>
			<description>It makes perfect sense. I'm not in the business of caring about what lazy developers prefer. Anyone using HTML/JS to write run anywhere app is pretty much the worst kind of developer I know. <br />
<br />
Wake up, developers. At one point, people were more principled than this.</description>
			<pubDate>Fri, 14 Sep 2012 17:25:00 GMT</pubDate>
			<author>donotreply@osnews.com (Nelson)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[5]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535090</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535090</guid>
			<description>I don't know much about them. Except that they tried to troll the Opus codec (which is an important part of the open Web) with some weird IPR claims: <a href="https://datatracker.ietf.org/ipr/1712/" rel="nofollow">https://datatracker.ietf.org/ipr/1712/</a><br />
  <br />
Not a good reputation IMO. I have no trust in these kind of participants.Edited 2012-09-14 18:04 UTC</description>
			<pubDate>Fri, 14 Sep 2012 17:58:00 GMT</pubDate>
			<author>donotreply@osnews.com (shmerl)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[6]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535092</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535092</guid>
			<description>Huawei is just an example: every participant of the TA will have Tizen devices <img src="/images/emo/wink.gif" alt=";)" /> <br />
 <br />
 about the codec: open source is a learning process for most companies, but you're right: it's plain stupid <img src="/images/emo/smile.gif" alt=";)" /> Edited 2012-09-14 18:07 UTC</description>
			<pubDate>Fri, 14 Sep 2012 18:04:00 GMT</pubDate>
			<author>donotreply@osnews.com (swift11)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Security Concern</title>
			<link>http://www.osnews.com/thread?535095</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535095</guid>
			<description>I am always in favor of more choices, so I would like to see Firefox OS succeed.  But one potential problem jumped out at me from the article:<br />
<br />
<div class="cquote">Because Firefox OS is constructed using HTML, JavaScript and CSS it means you only need basic Web development skills to reach in and completely change the device experience. You could literally change one line of CSS and completely change the way the icons on the homescreen look, or re-write some core JavaScript files that handle phone-calls. </div><br />
<br />
That sounds like a security (and tech support) nightmare waiting to happen.  I hope they are thinking about things like this.</description>
			<pubDate>Fri, 14 Sep 2012 18:09:00 GMT</pubDate>
			<author>donotreply@osnews.com (Pro-Competition)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[8]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535096</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535096</guid>
			<description>Nelson,<br />
<br />
&quot;It makes perfect sense. I'm not in the business of caring about what lazy developers prefer. Anyone using HTML/JS to write run anywhere app is pretty much the worst kind of developer I know.&quot;<br />
<br />
Wow Nelson, I think you might have initially started out defending a sound principal, but your argument is becoming absurd. Writing portable code is ultimately about not having to reimplement the same thing everywhere. You can call it lazy if you want, but I'll call it being efficient.<br />
<br />
The WWW, for all it's problems, could not be as ubiquitous and transparent as it is today if everyone used their own protocols and different standards. Unless you believe in segregating the online population, it's a good thing that everyone can visit each other's websites with the expectation that they will work everywhere else.</description>
			<pubDate>Fri, 14 Sep 2012 18:17:00 GMT</pubDate>
			<author>donotreply@osnews.com (Alfman)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[6]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535116</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535116</guid>
			<description><div class="cquote">Just to be clear, this example did NOT measure script parsing overhead, which was mere milliseconds on my machine and an acceptable one-time cost. What was slow was the run time inside the loop - several seconds in each case. I'm baffled why you're claiming 90% of the execution time is due to &quot;parsing, compilation, etc&quot;? Obviously we can't be talking about the same thing. </div><br />
<br />
Sorry, I wasn't clear. Your right - we are not talking about the same thing. I wasn't trying to imply that the code above only takes 10-15ms to run in walltime - it takes (on my machine) 1.45s.<br />
<br />
What I was saying is that, minus the 10-15ms, the rest of the time is purely parsing, compiling, memory management, type inference, etc. etc. - i.e. non-user code or system code. The actual amount of <b>CPU time</b> spent executing _only_ the actual loops and dong the calculations is 10-15ms. If you want to run it in Chrome and look at the CPU profiler you will see what I am talking about.<br />
<br />
In other words, in a perfect world where JS was a compiled to machine code language and memory allocation was perfect and could be done in advance - the code would take around 15ms to run, which is probably very comparable to GCC (if you rewrote the GCC code to allocate the whole chunk of memory in one shot, for example).<br />
<br />
<b>But</b> - It is obviously not fair to discount the rest of that time - memory allocation counts too and is real overhead. Its just that since JS does this automatically it isn't done in user code - so it ends up being counted up as &quot;program&quot; time by the profiler. It still matters of course.<br />
<br />
I was simply pointing out that it isn't purely because of object access. Object access is slower of course, but the bulk of the time is actually spent on engine level stuff (like memory allocation).<br />
<br />
That is, by and large, where you will end up seeing all the time go relative to something like GCC - memory allocation, compilation, and garbage collection overhead. Other things (like difference in object access performance) tend to be eclipsed by it. Object access patterns are slower, and that is a real problem, but it isn't the bulk of the performance delta your seeing.<br />
<br />
<div class="cquote">There are several ways we could have eliminated the objects, but given that they were what I was measuring the overhead of this would have defeated the point. </div><br />
<br />
That is my point though - only about 40% of that overhead you measured is due to object access. I removed it and the code runs 2x as fast, but it is still more than 50x slower than GCC. The big difference is memory allocation and general engine overhead.<br />
<br />
Like I said, that isn't a fixed cost - it is highly dependent on the code. But it does tend to become less and less significant the larger and more complex the code base becomes.</description>
			<pubDate>Fri, 14 Sep 2012 21:51:00 GMT</pubDate>
			<author>donotreply@osnews.com (galvanash)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[8]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535119</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535119</guid>
			<description><div class="cquote">It makes perfect sense. I'm not in the business of caring about what lazy developers prefer. Anyone using HTML/JS to write run anywhere app is pretty much the worst kind of developer I know. <br />
<br />
Wake up, developers. At one point, people were more principled than this. </div><br />
<br />
I'm very principled... One of my first principles is that I don't believe that development is the process of becoming attached at the hip to a particular vendor's idea of the right way to do things. HTML/JS might not be perfect, but it has one very significant feature that no other development platform has - no one company is steering the boat.<br />
<br />
And since you want to resort to name calling... What is being content to slop up Microsoft or Apple's latest dog food for the sake of it making things easier for you? That sounds pretty lazy to me.<br />
<br />
My development platform is the world - yours is just the latest gadget fad...</description>
			<pubDate>Fri, 14 Sep 2012 22:26:00 GMT</pubDate>
			<author>donotreply@osnews.com (galvanash)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Comment by Luke McCarthy</title>
			<link>http://www.osnews.com/thread?535152</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535152</guid>
			<description>I wouldn't want the stagnation that is happening in the x86 platform to extend to ARM SoCs. If it weren't for AMD, we would all be stuck with a 32-bit ISA on x86, with an overly costly and less than optimal upgrade path to Itanium. Unfortunately we've lost the 3rd party chipset market on x86 due to having too few CPU players.<br />
<br />
I hope the ARM SoC market stays the way it is with even more competition and SoC options coming into it.</description>
			<pubDate>Sat, 15 Sep 2012 05:26:00 GMT</pubDate>
			<author>donotreply@osnews.com (adkilla)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[7]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535235</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535235</guid>
			<description>galvanash,<br />
 <br />
&quot;I was simply pointing out that it isn't purely because of object access. Object access is slower of course, but the bulk of the time is actually spent on engine level stuff (like memory allocation).&quot;<br />
 <br />
If I understood you correctly, you may be suggesting that JS only spent ~20ms (we're handwaiving here) doing actual work and the rest was language support overhead. That's a peculiar thing to say, but I guess that's plausible. However I don't see why it changes anything because the overhead is still there regardless of what you attribute it to. Hopefully there is room for improvement.<br />
 <br />
 <br />
&quot;That is my point though - only about 40% of that overhead you measured is due to object access. I removed it and the code runs 2x as fast, but it is still more than 50x slower than GCC. The big difference is memory allocation and general engine overhead.&quot;<br />
 <br />
Well, just for kicks I've rerun my original code but with a new timer around the inner loop.<br />
 <br />
entire script=3.032<br />
inner loop = 3.027<br />
 <br />
So I think we can rule out memory allocation overhead as a culprit (Unless javascript is continuously reallocating memory unnecessarily in the inner loop?). Still impressive compared to JS engines from a few years go, but I think further optimisation is going to be increasingly difficult.<br />
<br />
<br />
&quot;Like I said, that isn't a fixed cost - it is highly dependent on the code. But it does tend to become less and less significant the larger and more complex the code base becomes.&quot;<br />
<br />
You know I can't let you get away with a statement like that without some kind of evidence <img src="/images/emo/smile.gif" alt=";)" /> Edited 2012-09-15 17:21 UTC</description>
			<pubDate>Sat, 15 Sep 2012 17:18:00 GMT</pubDate>
			<author>donotreply@osnews.com (Alfman)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Comment by Luke McCarthy</title>
			<link>http://www.osnews.com/thread?535241</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535241</guid>
			<description>adkilla,<br />
<br />
&quot;I wouldn't want the stagnation that is happening in the x86 platform to extend to ARM SoCs. If it weren't for AMD, we would all be stuck with a 32-bit ISA on x86, with an overly costly and less than optimal upgrade path to Itanium. Unfortunately we've lost the 3rd party chipset market on x86 due to having too few CPU players.&quot;<br />
<br />
Haha, I was actually very disappointed with AMD when they told the world they were going to extend the life of x86 with a 64bit variant of it. I sincerely thought that we would be migrated to better architectures by now if AMD hadn't anchored us right back to the x86 platform (albeit with some improvements). The AMD64 ISA still suffers from a lack of GP registers compared to alternatives, which necessitates complex hacks like register renaming. The opcodes are still highly inconsistent, increasing the amount of logic needed to parse them. The whole architecture is shrouded in subtle legacy designs.<br />
<br />
I guess we have to wait for a newcomer to replace x86-64, but now that x86 is 64bit that could take a  while (x86-64 could conceivably last a few decades like the x86 did).</description>
			<pubDate>Sat, 15 Sep 2012 17:48:00 GMT</pubDate>
			<author>donotreply@osnews.com (Alfman)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: Comment by Luke McCarthy</title>
			<link>http://www.osnews.com/thread?535250</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535250</guid>
			<description>Given the choice over Itanium and x86-64, I'd take x86-64 anyday.</description>
			<pubDate>Sat, 15 Sep 2012 18:56:00 GMT</pubDate>
			<author>donotreply@osnews.com (adkilla)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[8]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535288</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535288</guid>
			<description>Well... I withdraw most of what I posted...<br />
<br />
It turns out Chrome's profiler does some very weird shit when you are profiling naked code in the global scope. I rewrote the code so that it is contained in a function, so that all the variables are local.<br />
<br />
The timing didn't really change, but what changed was where Chrome was reporting % of time spent... <br />
<br />
Long story short - Array access is faster than Object access, but either way that is where the majority of time is being spent in your test code.<br />
<br />
Hell - I don't know exactly what Chrome was reporting before when it was showing 10-15ms... It ends up reporting things completely differently once you get out of the global scope. I just assumed it was reporting things correctly... sorry about that.<br />
<br />
If you instead did something focusing on the calculations involved and less on the object access (obviously this wont give the same result)...<br />
<br />
<div class="cquote"><br />
function dostuff() {<br />
	var i=9999; <br />
	var coords=new Array(i+1);<br />
	var ci,cj; <br />
	<br />
	console.profile();<br />
	while(--i) {<br />
		coords[ i ] = (i + i) / 2;<br />
		coords[ i ] = (coords[ i ] + i) / 2;<br />
		coords[ i ] = (coords[ i ] + i) / 2;<br />
	} <br />
	console.profileEnd();<br />
}<br />
 </div><br />
<br />
You end up with this taking only about 6ms on my machine... Same operations same number of times - just no object access and a simpler loop with just one control variable.<br />
<br />
So all in all I would say your original observation was dead on - most of the delta between GCC and JS in your example is purely object access.</description>
			<pubDate>Sun, 16 Sep 2012 02:42:00 GMT</pubDate>
			<author>donotreply@osnews.com (galvanash)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: Comment by Luke McCarthy</title>
			<link>http://www.osnews.com/thread?535315</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535315</guid>
			<description><div class="cquote">I was actually very disappointed with AMD when they told the world they were going to extend the life of x86 with a 64bit variant of it. I sincerely thought that we would be migrated to better architectures by now if AMD hadn't anchored us right back to the x86 platform [...] The whole architecture is shrouded in subtle legacy designs. </div><br />
I don't think so - if you'd take AMD out of the equation, the world would just mostly continue buying x86-32 until <i>really</i> hitting that 4 GiB limit ...at which point MS would just save the day by forcing PAE in their then-new (and in that alternative reality) Vista/7, and that would be it (assuming Intel management wouldn't come to their senses prior to that)<br />
<br />
Generally, over time everything collects &amp; grows in legacies... And considering the most likely &quot;better&quot; alternatives, can you really say with a straight face that we would be better off without x86-64? (consumers in general - sorry, nobody cares about asm, OS, compiler devs <img src="/images/emo/tongue.gif" alt=";)" />  )<br />
<br />
Still, in a few years you might more or less get what you want(?) - the Loongson ~MIPS chips have hardware-assisted x86 emulation. Considering all the x86 licensing issues, it's of course unlikely to show up in &quot;current&quot; (in the future) ~Western products ...my guess: it's there (and being worked on) to be ready when P5, MMX, P6, SSE patents lapse in the coming decade (I think) - that subset of x86 should allow running virtually all <i>really important</i>(tm) legacy software, a perspective probably very appealing to the Chinese, in their supposed quest to technology independence. <br />
So, you just have to move to PRC to experience it, or at least to the areas likely within their sphere of influence in the future ;p (that should be SE Asia and large parts of Latin America and Africa ...though who knows, maybe more ;p )</description>
			<pubDate>Sun, 16 Sep 2012 13:47:00 GMT</pubDate>
			<author>donotreply@osnews.com (zima)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Comment by Luke McCarthy</title>
			<link>http://www.osnews.com/thread?535317</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535317</guid>
			<description><div class="cquote">I wouldn't want the stagnation that is happening in the x86 platform to extend to ARM SoCs. If it weren't for AMD, we would all be stuck with a 32-bit ISA on x86, with an overly costly and less than optimal upgrade path to Itanium. Unfortunately we've lost the 3rd party chipset market on x86 due to having too few CPU players. </div><br />
  I guess MS would just save the day by forcing PAE in Vista/7, in that alternative reality (if Intel wouldn't wise up sooner) ...overall, probably not much of a difference to us. <br />
  <br />
  And 3rd party chipsets were likely going out anyway, due to increasing integration of x86 platforms (so not exactly stagnation, and even similar in spirit to ARM SoCs). Anyway, if there would be more x86 chipsets thanks to there being more x86 CPU players ...those chipsets wouldn't really be 3rd party, wouldn't they :p (plus, while we might despair the loss of ULi or SiS, I won't miss VIA chipsets; but BTW SiS, x86, and SoCs... <a href="http://en.wikipedia.org/wiki/Vortex86" rel="nofollow">http://en.wikipedia.org/wiki/Vortex86</a> )Edited 2012-09-16 14:23 UTC</description>
			<pubDate>Sun, 16 Sep 2012 14:11:00 GMT</pubDate>
			<author>donotreply@osnews.com (zima)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[9]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535332</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535332</guid>
			<description><div class="cquote"><br />
<br />
I'm very principled... One of my first principles is that I don't believe that development is the process of becoming attached at the hip to a particular vendor's idea of the right way to do things. HTML/JS might not be perfect, but it has one very significant feature that no other development platform has - no one company is steering the boat.<br />
 </div><br />
<br />
XAML and C# are open specifications. There is nothing proprietary about them.  They're also a great deal better than HTML/JS, so let's drop the straw man. <br />
<br />
Anyone is free to implement a XAML parser. I'm not tied to any particular platform because my back end code has no ties to any platform. Its all generic .NET code. It works across the myriad platforms I'm interested including a great majority of the smartphone market. <br />
<br />
<div class="cquote"><br />
And since you want to resort to name calling... What is being content to slop up Microsoft or Apple's latest dog food for the sake of it making things easier for you? That sounds pretty lazy to me.<br />
<br />
My development platform is the world - yours is just the latest gadget fad... </div><br />
<br />
I don't? The only parts Cocoa or XAML are the native front ends. A great majority of my code is portable across platforms. <br />
<br />
I custom tailor my apps for the platform, while you try to make HTML fit everywhere , user experience be damned.</description>
			<pubDate>Sun, 16 Sep 2012 17:52:00 GMT</pubDate>
			<author>donotreply@osnews.com (Nelson)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[9]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535333</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535333</guid>
			<description>You do this really naive thing where you assume you're the moral arbiter of programming and I'm supposed to care about your opinion. <br />
<br />
Also, my apps feel more native, perform better, and I achive comparable productivity with just slapping together an alien feeling HTML5 website and calling it a day by stuffing it into an app.</description>
			<pubDate>Sun, 16 Sep 2012 17:54:00 GMT</pubDate>
			<author>donotreply@osnews.com (Nelson)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[4]: Comment by Luke McCarthy</title>
			<link>http://www.osnews.com/thread?535337</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535337</guid>
			<description>I wasn't suggesting the choice for 64 bit desktop supremacy was only between intel processors, it's completely ironic that AMD64 is mostly responsible for keeping intel in the lead for 64bit processors.</description>
			<pubDate>Sun, 16 Sep 2012 18:52:00 GMT</pubDate>
			<author>donotreply@osnews.com (Alfman)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[4]: Comment by Luke McCarthy</title>
			<link>http://www.osnews.com/thread?535338</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535338</guid>
			<description>zima,<br />
 <br />
&quot;Generally, over time everything collects &amp; grows in legacies... And considering the most likely &quot;better&quot; alternatives, can you really say with a straight face that we would be better off without x86-64? (consumers in general - sorry, nobody cares about asm, OS, compiler devs <img src="/images/emo/wink.gif" alt=";)" />  )&quot;<br />
 <br />
 <br />
Actually, yes I do think so. x86-64 is just the latest in a number of extensions to the antiquated architecture. Sure it's &quot;good enough&quot;, but I think x86-64 won at the expense of competitors which will continue to me marginalised for at least another decade.<br />
<br />
<br />
&quot;Still, in a few years you might more or less get what you want(?) - the Loongson ~MIPS chips have hardware-assisted x86 emulation. Considering all the x86 licensing issues, it's of course unlikely to show up in &quot;current&quot; (in the future) ~Western products&quot;<br />
<br />
There's so much legal BS going down right now that I suspect you might be right. These are sad times.Edited 2012-09-16 18:59 UTC</description>
			<pubDate>Sun, 16 Sep 2012 18:56:00 GMT</pubDate>
			<author>donotreply@osnews.com (Alfman)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[10]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535341</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535341</guid>
			<description>Nelson,<br />
<br />
&quot;You do this really naive thing where you assume you're the moral arbiter of programming and I'm supposed to care about your opinion.&quot;<br />
<br />
You don't have to care about my opinion, but can you read your own post in context and tell me it's not pure arrogance?<br />
<br />
<a href="http://www.osnews.com/thread?535086" rel="nofollow">http://www.osnews.com/thread?535086</a><br />
<br />
You allude to principals, however you've failed to lay them out in the course of this discussion. We've highlighted a shortcoming shared by many native platforms, but instead of acknowledging the truth in that, you resorted to Ad Hominem attacks against all web developers. Regardless of what you think of my opinion, you should at least redact that post since it can't possibly be true; some of the best developers in existence will use HTML/JS despite its shortcomings BECAUSE they want to reach the largest audience.<br />
<br />
<br />
&quot;Also, my apps feel more native, perform better, and I achive comparable productivity with just slapping together an alien feeling HTML5 website and calling it a day by stuffing it into an app.&quot;<br />
<br />
Well Nelson, here you are using an HTML news &amp; discussion board, what happened to your principals? You're obviously not a hypocrite, so where's the link to the native version of osnews since I'd like to give it a try!<br />
<br />
My point being that the web does have it's uses, and even if some of us prefer native apps (including myself btw), we have to admit that they fail to reach as wide an audience as exists on the web.<br />
<br />
Instead of denying the benefits of portability, we'd be better off making native frameworks MORE portable so that they could run anywhere without regards to OS/platform. Go ahead and disagree with my opinion, but for gods sake drop the more-principled-than-thou talk.Edited 2012-09-16 19:46 UTC</description>
			<pubDate>Sun, 16 Sep 2012 19:44:00 GMT</pubDate>
			<author>donotreply@osnews.com (Alfman)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[11]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535344</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535344</guid>
			<description><div class="cquote">Nelson,<br />
<br />
You don't have to care about my opinion, but can you read your own post in context and tell me it's not pure arrogance?<br />
<br />
<a href="http://www.osnews.com/thread?535086" rel="nofollow">http://www.osnews.com/thread?535086</a><br />
<br />
You allude to principals, however you've failed to lay them out in the course of this discussion. We've highlighted a shortcoming shared by many native platforms, but instead of acknowledging the truth in that, you resorted to Ad Hominem attacks against all web developers. Regardless of what you think of my opinion, you should at least redact that post since it can't possibly be true; some of the best developers in existence will use HTML/JS despite its shortcomings BECAUSE they want to reach the largest audience. </div><br />
<br />
My principals are that user experience should never suffer because of a need to reach a wide audience. However, as I've saidÂ in earlier comments, this is exclusively talking about when used for APP DEVELOPMENT. I'm fine with using HTML and JS and the WWW as a least common denominator website, just don't stuff it in an app package and pretend its an app.<br />
<br />
A good example is Facebook. They have apps for the major platforms, and a least common denominator website for everyone else. <br />
<br />
I've stated this all before, don't confuse your unwillingness or inability to read with me not having stated my position before. <br />
<br />
<div class="cquote"><br />
Well Nelson, here you are using an HTML news &amp;amp; discussion board, what happened to your principals? You're obviously not a hypocrite, so where's the link to the native version of osnews since I'd like to give it a try!<br />
<br />
My point being that the web does have it's uses, and even if some of us prefer native apps (including myself btw), we have to admit that they fail to reach as wide an audience as exists on the web. </div><br />
<br />
Again, you mischaracterize my position because you're too busy doing grandstanding to read for comprehension. I think the web is a good idea, on the web. Where I am vehemently against such an atrocity is when it is packaged and advertised as an app. It looks like a duck, and quacks like a dog. <br />
<br />
<br />
<div class="cquote">Instead of denying the benefits of portability, we'd be better off making native frameworks MORE portable so that they could run anywhere without regards to OS/platform. Go ahead and disagree with my opinion, but for gods sake drop the more-principled-than-thou talk. </div><br />
<br />
You are really the most annoying type of person to talk to. A crucial prerequisite for being a smart ass, is to actually know what you're speaking about. <br />
<br />
In fact, I've already spoken well of portability, and in fact I employ various measures to ensure a high degree of code sharing every day. Across multiple platforms. Without compromising the user experience or performance. <br />
<br />
Not with trying to arm wrestle HTML into something it was never meant to do, not with inducing suicidal thoughts by maintaining large gobs of JavaScript, but by writing portable back end C# with a native front end for each of the platforms I support. <br />
<br />
My principled jab is the people who, when strictly talking about app development, would throw away user experience for the sake of having a write once run anywhere scenario. <br />
<br />
I don't care if its you, someone else on this board, or really anyone else, it is beneath me as a programmer to pretend to even respect people who cut corners in such an egregious matter. <br />
<br />
We in the app development tech circles spit on people who pervert programming like this.</description>
			<pubDate>Sun, 16 Sep 2012 20:24:00 GMT</pubDate>
			<author>donotreply@osnews.com (Nelson)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[12]: HTML as a toolkit for a mobile OS?</title>
			<link>http://www.osnews.com/thread?535380</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535380</guid>
			<description>&quot;My principals are that user experience should never suffer because of a need to reach a wide audience. However, as I've said in earlier comments, this is exclusively talking about when used for APP DEVELOPMENT.&quot;<br />
 <br />
And that's a completely fair opinion, don't assume that I disagree with it. I just think there's more than one right answer and I don't &quot;spit on people&quot; who prefer something different.<br />
 <br />
 <br />
&quot;You are really the most annoying type of person to talk to. A crucial prerequisite for being a smart ass, is to actually know what you're speaking about.&quot;<br />
 <br />
Haha, I may be annoying to you, but that's probably because I do know what I'm talking about. As I've stated already, I don't have a problem with your opinion, but I do have a problem with the flaming way in which you stated it. <br />
 <br />
For example, upon joining the discussion I said &quot;You can dismiss portability for yourself, but it really doesn't make sense to dismiss the utility for others.&quot; Do you really think it's appropriate to respond with &quot;It makes perfect sense. I'm not in the business of caring about what lazy developers prefer. Anyone using HTML/JS to write run anywhere app is pretty much the worst kind of developer I know.&quot; I was hoping you'd have the dignity to take that back - it was hurtful, untrue, and in poor taste.<br />
<br />
<br />
&quot;My principled jab is the people who, when strictly talking about app development, would throw away user experience for the sake of having a write once run anywhere scenario.&quot;<br />
<br />
There are certainly some cases where I'd agree that native apps are better. But why do you have to &quot;jab&quot; people at all? Just state your opinion without an insult. I may not always be agreeable, but I do try to stay friendly. It may have been naive, but I only got involved in this thread to try and disarm the tension that had built up. If you cannot agree, then simply agree to disagree. Don't interpret this condescendingly, but I plead you, for the sake of osnews, next time try to respond in a pleasant tone. I'm serious about that, fighting over HTML/native apps is really silly, I don't care who's &quot;right&quot;, I just want to have fun discussing it.<br />
<br />
Edit: This applies to everybody! (said the self-proclaimed blog nanny <img src="/images/emo/smile.gif" alt=";)" />  ) Seems like osnews has too many regular flamewars going on, which frequently overcrowd the purposeful discussions. It's more fun when people are friendly.Edited 2012-09-17 00:55 UTC</description>
			<pubDate>Mon, 17 Sep 2012 00:41:00 GMT</pubDate>
			<author>donotreply@osnews.com (Alfman)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[9]: Another fallen mobile OS.</title>
			<link>http://www.osnews.com/thread?535381</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535381</guid>
			<description>galvanash,<br />
  <br />
&quot;So all in all I would say your original observation was dead on - most of the delta between GCC and JS in your example is purely object access.&quot;<br />
  <br />
The question becomes how to optimise it. I think you may have been on the way to this idea before getting sidetracked by my benchmark: in theory the JS compiler might convert the dynamic object into a static structure under the hood. But I see that as being a difficult challenge because in JS we don't know which members to allocate prior to execution. A simple analysis may work for simple scripts, but I can conceive of other cases where the compiler will have to run the entire script before being able to determine what static structure it should be using.<br />
 <br />
We probably ought to revisit this topic on a new article with more time to discuss it.Edited 2012-09-17 01:28 UTC</description>
			<pubDate>Mon, 17 Sep 2012 01:24:00 GMT</pubDate>
			<author>donotreply@osnews.com (Alfman)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[5]: Comment by Luke McCarthy</title>
			<link>http://www.osnews.com/thread?535895</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?535895</guid>
			<description>I'm not convinced. And perhaps I didn't state the opening thought explicitly enough: even if x86-64 never happened, the world would mostly just continue buying x86 (-32...) CPUs <i>even now</i>, because they are largely definitely more optimal than the alternatives - NVM some quirks of their architecture (and some solitary grumbling ~asm coders). Without x86-64, they'd still be better at what they do, with great band-per-buck, just with PAE forced a bit sooner by the dominant operating systems... <br />
 <br />
 I don't see any serious competitor to x86-64 that was stifled by it. MIPS, Alpha, SPARC, PA-RISC were killed or out of the performance game due to <i>Itanium</i> (...empty promises) - from which AMD64 <i>saved</i> us[/i] - and anyway they would go against the Wintel ecosystem and unlikely to give anything so nice as the inexpensive power of x86 in the last decade, driven by its established economies of scale. PowerPC ...I doubt IBM would be better for us if given, well, <i>power</i> over ~PC market (then there's that <i>&quot;The memory management on the PowerPC can be used to frighten small children&quot;</i> Linus quote).<br />
 ARM shows up everywhere now, anyway - but it's unlikely this would happen much sooner (ARM doesn't even have its own 64 bit version out yet... and, before the establishment of &quot;new mobile ecosystem&quot;, lack of binary compatibility with x86 would be a major showstopper)<br />
<br />
<br />
But also, don't be so pessimistic ...it will show up, but not in &quot;current&quot; consumer toys (no x64, no SSE2 until 2022 or so, no SSE3 much longer)Edited 2012-09-21 00:19 UTC</description>
			<pubDate>Thu, 20 Sep 2012 23:59:00 GMT</pubDate>
			<author>donotreply@osnews.com (zima)</author>
			<category>Comments</category>
		</item>
	</channel>
</rss>
