Originally posted by jacob
View Post
Announcement
Collapse
No announcement yet.
Rust-Written Replacement To GNU Coreutils Progressing, Some Binaries Now Faster
Collapse
X
-
Originally posted by poncho524 View PostAda does have free compilers. It's part of GCC.
- Likes 7
Comment
-
Originally posted by re:fi.64 View Post..
- Rust's built-in data structures (e.g. their Has map) tend to be pretty well optimized compared to the average basic C implementation
Take a look at Nicolas' blog post to learn a bit more on the topic.
Update (Dec 10, 2021): I have added some extra information worth reading at the bottom of this post.
- Likes 2
Comment
-
Originally posted by LuukD View Post
I have to object here. Std library's HashMap implementation is not known for being very fast (the std library team chose safety over speed - so a hash collision free algorithm is used.). There are plenty of crates providing much faster algorithms but these do not provide the same guarantees.
Take a look at Nicolas' blog post to learn a bit more on the topic.
I do think Rust's performance advantage is mainly because the Rust ecosystem is so much nicer. Because it has a much richer type system you can make much nicer library APIs, and because it's so much easier to integrate dependencies it's also much nicer to use those libraries. A lot of the functionality being built for these tools is being made available to the Rust ecosystem in the form of libraries, for example the functionality for reading/setting SELinux filesystem data, so it benefits even those who don't use the CLI tools.
Kind of disappointing to see people complaining about the licensing. This isn't some anti-GNU conspiracy and it's not even about safety, I think most people are just working on this because they want a small Rust project to work on and making small CLI utilities like this is a perfect scope for some hobby programming. MIT/Apache2 is the standard licensing in the Rust ecosystem, and in Rust as I said it really pays off if you integrate easily with the rest of the ecosystem. No surprise they chose MIT.
- Likes 6
Comment
-
Originally posted by jacob View Post
It does now, but it came too late. Ada's window of opportunity was in the 1980s. By the time GNAT arrived, C++ had already taken the spot. It was inferior in virtually every way, but it was cheap, accessible and available.
- Likes 1
Comment
-
Originally posted by dec05eba View Post
ripgrep is not comparable to these other tools. ripgrep is multi-threaded while these other tools are not. If you use grep with something like gnu parallel it will run as fast or faster than ripgrep. I have used grep in single large files at work and grep is simply much faster.
But parallelism is just awesome in Rust. The language just makes it too convenient not to use it. Computers have many cores these days, better to make use of them if we can. Instead of using 'find' I use ripgrep - it is so much faster.
C is absolutely cool and fast and I do not think Rust is 'faster' per-se. Some times it is, some times it isn't. As always, it depends. But Rust does make some pretty cool guarantees C/C++ cannot. Like being data-race free!
- Likes 3
Comment
-
Originally posted by zcansi View Post
Kind of disappointing to see people complaining about the licensing. This isn't some anti-GNU conspiracy and it's not even about safety, I think most people are just working on this because they want a small Rust project to work on and making small CLI utilities like this is a perfect scope for some hobby programming. MIT/Apache2 is the standard licensing in the Rust ecosystem, and in Rust as I said it really pays off if you integrate easily with the rest of the ecosystem. No surprise they chose MIT.
I find it really weird to see OSS enthousiasts make such a fuss over software being released with a permissive license. Everyone can use it, so can they. The MIT style licenses are chosen to increase adoption and I think it paid off. If the license had been restrictive, I do not think Rust would have had the backing and support it has today.
- Likes 5
Comment
-
Originally posted by poncho524 View Post
Not later than rust.
- Likes 8
Comment
-
Originally posted by LuukD View Post
I have to object here. Std library's HashMap implementation is not known for being very fast (the std library team chose safety over speed - so a hash collision free algorithm is used.).
Comment
Comment