244 points · by jamieweb · 7y ago · 104 comments
https://superuser.com/questions/546151/is-it-possible-to-com...
I'm super excited that people are still working on this! I miss having the time to go down rabbit holes, but for those that are there's are people out there watching!
They are the spiritual successors to Amit Singh's Mac OS X Internals: A Systems Approach (http://osxbook.com).
Do you know where I can read about what it would take to replace WindowManager and the rest of the desktop environment on macOS?
I would like to make my own implementation of the desktop environment, including replacing the top bar with the menus and stuff, and replacing the dock with a dock of my own, as well as replace spotlight search and Finder. Furthermore to also replace the open file dialog that is called to from programs when they open files.
While they may seem like a unified application, these are all separate components. Dock, Spotlight, and Finder are apps, and the open dialog is an XPC service.
Maybe take a look at Default Folder X or contact the dev to see how they go about this. I think they just inject into the existing implementation, but it might provide a starting point.
That seems like a necessary first step towards eventually getting a bootable ISO that can install a PureDarwin system on a blank machine, physical or virtual.
Why is PureDarwin on an older version? Lack of volunteers? Too many hacks required?
macOS has some UI advantages, its the largest reason I use it - but without cocoa, and all of the core foundations that make OSX, OSX, I just dont see the point.
Why port that kind of stuff to macOS? Obviously it isn't going to be the deployment platform, but developers will want to run that stuff locally during development. (Less important than it used to be with the popularity of Docker on Mac, although still it can be a bit more developer-friendly to run things directly on macOS instead of under Docker.)
You know that there's entire data centers just running Mac Minis as VM hosts, in order to comply with Apple's OS licensing requirements? PureDarwin can just run on AWS.
Sure, running the XCode GUI needs Cocoa. But running xcodebuild doesn't, IIRC. It just needs some other, lower-level libs, ones that (reimplementations of) are in scope for PureDarwin.
It's similar to reactos sharing userspace code with wine.
(Some people will question whether z/OS really counts as a "Unix", but like macOS, it is actually a certified Unix, and as such has greater official claim to be Unix than FreeBSD or most Linux does.)
(Addendum: I say "most Linux", because while the vast majority of Linux distributions are not certified Unix, some have been. Right now, Huawei EulerOS is a certified Unix based on a Linux distribution. Inspur K-UX is another Linux distribution which used to have Unix certification, although the certification has expired–I guess they failed to pay the renewal fees.)
What is certified as UNIX is the POSIX personality.
But we usually not used this but use posix. In fact i think that is what linux originally built against.
chocolate ice cream has some taste advantages, it's the largest reason I eat it - but without cocoa, and all of the core flavor that makes chocolate, chocolate, I just don't see the point. (like your post)
[1] https://www.amazon.com/Mac-OS-Internals-Approach-paperback/d...
> What are the big architectural differences or cool features not in Linux?
Darwin is based on XNU from NeXT, which itself is comprised of OSFMK Mach microkernel but with many of the things pulled into the kernel itself for performance. A lot of the stuff with Mach tasks/ports/messages is still there.
> Also, how hard is it to upstream changes/get drivers in mainline?
You can write your own using IOKit but they're not going to be in the mainline tree, because Apple.
And amusingly, the syscall interface from FreeBSD 4 or so.
It doesn’t seem like it’s of much use to Apple—there isn't some large community of outside contributors submitting pull requests. So why do they bother?
The problem wound up being that we leaked a sticky bit directory into part of our install, the installer inspector hid this from us, and apple changed dyld's behavior in a patch release to silently bail if it saw a directory with sticky bit set.
http://osx86drivers.sourceforge.net/ (Older) https://github.com/Mieze/IntelMausiEthernet (Latest)
I'm glad to see it continues to be maintained and published though I share the frustration other's have mentioned about how incomplete it is. There is no "more", no "less", no "halt", no "shutdown" -those are just a few of the "wtf" finds that pop up on casual examination.
I wonder if it can run OSX command line programs?