Conversation

Jarkko Sakkinen

I like Rust in kernel, and more generally in the backend but Rust command-line replicas mostly are just software bloat tbh.

#rustlang
3
0
0
I mean factors larger binaries with non-standard output, and you really have limited use for the added fanciness. They are only great at breaking backwards compatibility, if you put them into scripts.

This does not mean that Rust in command-line sucks in general. I think tools such as Starship and Typst are just great. They invent.
0
0
2

@jarkko are you referring to projects like eza that add nice-to-haves on top of existing ls functionality? I would say they meaningfully improve the CLI experience.

1
0
0
@AndreasBackx True, there's exceptions to the rule. I use exa and bat [1] :-) How do exa and eza differ anyway?

[1] https://github.com/jarkkojs/home/blob/main/.bashrc
1
0
0

@jarkko I'll let eza's GitHub repo explain that, I've been too lazy to change my ls alias from exa to eza. [1] What are some of the type of CLIs you would consider replicas? There's for example the "sudo" replacement, though considering it's a high-profile security CLI, the argument seemingly can be made it's to avoid memory-related security bugs? I've seen the argument made for non-CLI projects.

[1]: https://github.com/AndreasBackx/dotfiles/blob/main/dot_zprofile#L75

1
0
0
@AndreasBackx This sort of makes me think if I should just switch back to GNU ls...

Considering sudo-like command the more important factor is committed and experienced maintainers than implementation language tbh.

I mean this is just stupid: https://github.com/ogham/exa/issues/1243

With bat I think I live on the edge... Syntax highlighted source code dump is useful enough.
2
0
0

Jarkko Sakkinen

Edited 1 year ago
@AndreasBackx Don't get me wrong. I appreciate your comments. interesting topic.

For sudo, I think it would make sense to me in the case, if the upstream project would start to rewrite itself in Rust similarly as kernel is rewriting itself in Rust. Security is more a process than a tool.
0
0
1

@jarkko I wasn't aware of any drama (and want to stay far away). I think there are differing opinions on how exa/eza is handled and I don't know the specifics. My guess is `exa` couldn't be handed over due to lack of contact? Anyhow, I don't think it in itself makes an argument for why we should not make more modern CLI tools, regardless of language.

I am not invested in this. Happy with the discussion and please don't think I'm offended. πŸ˜…

1
0
1
@AndreasBackx comedy writing itself is not a new thing open source have to admit :---) E.g. Ulrich Drepper and EGLIBC drama is one of the classics in this area (not to insult the person, I still have cpumemory.pdf always at hand, exceptionally smart guy).
0
0
0

@jarkko Deviations from the UNIX standard are bad ideas. Deviating from GNU at this point is probably a bad idea. Do these new-fangled CLI things in Rust work the same way when I use output redirection?

0
0
0