News for hackers. Stuff that matters.
Re:uTox – Free, Secure Instant Messaging by bobdole1971 on Wednesday May 20, 2015 @07:06PM (#9579949)
Speaking of that, I wonder why uTox & Tox weren't made in memory safe languages in the first place. There could be many possible reasons, so I won't bother speculating.
Re:uTox – Free, Secure Instant Messaging by seagreen on Wednesday May 20, 2015 @07:41PM (#9580111)
Developer malpractice. Nothing security critical should be written in non-memory safe languages, unless you have no other option (like some embedded systems code).

I'm not saying this to be mean. I've written lots of bad bugs myself. Humans are fallible-- that's why we have guards on saws, count pills twice in the pharmacy, and use modern languages when we're not in a sandbox.

Re:uTox – Free, Secure Instant Messaging by irungentoo on Wednesday May 20, 2015 @07:12PM (#9579978)
Just build it with asan and you will get all the safety, memory usage and slowness of a memory safe language.
Re:uTox – Free, Secure Instant Messaging by bobdole1971 on Wednesday May 20, 2015 @07:30PM (#9580049)
You'd need UBsan as well, and even that doesn't catch everything. Regarding memory usage/slowness: why not OCaml, D, or Rust?
Re:uTox – Free, Secure Instant Messaging by chc on Wednesday May 20, 2015 @07:37PM (#9580081)
Rust only recently hit 1.0, so it's pretty obvious why somebody would not have built their software using that.
Re:uTox – Free, Secure Instant Messaging by Jfreegman on Wednesday May 20, 2015 @07:50PM (#9580146)
Also, current benchmarks show Rust to be about ~3x slower than C, making it more comparable to Go or Java.
Re:uTox – Free, Secure Instant Messaging by chc on Wednesday May 20, 2015 @08:02PM (#9580198)
Interesting. Do you know of any good, recent benchmarks of Rust? I haven't seen a whole lot. The Benchmarks Game mostly appears to show Rust being closer than that in general, though the Rust benchmarks seem to be kind of crap.
Re:uTox – Free, Secure Instant Messaging by steveklabnik on Wednesday May 20, 2015 @09:39PM (#9580510)
A few months back, we were beating C on some benchmarks, though with the focus on semantics for 1.0, I'm sure there were some regressions.
Re:uTox – Free, Secure Instant Messaging by bobdole1971 on Wednesday May 20, 2015 @07:42PM (#9580118)
Yes, my mistake.