From the ls replacement: "Why spend your time squinting at black and white text?" Uh, because squinting at blue-on-black text is much more difficult. Human eyes focus best at yellow-green, they see that as brightest, and they don't even have long-wavelength (blue) receptors in the fovea. I also looked at the alternatives to ps, top, cat, find, and du. My overall feeling is that these are really not like UNIX tools at…
Common *nix commands written in Rust
11–20 of 56 posts
Re: Common *nix commands written in Rust
#12There are sometimes good reasons, usually related to features although sometimes related to performance, to prefer newer utilities like ripgrep over older ones like grep. Implementation language is not one of them.
I came here to ask, thought not outright say, what is it with all the "... in rust" stuff that keeps getting posted. It's starting to feel more like a marketing exercise than anything actually software related (happy to be corrected on this though).
There are fast implementations (C) and there are somewhat safe implementations (Python, Java, ...). If I were to place Rust in this hierarcy - it is both fast AND safe, and there's rarely a good reason to replace it, so you've software that's already at the top of the hierarcy. This means that the particular implementation is likely to be the one that doesn't get replaced.
"...in Rust" has a lot of implications other than being an exercise in marketing.
Re: Common *nix commands written in Rust
#13From the ls replacement: "Why spend your time squinting at black and white text?" Uh, because squinting at blue-on-black text is much more difficult. Human eyes focus best at yellow-green, they see that as brightest, and they don't even have long-wavelength (blue) receptors in the fovea. I also looked at the alternatives to ps, top, cat, find, and du. My overall feeling is that these are really not like UNIX tools at…
My distro's ls already does coloring by default. It turns it off somehow if it detects the output is a pipe, so that "ls | less" still works. It also turns off multi-column in that case, so "ls | wc -l" counts directory entries.
Re: Common *nix commands written in Rust
#14Earlier quoted context omitted.
I think it's just that Rust brings a fairly new set of semantics to system code (memory safe, but no GC), and people are pretty excited to rethink large parts of the software stack we all depend on.
That's but rust has been a known quantity for 5(?) years at least now?
There are still quite a few folks out there who don't know about Rust, Go, or anything else that's gotten popular over the past few years here.
Re: Common *nix commands written in Rust
#15And it's Rust! https://www.nushell.sh/
Re: Common *nix commands written in Rust
#16From the ls replacement: "Why spend your time squinting at black and white text?" Uh, because squinting at blue-on-black text is much more difficult. Human eyes focus best at yellow-green, they see that as brightest, and they don't even have long-wavelength (blue) receptors in the fovea. I also looked at the alternatives to ps, top, cat, find, and du. My overall feeling is that these are really not like UNIX tools at…
Re: Common *nix commands written in Rust
#17Earlier quoted context omitted.
I came here to ask, thought not outright say, what is it with all the "... in rust" stuff that keeps getting posted. It's starting to feel more like a marketing exercise than anything actually software related (happy to be corrected on this though).
Consider this. If a program is written in Python, and becomes popular, it is usually a matter of time before it gets rewritten in, and replaced by an implementation in a faster language. There are fast implementations (C) and there are somewhat safe implementations (Python, Java, ...). If I were to place Rust in this hierarcy - it is both fast AND safe, and there's rarely a good reason to replace it, so you've softwa…
Re: Common *nix commands written in Rust
#18Earlier quoted context omitted.
I came here to ask, thought not outright say, what is it with all the "... in rust" stuff that keeps getting posted. It's starting to feel more like a marketing exercise than anything actually software related (happy to be corrected on this though).
Consider this. If a program is written in Python, and becomes popular, it is usually a matter of time before it gets rewritten in, and replaced by an implementation in a faster language. There are fast implementations (C) and there are somewhat safe implementations (Python, Java, ...). If I were to place Rust in this hierarcy - it is both fast AND safe, and there's rarely a good reason to replace it, so you've softwa…
We don't need to re-stratify development so that only people with expensive computers with > 4 gigs of memory can compile what they run.
Re: Common *nix commands written in Rust
#19nushell is a better idea though - structured output, no text scraping. And it's Rust! https://www.nushell.sh/
Re: Common *nix commands written in Rust
#20Earlier quoted context omitted.
Consider this. If a program is written in Python, and becomes popular, it is usually a matter of time before it gets rewritten in, and replaced by an implementation in a faster language. There are fast implementations (C) and there are somewhat safe implementations (Python, Java, ...). If I were to place Rust in this hierarcy - it is both fast AND safe, and there's rarely a good reason to replace it, so you've softwa…
Except Rust isn't a direct replacement for c. Rust's system requirements are perhaps acceptable for what'll be normal in computers five years from now. We don't need to re-stratify development so that only people with expensive computers with > 4 gigs of memory can compile what they run.
Now, by default the "cargo" build uses all CPU threads, so if you have a 32 core Threadripper then yes, running 64 simultaneous "rustc" compiles will use 6 or 7 gigabytes.