4 ms·
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 execu
by sanketskasar 6y 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.
- simonh 6y agoThe 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.
- gsnedders 6y agoAnd 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.
- CharlesW 6y ago> 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.
- kergonath 6y agoCould you point to one of those (Apple only instruction added for the only purpose of accelerating JS)?
- deleted 6y ago[deleted]
- stevefan1999 6y agoah. also jazelle.
- deleted 6y ago[deleted]