4 ms·
While I love C/C++, I thought the M1 family was specifically optimized for higher level languages?
by doctorshady 5y ago
While I love C/C++, I thought the M1 family was specifically optimized for higher level languages?
- wahern 5y agoMaybe you're thinking of FJCVTZS, which is intended to accelerate a common operation in JavaScript engines? That's not unique to M1, though; rather added to a relatively recent ARM ISA revision. See https://news.ycombinator.com/item?id=25422168 https://news.ycombinator.com/item?id=25422168 I think there may be other optimizations related to Apple's reference counting and type tagging models for Objective-C and Swift.
- speed_spread 5y agoFJCVTZS I read that out loud, thinking I was back at the optometrist.
- spicybright 5y agoI'm still squinting...
- bee_rider 5y agoHey I recognize this Strongbad song. Everybody to the limit! The cheat is to the limit! Everybody FJCVTZS!
- wmf 5y agoThat's kind of a myth and it's basically impossible to design a processor that runs high-level code faster than low-level code.
- zepto 5y agoTrue, but it’s not impossible to design a processor that is much faster at running high level code in certain languages a lot faster than another processor that is roughly equivalent at running low level code.