关于 Apple M1 的群众意见每日汇总 [码农方向][2020.11.19]
通过 CrossOver 运行 Windows 应用
We’re making it official: @codeweavers CrossOver/Wine runs 32- and 64-bit Windows apps/games on Apple Silicon Macs! And it works today!
Big thanks to the Rosetta folks at Apple and everyone at CodeWeavers for their hard work on this.
https://twitter.com/stroughtonsmith/status/1329207532154445825
https://www.codeweavers.com/blog/jwhite/2020/11/18/okay-im-on-the-bandwagon-apple-silicon-is-officially-cool
Golang 在 Apple M1 下的使用笔记,来自 Filippo Valsorda (Go Team Security Lead)
M1 first impressions 24h in:
- this thing is honestly fast Rosetta 2 is kind of amazing
- many CLI tools only run under R2 for now, and that’s fine
- native makes a difference for heavy apps
- code signing is a bit annoying but makes sense, and hopefully tooling will catch up
- https://twitter.com/FiloSottile/status/1329128976929988615
《 Developing on Apple Silicon 》 https://docs.google.com/document/d/1iWUstb66v66tTVxQWNMZ1BehgNzEmykzqDCUp5l8ip8/edit
For developing in Go on Apple Silicon, there’s two main issues to be aware of:
- arm64 binaries are not codesigned automatically ( https://github.com/golang/go/issues/42684)
- amd64 binaries need GODEBUG=asyncpreemptoff=1 ( https://github.com/golang/go/issues/42700) https://twitter.com/FiloSottile/status/1329131111360983041
IDA 在 M1 Mac 上运行良好,来自 Checkra1n 团队成员 @qwertyoruiopz
M1 is actually pretty good, can’t believe the base air can handle ida like this https://twitter.com/qwertyoruiopz/status/1329152951294844932
so far so good. there’s some issues overall (eg brew currently doesn’t work well on it), but these will be sorted out and Rosetta 2 is just magic.
i just copied over my install from mac pro, so this is under rosetta 2. i’ll check later if there’s anything from hexrays in that regard
- Are 8gb enough even for ida?
- seems to handle it fine, but i am using it just to look into small machos
Accelerating TensorFlow Performance on Mac
https://blog.tensorflow.org/2020/11/accelerating-tensorflow-performance-on-mac.html
Google releases Apple Silicon-optimized version of Chrome for Mac
[Update: Now available] Google releases Apple Silicon-optimized version of Chrome for Mac
If you want to use Chrome on new Macs with Apple M1 chips, head to https://google.com/chrome/ and download the Apple Silicon version we released in M87 today! https://twitter.com/elvin_not_11/status/1328816326542905345
Does it ARM? A list of reported app support for Apple Silicon
https://doesitarm.com
https://github.com/ThatGuySam/doesitarm
M1 Mac 合盖后依然保持运行,来自 Yachen Liu
写了非常简单的一小段代码验证了一下早上的观点,确认即使在电池供电且合盖的状态下,M1 设备 CPU 依然会定期的保持活跃,和 iDevice 一样,而且这个活跃不是系统特权。
第二张图是旧的 MBA,合盖后几分钟内依然活跃,然后就彻底休眠了。 (代码中 counter 忘 ++ 了,忽略…) https://twitter.com/Blankwonder/status/1328952885841960960
关于 Rosetta 2,来自 Hector Martin
Also, remember that Apple cheated with their control over the CPU for Rosetta 2. Getting R2 x86 performance on any other ARM is impossible, due to the memory model mismatch. You have to massively slow down all loads and stores.
So Apple straight up implemented the x86 consistency model on their cores. That’s the kind of high-impact detail that makes or breaks emulation performance for a different arch. Did they do this for any other x86-isms? Nobody knows so far.
https://twitter.com/marcan42/status/1328940797174099970
Also, everyone please stop eating up Apple’s marketing bullshit and calling Rosetta 2 an “Ahead-of-Time Translator, Not An Emulator” as if it is some Fundamental Difference that Makes It Fast.
It’s a JIT emulator, with a cache, with opportunistic partial ahead of time warming.
https://twitter.com/marcan42/status/1328956667548082177
Rosetta 2 runs everything under the correct memory model
“Excited” to hear about all the data races now that people will actually execute all their code under ARMs memory model
woah wait huh i never considered whether rosetta 2 does the necessary synchronization of x86
Rosetta 2 runs everything under the correct memory model
— Sam Sneddon 🏳️⚧️ (@gsnedders) November 17, 2020