247 points · by mbreese · 5y ago · 122 comments
That moment is now here. Sure, it's only a subset of the market, but Mac devices are a significant percentage of developer computers (28%), way higher than in the general population (17%).
https://insights.stackoverflow.com/survey/2020#technology-de...
https://en.wikipedia.org/wiki/Usage_share_of_operating_syste...
Likewise, with the return of timesharing, anyone can log into their assigned server slot and work just like I was doing 30 years ago.
https://medium.com/incerto/the-most-intolerant-wins-the-dict...
But things are a bit different now, it’s much more convenient to work on a laptop, so most people do that. Maybe the pendulum will swing the other way and we’ll start timesharing again, with laptops as terminals instead of standalone machines, but even if that’s possible in theory, there are few providers of ARM in the cloud at the moment. It’s a chicken and egg problem and I think Linus is right, it’s going to take pressure from devs, most of whom IMO don’t care enough to make a difference.
The tipping point will be when deploying to x86 becomes annoying (for some measure of annoying). Right now, even though I’d personally like to deploy to ARM (or at least give it a red hot go), my cloud provider (Vultr) doesn’t support it yet, and I don’t personally plan to go ARM on my desktop until next year. But I’m a CPU enthusiast. Most people wouldn’t bother to go the the extra effort.
That may have contributed to their demise.
Now, cross compiling does suck. I have a few raspberry pis in a kubernetes cluster at home and am looking forward to the native compilation that this new release provides.
So it matters in that not everyone currently has tooling working for ARM, but Apple silicon is going to push that along real fast.
Idem if I run ARM locally, I'll deploy on ARM.
Of course this does not apply to interpreted languages or any of the modern languages (Go, Rust, Zig) that make cross compiling _somewhat_ easier.
https://www.anandtech.com/show/16610/nvidia-unveils-grace-a-...
There's just one final remaining vendor dependency that we're running via qemu on x86 that's holding me back at this stage.
We are looking to switch over to Graviton ASAP. The cost/performance ratio is just too appealing to ignore now.
Running docker containers on it was OK, and cross-compiling my golang monitoring stuff was easy enough.
But over time I just wanted to use my existing pipelines and deploy x86 stuff. So in the end it was a novelty, and while cheaper than an amd64 host it was eventually replaced so that I had a consistent set of deployment targets.
But I only did a x86 Linux container as a test, and it wasn't a great experience. Seemed visibly slower and crashed once.
So whether or not this suits your needs, I feel, depends on to what degree you need the "contract" that your local environment is the same as prod, because you're probably using x86 Linux/BSD boxes.
If Amazon and Nvidia's ARM server chips really pick up steam, then the M1 Macbooks would be the premiere local device.
I seriously doubt this is true if you include desktop computers in the comparison.
I didn’t realize this for a while myself, as the docker CLI tools are all free software. The “Desktop” variants are not, and embed spyware.
Do you have any more information about this? I tried to google it but couldn't find anything. Not that I doubt that this is happening...
First link is https://docs.docker.com/ee/telemetry/
Clicking it it redirects me to https://docs.mirantis.com/containers/v3.0/dockeree-products/...
The other advantage of docker machine is that you can also ask for a cloud instance to run dockerd, and that's actually how gitlab-runner does it
Replacing Docker for Mac's kubernetes support is done with either kind or minikube depending on ones desire to have on a modern version versus "yeah, yeah, just run the VM and make kubectl work"
None of those setups have any provided gui/menubar widget support, or similar hand holding, which is why I started this the way I did
Just changing the kernel under which the container runs can break havoc on the "reproducible" build.
(although yes, the base filesystem might be different)
http://www.jakubkonka.com/2021/01/21/llvm-tls-apple-silicon....
I don’t think Apple would allow it, but it seems like an interesting antitrust wedge if they blocked it.
By native I mean:
FROM macos:10.13.2
RUN xcode-build <...>
but apple doesn't really understand containers.(I mean the "you're not the target market" understand)
I feel like the real solution I should be going with is Parallels or qemu. Just wanted to know if there was something I'm missing.
I went and checked the issue when i saw they've made a formal release but it doesn't appear to be resolved. So maybe keep it in mind if anyone has issues trying to use docker now :)
Edit: I see Docker has closed the issue and encouraged people to simply use ARM containers instead. Unfortunately that's not an option for cross-compilation when you're using x86 servers. Something for people to keep in mind when deciding what laptop to buy next, i guess.
You don't actually need to run the same architecture you compile for, you just need a toolchain and environment that matches your target and a compiler for your machine's architecture that knows how to write to your target architecture.
It sounds more complicated than it is, really. How you go about doing this might vary by language, but as Docker for M1 takes off, you'll see more and more guides for doing "hard" things like compiling to x86.
Also, if you find that you're building Docker images on x86 machines and want to build Docker images for Arm as well, have a look at https://docs.docker.com/buildx/working-with-buildx/#build-mu... for example.
I recently had to wipe my machine to remove Rosetta (there's no "uninstall"), and saw quite a significant boost in performance across the board.