Re:More Rust compared to C++
by aliakhtar on Monday April 06, 2015 @09:26PM
(#9331541)
Is there anything that compares Rust's performance vs other languages?
[ Parent
| on HN ]
Re:More Rust compared to C++
by steveklabnik on Monday April 06, 2015 @09:42PM
(#9331596)
Like all performance questions, the answer requires another question: "at what?"
There's been a number of different benchmarks, in a bunch of places. We generally end up in the same realm as C++, sometimes faster, sometimes slower.
Also, many benchmark authors seem to accidentally compile Rust code without optimizations. We're considering switching Cargo's defaults because of this.
I'd be interested in seeing Rust included in https://www.techempower.com/benchmarks/
Re:More Rust compared to C++
by steveklabnik on Tuesday April 07, 2015 @10:24AM
(#9334231)
Yeah, it might be neat. It's still unclear how good Rust is going to be at website backends, though there's a lot of people putting hard work into it. Once it all matures, seems good.
I'm considering C++ for an NLP related project. Normally I use Java/Scala, but the memory usage when you have to store a lot of strings, is pretty high. (The Stanford NLP library recommends at least 3-4Gb of Ram)
I'm considering C++ for the lower memory requirements, but obviously the syntax, etc aren't ideal. Do you have any opinion on how Rust would perform in that scenario?
Re:More Rust compared to C++
by steveklabnik on Wednesday April 08, 2015 @11:40AM
(#9341460)
I'm not mega familliar with NLP as a field, but abandoning Java means you abandon Weka, right? While Rust the language might be good for this, there's basically zero libraries, so you'll be doing all that work from scratch.
Re:More Rust compared to C++
by b08aa8b0dcfce on Monday April 06, 2015 @09:44PM
(#9331599)
From the Rust website: "Rust is a systems programming language that runs blazingly fast". It says: blazingly fast. What more do you need? Benchmarks? Pft.