TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

ARM chips have an instruction with JavaScript in the name

406 pointsby kdeldyckeover 4 years ago

15 comments

marcusarmstrongover 4 years ago
If anybody else was curious, it appears that the performance win of use of this instruction looks to be about 1-2% in general javascript workloads: <a href="https:&#x2F;&#x2F;bugs.webkit.org&#x2F;show_bug.cgi?id=184023#c24" rel="nofollow">https:&#x2F;&#x2F;bugs.webkit.org&#x2F;show_bug.cgi?id=184023#c24</a>
评论 #24813940 未加载
评论 #24812500 未加载
klelattiover 4 years ago
Given that the instruction set already has a float to integer conversion it seems likely that the overhead of implementing this would be small and so given the performance (and presumably energy) win quoted elsewhere seems like a good move.<p>It would be interesting to know the back story on this: how did the idea feed back from JS implementation teams to ARM. Webkit via Apple or V8 via Google?
评论 #24812250 未加载
mhh__over 4 years ago
Unless I misread the current arm docs, I don&#x27;t think this is still present in the ISA as of 2020?<p>The whole RISC&#x2F;CISC thing is long dead anyway, so I don&#x27;t really mind having something like this on my CPU.<p>Bring on the mill (I don&#x27;t think it&#x27;ll set the world on fire if they ever make it to real silicon but it&#x27;s truly different)
评论 #24812292 未加载
评论 #24809240 未加载
评论 #24811756 未加载
评论 #24812778 未加载
barnacledover 4 years ago
It strikes me as ironic that an architecture that used to pride itself on being RISC and simple is heading in the same direction as intel-levels of masses of specialist instructions.<p>I don&#x27;t mean this as a criticism, I just wonder if this is really the optimum direction for a practical ISA
评论 #24815585 未加载
评论 #24815213 未加载
chubotover 4 years ago
Emery Berger argues that the systems community should be doing exactly this -- improving infrastructure to run JS and Python workloads:<p><a href="https:&#x2F;&#x2F;blog.sigplan.org&#x2F;2020&#x2F;10&#x2F;12&#x2F;from-heavy-metal-to-irrational-exuberance&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.sigplan.org&#x2F;2020&#x2F;10&#x2F;12&#x2F;from-heavy-metal-to-irra...</a><p><i>We need to incorporate JavaScript and Python workloads into our evaluations. There are already standard benchmark suites for JavaScript performance in the browser, and we can include applications written in node.js (server-side JavaScript), Python web servers, and more. This is where cycles are being spent today, and we need evaluation that matches modern workloads. For example, we should care less if a proposed mobile chip or compiler optimization slows down SPEC, and care more if it speeds up Python or JavaScript!</i>
评论 #24813039 未加载
评论 #24813263 未加载
评论 #24813851 未加载
评论 #24814253 未加载
评论 #24813165 未加载
rhackerover 4 years ago
It seems like every 2 months I feel the burn of JS not having more standard primitive types and choices for numbers. I get this urge to learn Rust or Swift or Go which lasts about 15 minutes... until I realize how tied up I am with JS.<p>But I do think one day (might take a while) JS will no longer be the obvious choice for front-end browser development.
评论 #24813135 未加载
评论 #24812166 未加载
评论 #24812223 未加载
评论 #24815077 未加载
评论 #24812098 未加载
评论 #24812076 未加载
评论 #24829078 未加载
评论 #24812094 未加载
评论 #24812832 未加载
kanoxover 4 years ago
My guess is that this is what JIT people asked for.
评论 #24812952 未加载
评论 #24811915 未加载
lxeover 4 years ago
A good follow up to &quot;HTML5 Hardware Accelerator Card&quot; from yesterday: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24806089" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24806089</a>
nabla9over 4 years ago
SPARC processors have tagged add and subtract instructions to help dynamic languages.
评论 #24813092 未加载
评论 #24813156 未加载
Animatsover 4 years ago
Nice. Also useful is a set of integer operations that raise an exception on overflow.
offbynullover 4 years ago
Anyone else remember the ARM Jazelle DBX extension? I wonder if they&#x27;ll end up dumping this in this the same way.<p>I don&#x27;t remember very many phones supporting DBX, but IIRC the ones that did seemed to run J2ME apps much smoother.
评论 #24813496 未加载
评论 #24815371 未加载
评论 #24813393 未加载
dborehamover 4 years ago
All cpu have instructions with nsa in the name. Well not in the name, but added at their behest at some point in history.
bitwizeover 4 years ago
The dream of the Lisp machine is long dead. Our computers are now JavaScript machines.
nomover 4 years ago
So it was easier to add an instruction in silicon to cater for an ill-designed programming language, than to change the language itself?<p>I mean, if float-to-integer performance is so critical, why was this not fixed a long time ago <i>in the language</i>? What am I missing?
评论 #24812038 未加载
评论 #24812009 未加载
评论 #24813321 未加载
评论 #24811910 未加载
评论 #24811918 未加载
barumiover 4 years ago
FTA:<p>&gt; Which is odd, because you don&#x27;t expect to see JavaScript so close to the bare metal.<p>This seems to ignore all the work done on server-side javascript with projects such as node.js and deno, as well as the fact that cloud service providers such as AWS have been developing their own ARM-based servers.
评论 #24808791 未加载
评论 #24812036 未加载