Hacker News new | ask | show | jobs
by sanketskasar 2053 days ago
Yes, but there have been instances of Apple (and in general, ARM as well, though not as much) adding special instructions to the A series chips to make JS execution faster. They can make web apps run better than other platforms. And then they can make native apps run even faster. Both are a advantage which the competing ecosystem doesn't have.
3 comments

The special CPU instruction for JS thing is a bit silly. Javascript defines it's floating point rounding behaviour as what Intel CPUs do. ARM behaves differently by default, so they implemented an instruction to emulate the Intel behaviour specially to avoid Javascript running too slowly implementing the excepted behaviour in code.

This doesn't give ARM chips an advantage over Intel CPUs at executing Javascript for obvious reasons, once you know why they added it.

> This doesn't give ARM chips an advantage over Intel CPUs at executing Javascript for obvious reasons, once you know why they added it.

I believe the point is that it's one example (of hundreds, maybe thousands?) of performance paper-cuts addressed by Apple hardware that result in significant performance-per-watt advantages over devices not using Intel CPUs.

And it effectively just sets the FPU flags, runs the instruction, then resets the FPU flags. It just avoids the JS VM from having change FPU flags repeatedly.
Could you point to one of those (Apple only instruction added for the only purpose of accelerating JS)?
ah. also jazelle.