VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
Rust Programs Every Linux User Should Know About DistroTube

Rust Programs Every Linux User Should Know About DistroTube

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Rust Programs Every Linux User Should Know About DistroTube It seems like every new program is written in Rust these days. In fact, many older programs are being rewritten in Rust, including a lot of the standard shell utilities. Today, I wanted to briefly mention seven Rust programs that I have installed that I think you should know about. - https://starship.rs/ - Starship Prompt - https://the.exa.website/ - exa - https://github.com/sharkdp/bat - bat - https://github.com/BurntSushi/ripgrep - ripgrep (rg) - https://github.com/sharkdp/fd - fd - https://github.com/XAMPPRocky/tokei - tokei - https://github.com/dalance/procs - procs
Date: 2022-03-30

Comments and reviews: 10


Rust is basically C++ with an extremely strict compiler with far improved error messaging for developers. Rust is focused on avoiding bad security practices. You cannot compile code that has glaring security problems. It will stop and force you to fix your code and it Is pretty good about giving you a meaningful error message for the compile failure. Rust is far more opinionated and security focused than C++ which allows a developer to do whatever they want without much complaint, providing it compiles. Rust will stop someone from compiling bad code. Rust won't remove all security issues but it covers the big ones that are most common among most security exploits. This is why there is so much talk about using Rust for systems programming such as an OS kernel. Linux is looking to allow device drivers to be written in Rust. But that isn't the only reason to choose Rust for any development project. It's a very nice language and that compiler still gives you much better feedback when a compile fails. Lots of people have been dipping their toes into Rust and that is why there are so many nifty Rust programs. Rust programs can be highly performant.
reply

Rust will be extremely useful for firmware and driver software because of it-s default immutability and memory safety at compile time. It is less susceptible to hacks comparable to C because of it-s memory safety at compile time. People who use it will not be required to procure as many updates to patch vulnerabilities because. It doesn-t require a GC like C++ while having similar or better performance comparable to C at the system level. Even OS kernels would benefit to having some amount of code created in rust because of it-s compatibility to run code with the C languages and others. I-ve seen people create games with it as well implementing APIs such as OpenGL. I wouldn-t be surprised if Rust or a Rust like language becomes the #1 most used programming language in 20 years.
reply

Great stuff. I always seem to get something good from every video. I don't have a linux machine right now, but I have been putting all of this knowledge to use in my WSL/openSUSE setup. Granted, not everything wants to run on Wayland, but most things do it just fine.
A quick edit of my alias list and I can now see folders and files by color and sorted. Before, I couldn't tell a folder from a file. Awesome.
For FD, I set an alias for -find- to search where I am and I set -search- to search from the / directory. Sweet.

reply

I would probably start using these all right away, but much of the work I do is on company servers into which I cannot install what ever I fancy :/
So I think that except for Alacritty and Fish shell, I have to stick with the old ones for now so I don't remember which commands are available on which computers...
Thanks for the list though, it is nice to see that more and more Rust programs like -bottom- to replace -htop- are coming!

reply

You could think of the Rust programming language as a improved C++, meaning safer memory management because it does not allow dangling pointers or null pointers. There is more to it, but it provides some memory 'safety' features while maintaining or improving speed when compared to C++.
This is a very very basic description, I think actual programmers can better articulate what makes Rust so interesting and/or better than C++

reply

The biggest reason for ripgrip (rg) wasn't mentioned: speed. When it comes to recursive searches, rg absolutely destroys stock grep. It's way, way faster. It's also clever: that pretty output that it does to make it more human readable only occurs when it knows the output is the terminal. If you pipe the rg results to anything else, it knows that and switches to the more typical line-by-line response.
reply

vimv - batch rename files using your editor
nushell - radical bash/zsh alternative
deno - nodejs alternative written by the creator of nodejs
fnm - superior cross-platform alternative to nvm
I don't know of any emacs rewrites but the Xi editor is very powerful and has frontends that replicate the behavior of different editors. Check out the awesome-rust GitHub page for tons more.

reply

As a professional programmer I can tell you, is not a meme, is just a really cool language that has a very innovative memory management that offers the safety of a garbage collected language, without the garbage collection or any overhead/bloat of runtime, because it uses a memory model of 'ownership' and borrowing with a powerful type system that C can only dream of.
reply

bat seems like more of a less replacement than a cat replacement, unless it behaves differently in scripting contexts. The thing I want out of any cat program is 1) it outputs all the characters from a file in order, and 2) it concatenates the things I give it. The formatting makes it kinda useless as a cat replacement.
reply

I installed it briefly.
1. The first thing the install script does is attempt to run the install program from the always noexec partition of /tmp. When it fails, they issue an error that it is probably because /tmp is noexec. No duh!
2. Its package manager does the same thing.
That's as Mickey Mouse as it gets.

reply
Add a review, comment






Other channel videos