News for hackers. Stuff that matters.
Re:Rust is mostly safety by wtetzner on Thursday December 29, 2016 @10:53PM (#13282385)
> To be clear, I like Rust. I've been following it for years, and I'm disappointed that it's not an adequate replacement for C++

Just out of curiosity, what is it about Rust that means it's an inadequate replacement for C++?

Re:Rust is mostly safety by zerofan on Thursday December 29, 2016 @11:19PM (#13282482)
There are many things you could dismiss as style issues, but here is one relating to performance. Rust does not (yet) have integer generics. If I use Eigen (the C++ library), I can declare a matrix of size 6x9 and have the allocation live (cheaply) on the stack. I do this kind of thing frequently (not always 6x9), and in Rust I would pay for heap allocated matrices. The cost in performance can be huge. Maybe this will get fixed in the near future.