Hacker News new | ask | show | jobs
by stefan_ 847 days ago
fork() is truly the epitome of terrible design. Yet all the OS books praise it as some genius - tells you how little research has progressed...
1 comments

Have you read an "OS book" written recently?
We shall open the Tanenbaum, now in its fifth edition circa 2023, no doubt still taught to students all over the world:

> Processes are created in Linux in an especially simple manner. The fork system call creates an exact copy of the original process.

> The Linux sequence of clone plus exec is yet more orthogonal, since even more fine-grained building blocks are available. As a general rule, having a small number of orthogonal elements that can be combined in many ways leads to a small, simple, and elegant system.

Yup, still the same bullshit. It is not elegant, it is not fine-grained, it is not simple, it is certainly not small.

That book is decades old. New editions rarely change this type of fluff.