222 points · by giuliomagnifico · 5y ago · 107 comments
https://kernelshaman.blogspot.com/2021/01/building-xnu-for-m...
That's a little sad, is this recent? I'm pretty sure that at least as recently as El Capitan, you didn't loose any obvious functionality by recompiling the kernel.
I had a hell of a time a few months ago trying to compile the Security framework from OS X 10.9.5 (I wanted to update the cipher suites!). It needs to link to a bunch of internal, closed Apple code.
I did eventually get something to compile, so there's that. But I had to pull in a bunch of reverse-engineered headers from the Darling project and similar efforts, and whatever it was that xCode finally spit out didn't seem to actually run.
These instructions are a lot better than the ones that I had to follow a few years back - I might try it, just need to find a guinea pig :-)
"Paradoxically enough, moving as quickly as possible is not necessarily desirable. Users tend to get frustrated once they realize how little time their Mac really spends to crush them at low levels. In the interest of promoting harmonious Human - Machine relations, we enforce minimum response times."
https://opensource.apple.com/source/Chess/Chess-408/Sources/...
But frankly, I wouldn't trade it for "You are not expected to understand this".
- The "Checking for Audit Risk" progress bar in TurboTax/etc software, which is shown while comparing about a dozen floating point values, perhaps after a division step. This takes imperceptable time, but the appearance of "doing work" projects value to humans.
- Comfort Noise (very low volume pseudo white noise) played into a VOIP phone to replicate the ambient inductive noise in analog lines. This assures humans that their handset is not broken.
- Engine Noise generated by some (nearly silent) electric vehicles. This has a huge safety component, so it's not frivolous at all!
The scammy part is where they push you into a nearly impossible to cancel subscription with promotional pricing as a way of "saving" vs an expensive one-time payment for one report.
The loading bar UI/UX correctly gives the impression that the report will be thorough. In my experience, they are quite good. So that's just fine.
The goal of the former (skeuomorphism) is to help users understand; the goal of the latter is to misdirect users, either 1) so they have a better experience (like Apple here) or 2) so they are willing to fork out more money. Users are willing to pay more when they think more work is being done (c.f. TurboTax "finding" the most deductions possible, or a public record website "searching" through "all the databases" for a person).
https://opensource.apple.com/source/Chess/Chess-408/Styles/G...
Wonder what their workplace policy is. It’s pretty much “don’t ask, don’t tell” around here.
But I never saw any on-premises use of illegal drugs, and there were policies around the serving of alcohol.
In my brief stint at Apple, only two things seemed to matter; what you could deliver to your org, and whether your manager liked you (highly correlated with the first).
Edit: I guess there was a third thing, don’t do anything that could screw up the brand at all, but that “mattered” only in that it was table stakes.
These notably don't include much of mac/iOS proprietary user interface components, drivers, or system frameworks - basically everything that makes macOS/iOS remotely interesting. The source code drops are helpful for the creation of other Unix-like operating systems based on the open source macOS kernel (see also the defunct Open/PureDarwin projects), and the released apps are sometimes ported (e.g. the GnuStep project has some older version of Chess.app and others ported over). There's some off and on efforts in the FreeBSD community to port Apple's open source launchd init system [1]. All in all though, there's really not all that much interest in reusing the code from these code drops by the open source community and any efforts seem to lack staying power.
The released source most practical value is most likely derived by researchers investigating macOS/iOS internals and being able to inspect the source code for some of it. As a curiosity it looks like you're able to build and run your own XNU kernel on macOS [2] (what is this, Linux?), but I can't personally attest to the process.
[1]: e.g. https://github.com/freebsd/openlaunchd
[2]: https://kernelshaman.blogspot.com/2018/12/building-xnu-for-m...
Broken promises of liberal freedom.
What kind of promise do you feel you have been given?
Big Sur came out several months ago, so if this release contained GPL code Apple would potentially be in trouble. (But it doesn't, so they're not.)
There is also some original work from Apple.
At least the name sounds promising.
None of this is licensed such that they can use it directly, but having the source available can speed up the reverse engineering process such that they can rewrite their own version of the code that interacts with the hardware.
This is why open source developers actively avoid reading leaked sources from proprietary projects for example. "open source" code with too restrictive licenses is no different from closed source code.
Source/explanation in their words instead of mine: https://asahilinux.org/copyright/ (See: "Reverse engineering policy")
Not sure what you're referring to here?
[1] https://opensource.apple.com/source/IOGraphics/IOGraphics-58...
[2] https://asahilinux.org/copyright/ - See "Referencing Other Open Source Code"
There might be some useful things in there. If they released the code/ patches in an easier to review way. As it is, it's fairly difficult to see if anything
This one was most interesting as a non-C or OS developer:
http://www.nongnu.org/libunwind/
> The API additionally provides the means to manipulate the preserved (callee-saved) state of each call-frame and to resume execution at any point in the call-chain (non-local goto).
Sounds like fun...
The released the code they wrote for compatibility with other people's file systems, and a filesystem Apple developed in the 80s. They didn't release the code for their own, proprietary (and non-ancient) filesystems. It would be nice if they did, but you can see why they didn't.
This isn't a new page.
Such an approach would be way more complicated if the open source release included version control history. These code drops already always come months after the macOS releases.
There's a serious argument that a source dump without commits is not the "preferred form of the work for making modifications".
Beggars can't be choosers but I'm not begging, I'm evaluating them as a corporate citizen.