Live data from Hacker News

MacOS 10.12 Open Source Components

opensource.apple.com

131–140 of 170 posts

Re: MacOS 10.12 Open Source Components

#131

Earlier quoted context omitted.

OK, but this page is made by Apple.

When you have a name for over a decade, you tend to have it hard coded in a bunch of places...

Yeah, my company moved offices a few months back and we had the old location in a surprising number of places around the codebase.

Re: MacOS 10.12 Open Source Components

#132
post #65

Earlier quoted context omitted.

It was never really meant to be "OS 10", despite what the 'correct way' to say it was. Pure marketing. If it was really meant to be "OS 10", then they wouldn't have versions like "OS X 10.6", they'd just have "OS X.6" or "OS X.VI". How many people do you hear saying "OS ten ten point six"?

>The current version of Mac OS is Mac OS X (pronounced "Mac O-S ten"). https://support.apple.com/kb/TA22541?locale=en_US

I think he meant that it was not supposed to be "Mac Oh Es Ten Ten Nine Two", but rather "Mac Oh Es Ten Nine Two" when referring to Mac OS X 10.9.2. Do you think people said "Mac Oh Es Nine Nine One", or "Mac Oh Es Nine One" for Mac OS 9.1?

Re: MacOS 10.12 Open Source Components

#133

Oh, how I miss having a working USB stack... https://opensource.apple.com/source/IOUSBFamily/IOUSBFamily-... They re-wrote IOUSBFamily (or at least they said they did) and it's buggy as all heck whenever you try use a USB 3 hub (since the 10.9 rewrite). I'd fix it myself, but it's no longer open source. Plus, to really rub salt in the wound, there's no longer a USB debugging kext. Yay, Apple...

I have some short USB 2.0 extension cables that I use to plug between the Macbook and USB 3 devices - to reduce them to USB 2.0. Because if I for example try to copy more than a few MB to a USB 3 external HD, the Mac freezes. Every single time. So that's working well then.

Re: MacOS 10.12 Open Source Components

#134
post #108

Heh, I went spelunking through the bsd/mach layers of the code, was quite a bit of fun. Looks like they've only released the x86_64 and x86 versions of the code? I don't see any ARM in there. Anyways, found gems like this [1]: /* * File: sched_prim.c * Author: Avadis Tevanian, Jr. * Date: 1986 * * Scheduling primitives * */ I hope to leave a legacy like this someday, hopefully someone will appreciate the author's com…

They are never releasing the full source code. Apple strips the ARM architecture, blocks of code for features they do not want to be open source, and the internal documentation before throwing these dumps over the wall. Here are some hints of what they are doing to process the original sources: https://opensource.apple.com/source/hfs/hfs-366.1.1/make_ope...

BTW some of their open source code (like XNU, the kernel) is on GitHub: https://github.com/opensource-apple/xnu

Re: MacOS 10.12 Open Source Components

#135

Earlier quoted context omitted.

>The current version of Mac OS is Mac OS X (pronounced "Mac O-S ten"). https://support.apple.com/kb/TA22541?locale=en_US

I think he meant that it was not supposed to be "Mac Oh Es Ten Ten Nine Two", but rather "Mac Oh Es Ten Nine Two" when referring to Mac OS X 10.9.2. Do you think people said "Mac Oh Es Nine Nine One", or "Mac Oh Es Nine One" for Mac OS 9.1?

I think you write (and say as /ten/) "X" as the major version if you're also using the non-numeric minor version: "Mac OS X Snow Leopard"; but you omit it when using the numeric minor version so as to also use the Arabic major version: "Mac OS 10.6". You say /ten/ either way and never twice.

Re: MacOS 10.12 Open Source Components

#136
post #108

Earlier quoted context omitted.

They are never releasing the full source code. Apple strips the ARM architecture, blocks of code for features they do not want to be open source, and the internal documentation before throwing these dumps over the wall. Here are some hints of what they are doing to process the original sources: https://opensource.apple.com/source/hfs/hfs-366.1.1/make_ope...

