4 ms·
I like the M1 in theory but my work’s weird crusty express app produces an empty response on localhost on the M1. It works on everything else of course and even
by andy_ppp 6y ago
I like the M1 in theory but my work’s weird crusty express app produces an empty response on localhost on the M1. It works on everything else of course and even all the microservices work (also express) but at this point I’m stumped. Maybe I should just try x86 node for now?
I think my point is, for developers it’s not working out that great in a lot of cases, especially docker and so on. Performance is not everything if you were hoping to get some actual work done!
- javajosh 6y agoYes I'd be surprised if the fiddly open-source parts of non-XCode toolchains are reliably being built for M1 (or ARM in general) yet. An interesting downside to the M1 macs for sure, at least for a while. Thanks for bringing it up.
- thoughtsimple 6y agoNow that Homebrew is up and running on Apple Silicon, I haven't found too much that doesn't work. MacPorts seems to mostly working too though at this point brew seems more up to date. If you want to get an M1 Mac for development, I haven't found too many things that don't work and most work very well. The compile speed on even an M1 MacBook Air is incredible.
- ngcc_hk 6y agowaiting for this and get I can now exchange my developer one coupon with a real one ...
- martinald 6y agoActually, I've found the opposite. XCode stuff I found janky, poorly thought out and requiring arcane compiler flags set and a bunch of cryptic error messages. Homebrew works great on M1. I use it a lot and have only had one problem (some gem on ruby doesn't compile properly) where I've had to switch to the x86 version, but it all seems to work side by side perfectly and you can just prefix any command with _arch x86-64_ if you do need x86.
- deleted 6y ago[deleted]
- tambourine_man 6y agoHave you tried running under Rosetta?
- thoughtsimple 6y agoDocker tech preview seems to work pretty well so I'm not sure what you mean "especially docker". The Docker M1 preview also supports x86_64 emulation with QEmu reasonably well. https://docs.docker.com/docker-for-mac/apple-m1/ https://docs.docker.com/docker-for-mac/apple-m1/
- asah 6y agoI've been using docker on the M1 and it's been fine. Also cross-compiling works great (buildx).
- jpillora 6y agoI use Docker (preview) on my M1 everyday for work and it's great. You can run `aarm64` containers natively, or you can emulate, for example, with `--platform linux/amd64`. I'm guessing you're running into issues with C dependencies. You can go also go full Rosetta: create an alias to your terminal, right-click enable "Run in Rosetta", open it, then everything you run from this terminal will also be Rosetta (amd64), and you run Rosetta homebrew, node, etc. You can confirm what is running under Rosetta in Activity Monitor. I've recently switched my default homebrew from Rosetta (/usr/local) to native (/opt), by switching my PATHs around since I was mostly waiting for go1.16 to arrive.
- joubert 6y ago> You can go also go full Rosetta: create an alias to your terminal, right-click enable "Run in Rosetta", open it, then everything you run from this terminal will also be Rosetta (amd64), and you run Rosetta homebrew, node, etc. You can confirm what is running under Rosetta in Activity Monitor. Great tip! Didn’t know. Thanks.