4 ms·
Much of that code will be reimplementation, so the net LOC won't change as much the LOC written. While OSX uses some parts of BSD, which gives it that BSD flavo
by jandrewrogers 10y ago
Much of that code will be reimplementation, so the net LOC won't change as much the LOC written. While OSX uses some parts of BSD, which gives it that BSD flavor, it is also substantially a new kernel based on Mach and with many other things under the hood implemented entirely by Apple.
As for the code output, that is on the high-end of what you would expect to see but within the normal range of some highly skilled individual contributors operating within their domain expertise. Of course, this assumes they are largely left alone to do their work and aren't spending half their time in meetings, making powerpoints, etc. Back when I was plying my trade as an individual contributor, I was good for about 8,000 quality LOC per month if I was minimally interrupted, which is only a little less than the engineer in question.
- grecy 10y agoThanks. So to extend on that, if his 800 kLOC is only 6% of the Kernal, does that mean Apple's kernel is around 13 million lines? wow, I had no idea.
- mattip 10y agoAssuming no lines are removed. I often write tens if lines, commit to trigger a test, then rip out hundreds including the ones I wrote. Netcontribution - negative. I consider that a good day's work.
- icebraining 10y agohttp://www.folklore.org/StoryView.py?story=Negative_2000_Lines_Of_Code.txt http://www.folklore.org/StoryView.py?story=Negative_2000_Lin...
- dhimes 10y agoYeah but if you start a project like that it's difficult to make progress :)
- hokkos 10y agoIt seems in 2006 the Darwin XNU package was 1MLOC and the Kext another 1MLOC, so I have hard time believing that 11 others MLOC where needed for the iPhone KERNEL. https://books.google.fr/books?id=K8vUkpOXhN4C&lpg=PA49&ots=OLphYU_rYx&dq=mac%20os%20kernel%20line%20of%20code&hl=fr&pg=PA49#v=onepage&q=mac%20os%20kernel%20line%20of%20code&f=false https://books.google.fr/books?id=K8vUkpOXhN4C&lpg=PA49&ots=O... Linux 3.13 is 7 MLOC in drivers, 2 MLOC in arch, and only 139 KLOC in kernel, so it's probably the drivers that inflate a kernet size but I doubt the iphone needed so much drivers. http://unix.stackexchange.com/questions/223746/why-is-the-linux-kernel-15-million-lines-of-code http://unix.stackexchange.com/questions/223746/why-is-the-li... The guy is probably talking about changed lines (added, removed, changed) and might be liking to fiddle with its code style a lot.
- billforsternz 10y agoNote that he is talking about OSX not iOS.
- deleted 10y ago[deleted]