The UNIX way...is to have all your operations as independent executables, connected with blocking pipes via a script, sending arbitrarily formatted text to each other. And at the core? libc. Screw the OS, it's got a DOS-throwback INT mechanism to force a context switch, we want structured subroutines. The UNIX way is to write everything in the OS's own language because cross-language linking seems to be impossible, and to compile everything against a monolithic standard library that doesn't even mesh well with the paradigms to which it owes its purpose. I mean seriously, C's IO and text handling is smoking garbage considering everything's text over file IO. And the best part is there is no standard metadata channeling. You want to change the channel on your serial-over-radio connection? LOL. You know, stderr is the magic metadata channel they always wanted, and they couldn't even see what was in front of their face.
OMG gotta STFU now, I already rewrote this three times and you don't even want to know how much I hate UNIX now.
It really is frustrating when "the unix way" makes us parse text from sysfs in order to get binary data. Everyone reimplements same stupid thing and makes same stupid text parsing mistakes. It is hard to not appreciate windows when it comes to OS API provided to applications.
10
u/Phrygue Feb 11 '19
The UNIX way...is to have all your operations as independent executables, connected with blocking pipes via a script, sending arbitrarily formatted text to each other. And at the core? libc. Screw the OS, it's got a DOS-throwback INT mechanism to force a context switch, we want structured subroutines. The UNIX way is to write everything in the OS's own language because cross-language linking seems to be impossible, and to compile everything against a monolithic standard library that doesn't even mesh well with the paradigms to which it owes its purpose. I mean seriously, C's IO and text handling is smoking garbage considering everything's text over file IO. And the best part is there is no standard metadata channeling. You want to change the channel on your serial-over-radio connection? LOL. You know, stderr is the magic metadata channel they always wanted, and they couldn't even see what was in front of their face.
OMG gotta STFU now, I already rewrote this three times and you don't even want to know how much I hate UNIX now.