News for hackers. Stuff that matters.
Re:What Unix Cost Us [video] by clktmr on Saturday January 18, 2020 @05:43AM (#22083661)
"Everything is a file" is one of the most misunderstood concepts I encountered, to the point where people think that disk IO is involved. A file doesn't even need a filename (eg sockets).

The main point is to have a common interface for system resources, which happens to be the file api in Linux. Think of it as the base class of everything. There is a bunch of tools/code that operates on file descriptors, which you can reuse now.

Build better interfaces on top of that if you want to.

Re:What Unix Cost Us [video] by discreteevent on Saturday January 18, 2020 @05:52AM (#22083697)
Everything is a bytestream.
Re:What Unix Cost Us [video] by wbl on Saturday January 18, 2020 @09:51AM (#22084694)
Sockets depart badly from that model with special purpose setup syscalls.
Re:What Unix Cost Us [video] by clktmr on Saturday January 18, 2020 @10:30AM (#22084926)
Yeah but that's rather because the socket api is older than Linux. Underneath there is the sockfs implementation.