BTW some of their open source code (like XNU, the kernel) is on GitHub: https://github.com/opensource-apple/xnu

> https://github.com/opensource-apple

> MIRROR ONLY, UNOFFICIALLY

Someone took it and uploaded it to GitHub. This was not published by Apple. Also has not been updated in years.

Re: MacOS 10.12 Open Source Components

#137

Heh, I went spelunking through the bsd/mach layers of the code, was quite a bit of fun. Looks like they've only released the x86_64 and x86 versions of the code? I don't see any ARM in there. Anyways, found gems like this [1]: /* * File: sched_prim.c * Author: Avadis Tevanian, Jr. * Date: 1986 * * Scheduling primitives * */ I hope to leave a legacy like this someday, hopefully someone will appreciate the author's com…

For giggles, here are some comments I grepped from the WinNT kernel: https://gist.github.com/turbo/75f0905275c29a3049f983cfe273ea...

Oh man, this is hilarious!

../tdi/tcpip/tcp/tcpsend.c:// STUPID FUCKING COMPILER generates incorrect code for this.

../fastfat/allocsup.c:// God knows what state we left the disk allocation in.

../dd/histgram/cmd/perfhist/perfhist.c:// the heck? we are gods anyways!

../nthals/halntp/mips/xxinitnt.c:// to the HAL by the NT god. Hail Caesar!

../w32/ntgdi/client/dcquery.c:// if cjotma == 0, this is HONEST to God unicode font, can not convert

../w32/ntgdi/fondrv/tt/ttfd/fontfile.h:// honest to God msft unicode font

../w32/ntgdi/fondrv/tt/ttfd/tt.h:// uint16 reservedPad; // only God knows why

../se/ctlpcqos.c:// Appease the compiler Gods.

../cntfs/create.c:// Here is the "M A R K [REDACTED]" hack from hell.

../afd/disconn.c:// Hack-O-Rama. TDI has a fundamental flaw in that it is often impossible

../afd/disconn.c:// Yet another hack to keep it from crashing

../fastfat/read.c:// Deal with stupid people who open the volume DASD with

../afd/recvdg.c:// Bomb off if the user is trying to do something stupid, like

Re: MacOS 10.12 Open Source Components

#138
post #136

Earlier quoted context omitted.

BTW some of their open source code (like XNU, the kernel) is on GitHub: https://github.com/opensource-apple/xnu

> https://github.com/opensource-apple > MIRROR ONLY, UNOFFICIALLY Someone took it and uploaded it to GitHub. This was not published by Apple. Also has not been updated in years.

It was updated two months ago in September 15th 2016: https://github.com/opensource-apple/xnu/pull/4

Re: MacOS 10.12 Open Source Components

#139

Earlier quoted context omitted.

> Furthermore, I'd challenge you to name one open source project that can be shipped AS-IS as a product. Don't even say the Linux kernel, that has like what 2% market share? GitLab. Postgres. Atom. Docker (debatable). I could go on, but to be fair I am a bit of a hoarder of interesting oss. Re the Linux kernel: isn't it way higher than 2% if you count commercial and industrial usage? Also Android devices.

Calling Android devices Linux is not productive.

He was referring specifically to Android's use of the Linux kernel. He was not calling Android "Linux", though I think doing so would be fair in a general sense.

Re: MacOS 10.12 Open Source Components

#140
post #136

Earlier quoted context omitted.

> https://github.com/opensource-apple > MIRROR ONLY, UNOFFICIALLY Someone took it and uploaded it to GitHub. This was not published by Apple. Also has not been updated in years.

It was updated two months ago in September 15th 2016: https://github.com/opensource-apple/xnu/pull/4

Okay, right. I was mislead as all commits use a different author (opensource-apple is only the committer), so the activity graph on the profile is mostly empty.
Post reply on HN