by blakesterz · 5y ago · 0 comments
Sometimes it just crashes. This has rarely happened on Linux. This sometimes happen on MacOS to the point where I don't trust it. At all. Ever. I have to save everything I'm working on constantly, just in case. Sometimes apps just stop working. Right now telegram just won't start. No matter what. Never happens on Linux. Sometimes it won't wake up from sleep. Never on Linux. Sometimes it loses the keyboard and/or mouse. This never happens on Linux. Sometimes the screensaver works, sometimes it doesn't. Grep is slow, waaay slower than on Linux. So are other random CLI things. How? Why? Docker... don't get me started, and don't make excuses. (~700 people at Mirantis and ~150k at Apple can't figure this out?) Everything runs slower on MacOS. Every. Thing. grep, sed, awk. Why don't sed, awk, grep, etc.. all the Linux things work quite right? I need to add something else on macOS to get them to work like they did on Linux. It's always "almost" but never do they work like I'd expect. I need to remember to turn off my monitor at night, because some nights it just randomly turns on. Never on Linux. Maybe it'll wake up, maybe not. I figured out if I unplug my headphones and/or webcam I can force it. All of these super basic things just DON'T work. It sucks. I could forgive Linux, but not an OS and Hardware made by the biggest company on the damn planet. I get it, this is faster than a 4 year old laptop. But that's not what I'm comparing it to. I'm comparing it to a 5 year old system I built myself from random parts that runs an open system operating system. That's a pretty low bar, and it doesn't win.
If you mean how they work, like command line arguments and such (and not just speed), that's because macOS is based on BSD and thus using the BSD and not GNU versions. That's not really a "not right" thing, it's just different, and would be the same if you used any other BSD like OpenBSD, FreeBSD, etc.
I used GNU ones without the `g` prefix for a year or two and never ran into trouble because of it.
Take the example of 'tar' that slowly evolved and some time even changed its default behaviour. e.g. what to do when untaring a folder but there's already a symlink with the same name as the folder, do you erase the symlink and create a folder or do you untar the folder in the symlink? Between centos 5 and 7 this changed... Causing me some amount of pain.
hostname stopped supporting '_' in host names. Could have raised a warning, have added a '-pedantic' option but no.
hostname stopped assigning the permanent host name with the 'hostname myhostname' command and now you need to use hostnamectl. Could have left the 'old' feature and make hostnamectl whine instead, but no.
ifconfig the deprecated tool subtly changed the order of fields too and now the MAC address is not in the same place as before, breaking scripts that trusted that not to change.
df changed its syntax, adding or removing a new-line some time ago.
Yeah thinking back we shouldn't have used the standard tools and expected them not to change.
So, now, whenever I see in code review some bash person using 'standard' tools to get info that could be gathered through procfs or sysfs, I instead ask they use procfs, sysfs or ioctls and be done with it.
This 2 year old HN post shows the performance difference between Gnu grep and BSD grep on Macos:
sed 4.8 - 15 Jan 2021
awk 5.1.1 - 28 Oct 2021
grep 3.7 - 14 Aug 2021
What am I missing here?
M1 Air here that I've had for almost a year with zero issues, and I also use Firefox and watch a lot of youtube.
It's been this way since OSX day 1 IIRC, so it's a little surprising the apple versions are still apparently inferior (if the grandparent poster is anything to go by, haven't used em in years), but it's conceivable the CLI just isn't an apple priority.
I wish they'd just give up already and copy as much (of the CLI-relevant stuff) as possible from linux, and accept that they'll need to give up a tiny amount of control over a small sliver of their OS - a sliver that they never wrote in the first place and also can't really change the api of, because that would break all kinds of things, which renders their ability to close source somewhat moot anyhow. And most users never use this stuff! The linux-conventional gnu variants are well maintained and usable in both MS world and linux world - having CLI scripts that are more easily portable across three OS's would be great. Apple's toxic control-freak nature really hurts here, and mostly just their users. I really don't get it.
Anyhow, there are workarounds (but e.g. homebrew is hit and miss), it's mostly just an annoyance they're even necessary.
A better phrasing: They were unable to close-source an existing GPL'd compiler.
Apple is very fond of locking down their hardware. Google took a very strong stance against the AGPL-even banning it from their own public code repo service before they shut it down.
I've loved my M1 MBA but I purchased it specifically knowing I have a primary x86 workstation to fallback on for heavier tasks and I'll often give up trying to install some dep/run some program on the MBA and switch to that. It still works great as a general purpose device and I do some dev on it but if you're looking to do all your dev on it, I'd be cautious.
I feel like many many engineers like me would easily get a reliable laptop with MacBook Pro like specs. The problem is that simply does not exist.
Excellent hidpi display.
Ryzen 5000 series CPU with its low power draw.
Good build quality.
Reliable support system.
Non weird components such that a recent release of popular Linux distribution would “just work” without needing manual tweaks.
In my experience, you get 3/5 in the above list at best. Framework laptop hits several of those points but misses out on Ryzen. Another contender on my list is ASUS 14 OLED with Ryzen - I’m worried about their support system though.
[link redacted]
Probably not any better either. If you want to run docker on a mac you probably should not, but the second best strategy is probably to bite the bullet and run an actual VM in which you do your docker stuff.
Odds are a proper and well maintained hypervisor you keep running will be a lot better than whatever DfM does.
It makes the case for stuff like GiHub Codespaces or sshing into a remote machine via VS Code a lot more manageable. For everything else, the M1 is a beast, and even emulated, you can get a really good Linux experience (Windows too for that matter — games, obviously not withstanding), but containers? Nah. It’s worse than the already sad state on Intel Macs.
About 6x worse perf in my specific case.
None of these things happen to people, much less altogether.
>Everything runs slower on MacOS. Every. Thing.
The experience of everybody who bought an M1 is everything (or almost) running far snappier.
>Everything runs slower on MacOS. Every. Thing. grep, sed, awk.
So, is it "everything" or is it "grep, sed, awk"? And what is your case exactly? Benchmarked them on the mac and on some Linux system with the same file? Maybe did it on a network attached drive?
>Why don't sed, awk, grep, etc.. all the Linux things work quite right? I need to add something else on macOS to get them to work like they did on Linux.
You seem not to understand this POSIX system or versioning. Apple has older (or BSD) versions of those tools. Use Brew or similar and install the GNU versions, which would be like you know them from Linux. Not that the BSD versions are broken, they're just different.
> What you describe is not a Mac Mini with some OS or HW bug, it's a broken one. Don't know what your issue is, if it is hardware, or it was pwned, or has 2-3 incompatible Rosetta apps wrecking havoc. But I'd get it replaced.
> None of these things happen to people, much less altogether.
> The experience of everybody who bought an M1 is everything (or almost) running far snappier.
Especially since there are reports of the same thing as described happening qll over the comments here.
I did not give due credit to the rest of the comment, it was quite well written. I apologize for that coldtea.
The whole reason Docker exists makes complaining about its performance on non-linux operating systems asinine.
> Why don't sed, awk, grep, etc.. all the Linux things work quite right?
Because MacOS is BSD-based and those tools aren't "Linux" things. You can install the GNU equivalents easily if you dislike them.
> I could forgive Linux, but not an OS and Hardware made by the biggest company on the damn planet.
Software development doesn't particularly care about the fact that Apple is the biggest company on the planet. The pooled resources going into development of linux is quite substantial and yet it too still has plenty of software issues. LTS kernels can have hundreds of patches because software development is hard no matter how many eyes you have looking at it.
TIL there's a single "whole" reason Docker exists.
Please, enlighten me, what exactly is that reason?
> When running on Linux, Docker uses the resource isolation features of the Linux kernel (such as cgroups and kernel namespaces) and a union-capable file system (such as OverlayFS)to allow containers to run within a single Linux instance, avoiding the overhead of starting and maintaining virtual machines.[12] Docker on macOS uses a Linux virtual machine to run the containers.
Point being, Apple has zero barriers to making Mach look like an existing interface to userspace a la FreeBSD. They can take advantage of Linux's stable ABI and add the necessary Linux interfaces for native Linux containers support, and it could be performant.
The whole x86 on ARM problem seems like the more difficult one to make performant from where I'm sitting, but there's no shortage of claims to the contrary saying x86 emulation on the M1 is fast enough even for demanding video games.
If it's "to provide a standardized unit of software that allows developers to isolate their app from its environment, solving the 'it works on my machine' headache", I don't see how it makes expecting good performance asinine.
Linux's ABI is stable, MacOS can definitely implement it... there's nothing in Docker/Linux containers in general, forcing MacOS to incur virtualization overhead.
To serve as an easier to use facade on top of Linux kernel virtualization options. It only works on Linux - or with an emulated Linux.
Why should all Unix implementations work just like Linux? What's so special about Linux? Why doesn't Linux work like BSD?
Just a random opinion. Others disagree and prefer the BSD way. Concrete reasons include code-base simplicity.
https://github.com/coreutils/coreutils/blob/master/src/yes.c
https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c
Take the example you provided, of yes(1). Most of the extra code relates to optimizations, and ensuring that the entire argv is echoed back rather than just the first argument. Because of this, even a very simple example like:
"yes hello world"
will behave differently on BSD vs GNU, with the GNU version likely being what users expect.
Also, every browser tab with text entered was a random crap shoot if you were going to lose it by going to another tab to copy something and return to paste. Nothing was predictable, youor work was just constantly lost of the device. Almost no apps seemed to persist things when the OS forced them to shut down, except maybe the highest rated dedicated artist and note taking stuff. But even Apple's own apps (like the bug reporting tool) often didn't bother.
And by 2nd gen, I mean first update after a major redesign.
My maxed out 2013 Macbook Pro (the last model that runs linux without issue) has finally worn itself out and I’m in the market for a new laptop, but I can’t find a new laptop worth spending money on. I’m currently doing all my work on my desktop just hoping I don’t have to travel any time soon.
It seems to be black and white: users either have no problems, or ALL the problems.
I started to get "the curse" after 8 years with my 2012 MBP. It started randomly turning off. Not crashing, just turning off! I replaced the battery because that was the only warning I was getting. But it can no longer run any macOS. Even mavericks. It crashes randomly. It went from rock solid to fragile as an elderly lady with osteoporosis rollerskating on a cobblestone path.
Now it is my primary Ubuntu machine since the touchpad works so much batter than Ubuntu running on my Lenovo Yoga and it has better performance. Zero turning off problems. It's been on for months running a VNC server.
ag and rg are other fast options.
The speed of GNU grep vs BSD grep is discussed on the BSD mailing lists here: https://lists.freebsd.org/pipermail/freebsd-current/2010-Aug...
I also don't see any memory issues, etc.
Most people don't give any sources.
This is the GNU in GNU/Linux :)
I really like GNU coreutils, and other basic GNU utilities like GNU sed, find, and awk. I know some BSD folks see them as ‘bloated’ and ‘non-standard’, but to me they're plenty fast and they feel complete.
When I used macOS for a while for a job, it surprised me how much I'd come to rely on the features and behavior of certain GNU utilities that are apparently peculiar to them. But I miss 'em when they're gone.
Did you actually tried to replace Apple garbage version of command line utils with latest one from GNU? It's kind a obvioius that OOTB version of utils will be much slower since Apple stopped updating GNU versions once license been changed to GPLv3. And BSD version of utils they ship with newer macOS is also usually inferior.
That being said, Apple still knows their audience. I imagine there will be a lot of chronic Twitter browsers and Pages advocates who fall in love with this machine, and I think that's fine. I do have to wonder what constitutes a "premium" device if not for the hardware though. Everything I do on modern MacOS feels like it's prodding me to go spend $8 on a tool that I'd have for free on Linux or even Windows. Booting up Big Sur makes me long for my old a1502 running Mojave and handling some frankly ridiculous workloads while staying rock-solid in terms of stability. If anything, I applaud Apple for coming straight out and telling me that the future of their devices isn't for me.
That is delightfully insulting. Real developers would never use Macs, of course.
Yeah, that’s so annoying. Wanna browse a .zip file (not extract it)? Either `brew install file-roller` with its non-macOS UI, or use shady paid shovelware. Wanna record your desktop audio as part of a screencast? It’s so complicated [0] and often involves shady stuff [1] or software that costs $99 [2]. What about Windows? There’s (mediocre) ZIP browsing support in Explorer since Me, 7-Zip is free and trustworthy, and OBS just has a desktop audio input built-in (and I also could do that easily in 2005). Linux? You’ll probably get a working archive tool built-in (file-roller, ark, whatever) and OBS desktop audio just works.
[0] https://billykorando.com/2020/04/14/capturing-desktop-and-zo... [1] https://www.youtube.com/watch?v=H4VPbMvBuLg [2] https://rogueamoeba.com/loopback/
It doesn't have to be a screencast, it's kind of a convoluted process regardless of which operating system you're using [1]. If I'm not mistaken OBS is using the built-in virtual loopback devices available through pulseaudio, but MacOS does not include a virtual loopback device by default, hence requiring a third party one such as Blackhole or loopback.
> ...and often involves shady stuff
...what shady stuff are we talking about here? Blackhole [2] is open source software. It's about as shady as any of the (several) linux audio systems.
I'm curious what you mean by "raw performance"? I'm no Apple enthusiast, but AFAIK the M1 is the fastest laptop CPU on the market. There are faster desktop CPUs, but I don't think that makes it "a phone CPU shoehorned into a clamshell body" — it beats pretty much any laptop CPU in existence in the benchmarks I've seen.
Amusingly, this is exactly how I felt when using Windows.
What's the appeal?
I do not even think about these things on macOS or Windows.
At this point my time is too valuable for that shit. I used to fiddle a lot with my computers when I was 16. Now I want them to work.
Clunkier and buggies depend entirely on which distro you are comparing it with, though I find clunkier at least to be true.
Buggier than linux WMs and desktops is a pretty high bar to beat, as long as you're not including homebrew in the equation (worst, most necessary bit of software for Mac ever).
It runs the software I need. full stop