News for hackers. Stuff that matters.
Re:Announcing Tokio 0.1 by pcwalton on Wednesday January 11, 2017 @04:05PM (#13377474)
> Reading or writing to -1 in C is memory safe too.

Is it? It's out of bounds of any object, and therefore undefined behavior.

Re:Announcing Tokio 0.1 by tedunangst on Wednesday January 11, 2017 @05:09PM (#13377945)
File descriptor -1, as in the same thing we're unwrapping in the rust code. In C, if socket() returns -1, that's actually a monad that you can pass to bind() and listen() and accept() and then check for errors. :)