News for hackers. Stuff that matters.
Re:Switching customers from Linux to BSD because boring is good by kstenerud on Saturday October 12, 2024 @06:27AM (#41818081)
I've also read the original blog that this article spawns from. The gist of it is: "I switched to BSD during Linux's bad period, and now I'm comfortable with it so I'll stick with it".

And hey, more power to you. But the thing is, the world has moved on. Linux is stable now. Linux containerization and VM tech is good now. The storage technologies are cross-platform now (I've had zero data loss since using zfs). The moat has shrunk.

So then, what are we left with?

* BSD is less common, so there are fewer CVEs on it. Hackers aren't stupid; they target popular platforms. You get plenty of CVEs for Apple systems (which are BSD, btw).

* Of course, since BSD is less common, it's harder to find employees who are wizards with it.

* Everyone releases for Linux first, so on some things you either have to wait, or do it yourself (or stick it in a Linux VM, at which point...)

* Licensing bites people all the time, but it's hardly a catastrophic thing; merely the normal politics that occur when things get big enough, and enough money is involved. You win by paying good money to hire the better legal team.

So what true benefit is there to using BSD over Linux? Other than satisfying your own self or going with what you're already familiar with, not much.

Re:Switching customers from Linux to BSD because boring is good by technothrasher on Saturday October 12, 2024 @07:03AM (#41818235)
> the world has moved on

This is exactly why I migrated my systems to Linux. I still prefer BSD honestly, having "grown up" with SunOS and then moving to FreeBSD very early, it's where I'm most comfortable. But it started to get so that it was noticably harder to keep my software up to date and functioning on BSD when it is often an afterthought for many projects now, or only supported by third party work.

I may not like it (in fact, I don't) but Linux is definitely the easier path for most things these days.

Re:Switching customers from Linux to BSD because boring is good by timc3 on Saturday October 12, 2024 @07:07AM (#41818249)
I have run Linux, BSD and other unix for a long time (since the 90s and the very first Slackware) and continue to this day.

I prefer BSD because to me it’s more logical, it rarely changes, the documentation is first class and it’s very stable (yes more so than Linux). Plus I like its networking stack and PF

I prefer Linux when I need to run something popular and want a community.

I prefer Solaris clones for storage.

I prefer macOS for doing music, graphics and every day work and for laptops.

It’s no problem jumping between them. BSD is my favorite though.

Re:Switching customers from Linux to BSD because boring is good by parkcedar on Saturday October 12, 2024 @07:05AM (#41818238)
Mac isn’t really BSD, it’s a common misconception. It shares some of the userland code, but it’s a vastly different kernel (derived from the Mach microkernel). The userland has diverged quite significantly now too. Though, I guess it probably is closer to BSD than Linux
Re:Switching customers from Linux to BSD because boring is good by BSDobelix on Saturday October 12, 2024 @07:26AM (#41818323)
>but it’s a vastly different kernel (derived from the Mach microkernel).

XNU is a combination of a FreeBSD-Kernel (Networking, Filesystem, etc) and a Mach-Kernel (scheduling, ipc, virtual-memory etc):

https://en.wikipedia.org/wiki/XNU

https://www.youtube.com/watch?v=-7GMHB3Plc8

Re:Switching customers from Linux to BSD because boring is good by parkcedar on Saturday October 12, 2024 @07:48AM (#41818425)
Yes, but since it was initially created I believe a lot of it has been rewritten. Eg, the filesystem. I suspect the memory system is different these days too, since macOS handles compressed memory quite differently (though not sure how that gets implemented under the hood).

FreeBSD is like a great grandparent, related but still very different.

Re:Switching customers from Linux to BSD because boring is good by aeadio on Saturday October 12, 2024 @11:19AM (#41819726)
Every extant Unix has been rewritten since the original AT&T code, Ship of Theseus style. We still consider them members of the Unix family, because they can trace their lineage directly. One could built a Git repo showing every code change from the original Unix release through modern day BSDs, if only we had granular commit info going back that far.

In fact, it's been partially done for FreeBSD, https://github.com/dspinellis/unix-history-repo

We could in principle do something similar for Darwin (if we had enough of the historical code), which is the core of MacOS, which is based on NeXT, which was based on BSD with a new kernel. That makes MacOS every bit as much a member of the Unix/BSD family as FreeBSD is.

Re:Switching customers from Linux to BSD because boring is good by sph on Saturday October 12, 2024 @07:28AM (#41818332)
No one really cares about the kernel internals, its origin or the license of it. What is prominent is the user-space components (i.e. shell and other binaries). macOS is closer to other BSDs than Linux is, as Linux usually ships with GNU libs and utilities.
Re:Switching customers from Linux to BSD because boring is good by parkcedar on Saturday October 12, 2024 @07:53AM (#41818447)
You hardly notice the binaries though, especially since gnu cmd line utils are so similar anyway. You’d expect the c libs to be similar, but they’re not really (about as different as Mac to Linux anyway).
Re:Switching customers from Linux to BSD because boring is good by sph on Saturday October 12, 2024 @09:30AM (#41818932)
GNU utils are not similar to BSD utils. My hardest time adjusting to macOS was learning that some command line options I was so used to didn't exist or didn't work the same way.

Sure, you have ls and df, but they behave similarly only on the surface.

Re:Switching customers from Linux to BSD because boring is good by aeadio on Saturday October 12, 2024 @11:12AM (#41819686)
Not a misconception at all.

Mac OS X was essentially a continuation of NeXTSTEP, which is BSD with a new novel kernel. In fact, if you look into the research history of the Mach kernel at the core of XNU, it was intended as a novel kernel _for_ BSD. NeXT went and hired one of the key people behind Mach (Avie Tevanian), and he became one of the core systems guy that designed NeXTSTEP as a full OS around Mach.

Early in the proliferation of the Unix family, member systems went in one of two directions -- they based their OS on upstream AT&T Unix, or they based it on Berkley's BSD, and added their own features on top. NeXT was one of the latter. Famously, the original SunOS also was.

While Sun would eventually work closely with AT&T to unify their codebase with upstream, NeXT made no such change. NeXTSTEP stayed BSD-based.

The other extant BSDs like FreeBSD and NetBSD were also based directly on the original BSD code, through 386BSD.

If I have my history correct, Apple would later bring in code improvements from both NetBSD and FreeBSD, including some kernel code, and newer parts of the FreeBSD userland, to replace their older NeXT userland which was based on now-outdated 4.3BSD code. I think this is where the confusion comes in. People assume MacOS is a only "technically" a Unix by way of having borrowed some code from NetBSD and FreeBSD. They don't realize that it's fully and truly a BSD and Unix by way of having been built from NeXT and tracing its lineage directly through the original Berkeley Software Distribution. That code they borrowed was replacing older code, also BSD-derived.