3 ms·
I always wonder about this, I wonder how many lines of code from the 70s are running in my iPhone.
by user3939382 4y ago
I always wonder about this, I wonder how many lines of code from the 70s are running in my iPhone.
- ncmncm 4y ago'70s, likely not. But zlib code is probably copied in a hundred, maybe a thousand times, in a dozen versions.
- user3939382 4y agoI figure there must be at least some from the original BSD code.
- ncmncm 4y agoMacOSX has a great deal of BSD in it. iOS, maybe not, although it is a fair bet that its TCP/IP code originated in BSD 4. But anyway that code did not come from Bell Labs.
- skissane 4y ago> MacOSX has a great deal of BSD in it. iOS, maybe not The XNU kernel is largely the same across its different variants (macOS/iOS/tvOS/watchOS/bridgeOS). The XNU kernel contains a massive chunk of BSD code (originally 4.3BSD, later updated with enhancements from FreeBSD), and most of that code will be there in all variants. The big area in which macOS has much more BSD code than iOS would be user space, since iOS is missing Unix command line tools present in macOS. (Although, you can install them if you jailbreak it, and I assume Apple's internal builds for their own developers would include many of them.)
- retrac 4y agoThere's definitely some code in BSD that dates to around 1980 largely untouched since. But probably not much older than that. It was heavily rewritten around that time.