Earlier quoted context omitted.
I was competing against some C and C++ software developers in Advent of Code with efficient solutions, and my Rust solutions came out faster each time. Might want to check your facts.
That doesnt mean anything. Try a little real software for instance.
Rust is Software's Salvation
161–170 of 182 posts
Re: Rust is Software's Salvation
#162Earlier quoted context omitted.
I was competing against some C and C++ software developers in Advent of Code with efficient solutions, and my Rust solutions came out faster each time. Might want to check your facts.
That doesnt mean anything. Try a little real software for instance.
Re: Rust is Software's Salvation
#163The amount of hype Rust is getting is not going to end well for Rust. This reminds me of Ruby during 2007-2010 where it went from Patron Saint to Scapegoat for every startup that failed using it. Ruby survived it, and I'm sure Rust will too, but that doesn't make it obnoxious for everyone else who inevitably gets swept up in the craze and crash. Programming is hard. Programming will always be hard. Better/newer tools…
The echoes of Golang hype right now are somewhat ominous. A few years ago it was "concurrency primitives are going to change your life" and now it's "lifetime/ownership primitives are going to change your life." I am somewhat disappointed that we still feel the need to create entirely new toolchains and rewrite everything just to support what should be an incremental improvement. But at a certain point, a lot of the…
Re: Rust is Software's Salvation
#164Re: Rust is Software's Salvation
#165Re: Rust is Software's Salvation
#166Earlier quoted context omitted.
Like ripgrep?
Question, grep is multi-threaded?
Since you chose to be cute, I'm going to take a guess that you think this means the comparison between the tools is unfair. If that's an accurate interpretation, then I will say that your question is irrelevant because ripgrep is faster or as fast as GNU grep on benchmarks using a single thread too. In fact, that's the whole point! It says so right in the project's README.
Re: Rust is Software's Salvation
#167Earlier quoted context omitted.
You mean this? https://github.com/mmstick/parallel
No, like: crypto, math, compression, encoding/decoding. Any example?
Re: Rust is Software's Salvation
#168Earlier quoted context omitted.
Question, grep is multi-threaded?
GNU grep is not multi-threaded. Since you chose to be cute, I'm going to take a guess that you think this means the comparison between the tools is unfair. If that's an accurate interpretation, then I will say that your question is irrelevant because ripgrep is faster or as fast as GNU grep on benchmarks using a single thread too. In fact, that's the whole point! It says so right in the project's README. http://blog.…
Re: Rust is Software's Salvation
#169Re: Rust is Software's Salvation
#170Earlier quoted context omitted.
GNU grep is not multi-threaded. Since you chose to be cute, I'm going to take a guess that you think this means the comparison between the tools is unfair. If that's an accurate interpretation, then I will say that your question is irrelevant because ripgrep is faster or as fast as GNU grep on benchmarks using a single thread too. In fact, that's the whole point! It says so right in the project's README. http://blog.…
Ok, interesting analysis. I will look more on Rust and maybe try something myself. But by reading your other posts about optimizing Rust to do search, it seems to require a lot of experience to tune Rust code.
Optimization tricks in Rust are the same as you'll find in C++. It might be worth you comparing the C++ implementation of Snappy with my Rust implementation, for example. You'll see the same kinds of tricks employed in C++ as in Rust (avoiding memcpy in favor of unaligned loads/stores).