News for hackers. Stuff that matters.
Re:Ask HN: What was your most humbling learning moment? by Karrot_Kream on Monday June 03, 2024 @03:32AM (#40560214)
We only think of Unix programs as simple because we have many more abstractions nowadays. But you should compare a Unix program with DOS programs (probably CP/M also but I never wrote those myself) at the time. Poking directly at the hardware, using segmented memory, dealing with interrupts. The idea that a program should be well behaved, should accept things an inputs, should push outputs, and should have a virtual address space are actually huge abstractions over what could just be a block of code run on a spare OS. I'm not saying that microservices are better than monoliths, just that Unix programs aren't as simple as we think they are in a world where we're managing servers like cattle and not like pets.
Re:Ask HN: What was your most humbling learning moment? by throwaway2037 on Tuesday June 04, 2024 @12:22AM (#40570663)

    > should have a virtual address space
I'm pretty sure that most of the GNU POSIX command line tools were written before virtual address space (VAS) was common. And, as I understand, VAS is hidden from the programmer behind magical malloc().