<story><title>Why iPhone Xs performance on JavaScript is so good</title><url>https://twitter.com/codinghorror/status/1049082262854094848?s=21</url></story><parent_chain><item><author>faitswulff</author><text>@steipete puts it pretty well: JavaScript really made it. We now tweak CPUs to make it faster.&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;twitter.com&amp;#x2F;steipete&amp;#x2F;status&amp;#x2F;1047415826083729408&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;twitter.com&amp;#x2F;steipete&amp;#x2F;status&amp;#x2F;1047415826083729408&lt;/a&gt;</text></item></parent_chain><comment><author>tzs</author><text>That was a trick Dave Fotland used in the &amp;#x27;80s to make his Go program, &amp;quot;Many Faces of Go&amp;quot;, faster. He donated some key code from his evaluation function to SPEC and they used it as one of the parts in the SPEC integer CPU benchmarks. CPU makers tweaked CPUs to do well on those benchmarks, and hence on his code.</text></comment>
<story><title>Why iPhone Xs performance on JavaScript is so good</title><url>https://twitter.com/codinghorror/status/1049082262854094848?s=21</url></story><parent_chain><item><author>faitswulff</author><text>@steipete puts it pretty well: JavaScript really made it. We now tweak CPUs to make it faster.&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;twitter.com&amp;#x2F;steipete&amp;#x2F;status&amp;#x2F;1047415826083729408&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;twitter.com&amp;#x2F;steipete&amp;#x2F;status&amp;#x2F;1047415826083729408&lt;/a&gt;</text></item></parent_chain><comment><author>userbinator</author><text>ARM did something similar with Java before:&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;en.wikipedia.org&amp;#x2F;wiki&amp;#x2F;Jazelle&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;en.wikipedia.org&amp;#x2F;wiki&amp;#x2F;Jazelle&lt;/a&gt;&lt;p&gt;I would not be surprised if they come up with a way of directly executing WASM or such. (And then the possibilities for security exploits become a lot more interesting...)</text></comment>