News for hackers. Stuff that matters.
Re:Deciding to rewrite getaddrinfo in rust by nickpsecurity on Tuesday February 23, 2016 @12:25PM (#11160517)
It seemed perverse to me to write our desktops and servers in C given how it was "designed:"

http://pastebin.com/UAQaWuWG

Once one understands it, getting rid of as much of it as possible makes a lot more sense. The replacement should ideally stand alone eventually, have stronger memory/type/integration safety, not assume what calls it (eg C code) will do things right, and integrate with C easily. Not sure how much Rust fits that as I lack details.

Result would've eliminated all kinds of crashes and host compromises due to C-specific errors. It is ironic that one of the best ways for a C application to be safe while using 3rd party code is avoiding C in that 3rd party code. :)

There are no comments on this comment yet.