4 ms·
I find it ironic that the "system" that you're writing Rust code for is entirely built in C :)
by kahlonel 8y ago
I find it ironic that the "system" that you're writing Rust code for is entirely built in C :)
- kbenson 8y agoNot necessarily. While the Windows kernel is supposed to be written in C, my understanding is that the majority/almost all of the rest of the system is written in C++. Also, I think a good portion of OS X is/was written in Objective C, which some newer portion being written in Swift.
- gnfurlong 8y agoWasn't OSX originally a fork of FreeBSD? Parts of it may have been replaced over time, but I would think that a large portion is still written in C.
- kbenson 8y agoI think the terminal includes a lot of GNU utilities, so that's likely true. That doesn't actually conflict with anything I said though. I'm sure the GUI code is quite large, given that the system is meant to be maintained and usable from entirely within that context.
- platinumrad 8y agoOS X is basically the XNU kernel (written mostly in C) + the FreeBSD userland (written mostly in C) + a few GNU utilities (written mostly in C) + a bunch of Apple stuff like iTunes, Safari, etc. (Written mostly in C++ and Objective-C). It's not really a "fork" of FreeBSD.
- pjmlp 8y agoNeXTSTEP drivers were written in Objective-C, and OS X drivers are written in a C++ subset.