logoalt Hacker News

torginus • yesterday at 10:56 PM • 1 reply • view on HN

Why is Unix so great? I have worked with Linux for many-many years, and I feel like I understand most of the programming model of how to write applications as K&R intended, yet I am unimpressed.

Just what is so good about Unix/Linux that has allowed people to be so incorrigibly smug bout themselves?

Multiuser? The PC has deprecated the Terminal-Server model by the 90s.

Piping together C programs? I think this model has kinda sorta failed as well. Most people would agree shells are better implemented as a fast scripting-language, rather than a chain of C programs passing text around.

I was taught that the Unix philosophy is writing a shell script and gluing these small programs together, orchestrated via a shell script. But this model has failed to scale up in complexity, even inside the Unix world. There are no more web servers that handle requests like this. Instead of lex/bison grammars, GCC people have made their compiler into a monolith. The Linux kernel is a huge monolith.

It's the typical sanctimonious religious mentality - people preaching things they do not themselves follow, repeated at every level of the clergy

Unix design lends itself to scheduling programs interacting via pipes/files written in a synchronous, blocking manner, but tying IO to threads has been accepted as a performance mistake for various reasons, and nowadays io_uring is what the cool kids use.

But if you don't code like this, and nobody really does nowadays, what does that make fork(), other than a cool novelty?

I don't wanna shill Windows, but at no point in my life did anyone doing things on Windows, but people still built stuff on it, and other people used said stuff without major complaints. Yet Linux/Unix has been always presented as this morally and technically superior environment and shilled hard.

But when I asked the question of 'Why is Linux better?', the few people who have offered me something other than smug condescension, said things like 'fork() is cool', 'every config is a textfile', 'you can tunnel everything through SSH'

Yes these things are cool, but computers can do a lot of stuff other than this, and there are no magical Linux specific answers to be found for those.


Replies

solyin • yesterday at 11:05 PM

> Piping together C programs? I think this model has kinda sorta failed as well. Most people would agree shells are better implemented as a fast scripting-language, rather than a chain of C programs passing text around.

I think you missed the point, which wasn't the C part, but the piping together part. it doesn't matter the language, the point is to be able to pipe programs at each other.