by lordnacho · 4y ago · 0 comments
Performance wise it compiles my code much much faster than my 2019.
In terms of battery I can take it for a full day's work in town doing the same coding work, and there's no need to start looking for a charging point. Not even "just in case". I don't even have to think about maybe closing one of the apps, I just run it with 5 IDEs and 15 projects open, though that's probably down to having plenty of RAM rather than the CPU.
The new architecture also doesn't make much difference. Stuff just works, though homebrew needs to be told it's not on Intel anymore (terraform breaks weirdly if you don't do this). There seem to be plenty of M1 versions for your generic coder stuff.
I agree.
The M1 architecture is fabulous. But the fact they've managed to cram it into a laptop, without throttling performance and without killing battery life, infact quite the opposite on both fronts, i.e. amazing performance and amazing battery life. Its quite the tour de force.
Hats off to all those at Apple. That's some hardcore engineering there.
On and I've only managed to get the fans to audibly spin after several minutes of compiling an Android app with a huge native library on an x86 NDK for 4 architectures.
It literally takes 15 seconds to join a meeting with one of the fastest user computers available.
Absolutely horrible garbage of an app.
Microsoft has zero incentive to fix it, because they have a captive audience i. Their enterprise customers.
Even WhatsApp, which seemed to be a pretty light app, run smoother on Firefox than chrome or electron.
The beach ball occurs when some UI process does not service its event loop. This can be an issue with the process, or it can be caused because that process is contending for resources with the compilation processes.
If the critical resource that's causing a beachball here is CPU, there's two very easy paths forward: either modify your compilation scripts to use fewer threads than the system has physical performance cores, or run the compilation at a higher nice level. In either case the UI process should be able to get CPU when it needs it and not beachball. The higher nice level is generally both the easier and more effective solution, since it will allow the compilation process to continue to use all cores when UI processes are not scheduled.
If the critical resource is memory the system will page, which will turn the critical resource into disk bandwidth. Fixes specific to memory usage here are to get more memory (not really actionable), or to reduce parallelism on the build process.
If the critical resource is disk bandwidth, this is the hardest problem to fix. To my knowledge MacOS doesn't provide good tools for managing disk priority. If the disk bandwidth being used is to access build-related files (source, object files, etc) rather than swap, one possibility is to use a thunderbolt-connected external SSD for the build artifacts, leaving the internal storage for swap and for the UI program. However, if your build process is using so many disk operations that it's starving a UI program, you're likely to see a performance hit going to a slower external SSD.
It is not that the M-series chips can never trigger a beachball but that there are significantly fewer scenarios where that happens to the point that many users never find themselves in those scenarios. You see their enthusiasm as fanboyism and they could see you as being grumpy, but the you are just both seeing different parts of a distribution curve.
Also SpaceX doesn’t suck, you suck. :P
Chances are it has nothing to do with M1 and everything to do with your SSD being overwhelmed.
If you have this plus some of the other electron hogs (teams, slack, a browser with 30 tabs of stack overflow), your system does have a proper load.
Still no perceptible fan noise :)
There were a few 16" MBP models that could be equipped with 64gb of memory, before the Apple silicon transition.
Also worth noting, a lot of the older Intel chips also had memory capacities that went beyond 64 gigs. In theory Apple could have shipped a 128gb MBP.
Designing your own chip is a ballsy thing to do. I think it might be one of the most underrated innovations Apple has ever done. Tim Cook is not Steve Jobs. But he's still delivering on innovation where it's typically stalled.
Where else are they going to invest this money? Having your own components is the most obvious way to strengthen their moat.
If they took a step outside consumer electronics and invested into a new market, or invented something never seen before, which they can do 3 times over, then yeah, that would be ballsy.
It’s absolutely ballsy when you look at what happened with PowerPC (where they made the opposite decision to great effect), and the failure of competing attempts to do this such as Windows on ARM.
They effectively bet a full generation of laptop sales on the premise it would be a success despite their largest competitor attempting and failing to make the migration.
They didn't - they obviously had tested performance of these CPUs and knew it was excellent before deciding to switch to them. They were only risking whatever amount they invested.
PowerPC was unpopular and dying. ARM was the most popular instruction set on the planet before Apple developed M1.
Apple has tight control over software on their platform, they say jump, everyone asks 'how high. Apple dropped 32 bit support overnight and everyone has to deal with it. Microsoft still has support for 16 bit software in Windows 10. Open Process manager on Windows, Discord, Steam and much of other software is still 32 bit. No-one is compiling for Windows for ARM, Noone is using their Store. Some corportaes are still on windows 7, the world took 15 years to get off windows XP and I have seen some ATMs still running on it. Very different market.
Don't forget what Apple has a virtually no variations in the hardware, compared to Windows.
Not my definition of balsy project. Balsy would be risking the business level of funding. This is peanuts money level of risk. They didn’t told anyone about it either, so no reputation risk also (how many failed projects at this point on apple we don’t even hear about?).
So, in my humble opinion, not risky nor balsy. But a smart and rewarding move? FUCK YES!
The last time I felt the machine was faster than I thought it to be was 1984 running Turbo Pascal on a PC/XT. No PC or Mac since then really felt insanely fast to develop on. Until this one.
I run World Of Tanks, which runs in WINE emulator, which runs on Rosetta, and it's as fast as it was on my iMac. I have no clue how this works.
* the memory model is slightly more relaxed
* instruction decoding is obviously simpler, and while the impact of x86 decoding was not that major at a point, I suspect it has increased with time
What matters is mostly the microarchitecture of Apple, and, yes, the 5nm.
IIRC at the beginning of the Zen projet, AMD wanted to do 2 versions: 1 with an x86 frontend, and one with an ARM one. They would probably have had very similar performance profiles, and I suspect at most a dozen percent of diff for energy consumption. Intel is currently very far from that to reach a core perf similar to the one of the M1.
- No 32 bit support
- Fewer other legacy ISA features to support
- big.LITTLE style efficiency/ performance cores (until latest generation Intel)
On the first two fewer transistors wasted mean more to spend elsewhere (eg on caches).
Can you elaborate why decode would become more problematic over time?
Hopefully I got that right. Now in theory Intel and AMD do employ tricks to optimize x86 decode. If I recall this correctly, they decide opportunistically several possible paths simultaneously and start speculatively executing the ones that turn out to be valid instructions. Likely this works pretty well (+ the variable length means better utilization of the code cache).
I bought an MBP with M1 two months ago. The main reason was to run video conferencing software, which so far it has done well at. That it is a powerful machine yet small and lightweight was a plus for it as well - its easy portability.
I bought it for some secondary reasons, but those have not panned out yet. In mid-February I tried to compile a program with the release version of Android Studio, the project had NDK (C language) components. Even with Rosetta it was not working ( https://github.com/android/ndk/issues/1299 ). Google said they had M1 support coming down in Android Studio canary version and other fixes coming out as well in the future. I'm not in a rush, but it compiles on my Ubuntu box and on Intel-based Macs, but not M1 out of the box yet (not without having to fiddle around to do it any how).
For my Android projects that were fully Java/Kotlin based, the M1 did compile fast though.
Also, Fidelity said they have an application called Active Trader Pro that works on Macs. It's not something I ever used, or that I would probably use regularly, but I decided to check it out. It would not work for me either, and support forums made mention of difficulties it has on M1.
One thing I haven't tried yet is loading Unity 3d and futzing around with it, hopefully when I have the time to do that it will be working.
Still happy with my purchase as it's working for my primary need, and more Android Studio support seems to be coming, and it is not a big rush to me. It's probably good that Apple is pulling software into a world where it supports ARM (kind of weird Android code primarily targets ARM devices, yet has trouble compiling on ARM devices). I had heard about how fast things compile on it, but it was even faster than I expected. So all in all I like it, and hopefully more software will be supported as time goes on.