News for hackers. Stuff that matters.
Re:Unix System Call Timeouts by loeg on Sunday March 12, 2017 @11:22PM (#13855007)
> I'm not picking on you specifically but when people say things like "Unix gives you brain damage" this is what they mean.

You understand that's still offensive and implies I have brain damage, right?

> every application should use a bespoke protocol to do simple things like working with a network file system.

It doesn't have to be bespoke, but I agree that the Unix VFS interface isn't appropriate for it.

What operating system are you aware of that provides a mkdir interface with timeout? Windows' CreateDirectory() does not. OS X is just BSD. We're departing the realm of mainstream systems. QNX mkdir does not appear to take a timeout. Plan9 uses create() with a DIR flag, which does not take a timeout. Help me out here?

Re:Unix System Call Timeouts by xenadu02 on Monday March 13, 2017 @02:39AM (#13855702)
> You understand that's still offensive and implies I have brain damage, right?

My apologize, I didn't intend that. I mean that some people are used to Unix and use their familiarity as a post-hoc rationalization for some of the poorly designed aspects of it.

To be clear: my position is that several Unix APIs are bad designs. Rather than making excuses for them we should demand better cross-platform APIs.

> It doesn't have to be bespoke, but I agree that the Unix VFS interface isn't appropriate for it.

I don't agree. Network filesystems should be mountable and traversable just like local filesystems, but the OS and libraries should do more to be async and multi-thread aware, as should applications.

Re:Unix System Call Timeouts by pjmlp on Monday March 13, 2017 @11:12AM (#13858435)
> Rather than making excuses for them we should demand better cross-platform APIs.

We already have them in the form of language runtimes.

POSIX as cross-platform API is mostly relevant to C.

Even C++ is moving beyond POSIX, by providing proper OS abstractions on the standard library.

Re:Unix System Call Timeouts by fiddlerwoaroof on Monday March 13, 2017 @01:10AM (#13855376)
I suspect old systems like Multics did.

But, this is the sort of thing that Richard Gabriel is talking about in worse is better[1]

[1]: https://www.dreamsongs.com/WorseIsBetter.html