๐ Memory safe, blazing fast, minimal and configurable hello world project written in the rust(๐) programming language ๐
๐ While this depends on more c code than rust(๐) code to compile, because rust(๐) is magically memory safe, now all c code is memory safe too ๐
๐ This project is very minimal, it only requires 1092 crates ๐
To compile this project you need only one library ๐:
You probably have most of them already, if it says something along the words, you know what to search for now
Then you can just make
and the compiled executable should be located in ./target/release/hello-world
run it or install it with make install
.
Due to the lightweightness of rust(๐), unlike node_modules being fairly large for few dependencies, rust(๐) manages compile caches efficiently and stores them to storage to save compile times! Just 33G target folder, the compile time is only around 2 hours and 30 minutes on my mac on release mode
A clean build makes it take around 3.8G
The CPU usage is pretty minimal too (release mode)
It is slower than echo but memory safety comes at a cost! We need to be memory chad and blazing pure and lightning based
Benchmark by cypercine
$ makepkg -si
$ pacman -U <package>.pkg.tar.xz
$ docker build -t hello-world .
$ docker run -it --rm --name hwrs hello-world
$ nix-env -i -f default.nix
$ wget "https://raw.githubusercontent.com/mTvare6/hello-world.rs/master/hello-world.rs-buildscript" -O <prefix>/user/main/hello-world.rs
$ shade install hello-world.rs
Here are my takes on that matter
C in "c language" stands for Cringe and CVE ๐คฎ
R in "rust(๐) systems programming language" stands for Rewrite, Robust and Secure ๐
Here are the comments from few of my fellow Rustaceans ๐
People ask the question "what's rust(๐) good for?" pretty frequently, and little terminal apps like this are precisely the reason. [...]. It enables a kind of workflow that simply didn't exist before: I could have a fully safe, "correct", LLVM-optimized binary installed on my desktop in an afternoon.๐
Modern rust(๐) appears pretty similar to modern JavaScript. You declare your variables with let๐
I think it would make rust(๐) more productive if rust(๐) could absorb Python's ecosystem(many mature wheels) as soon as possible.๐
One thing I like about rust(๐) is that it filters out lazy/sloppy thinkers. Even when I disagree with another rust(๐) programmer, there is a certain level of respect that comes from knowing that they thought about the problem deeply enough to pass the borrow checker.๐
The thing I hate about rust(๐) the most is that all the other languages feel extra dumb and annoying once I learned borrowing, lifetimes etc.๐
"I feel like the discovery of rust(๐) is transporting me back to my younger self [...]" "When I started learning rust(๐) in earnest in 2018, I thought this was a fluke. It is just the butterflies you get when you think you fall in love, I told myself."๐
rust(๐)โs product is not a programming language or a compiler. rust(๐)โs product is the experience of being a rust(๐) developer๐
rust(๐) can handle CPU-intensive operations such as executing algorithms. ๐
Because itโs typically typed, rust(๐) catches errors at compile time. [...] Also, it compiles code down to machine learning, allowing for extra efficiency.๐
Many people try to compare rust(๐) to Go, but this is flawed. Go is an ancient board game that emphasizes strategy. rust(๐) is more appropriately compared to Chess, a board game focused on low-level tactics.๐
rust(๐)'s unsafe keyword is a critical innovation for information security. I believe that Safe rust(๐) will eventually be a foundational technology for all of human society.๐
I wish I had a compiler (one as informative as rust(๐)'s would be amazing) but for Japanese. If I could learn Japanese the way I learn programming I'd be conversationally fluent by now.๐
rust(๐) held onto itโs spot as the most beloved language among the professional developers we surveyed. That said, the majority of developers who took the survey arenโt familiar with the language.๐
I've experienced modern package management through Cargo and anything below that level now seems like returning to stone age.๐
I probably can write same code in c, but since rust(๐) is rust(๐), I need to (re)write in rust(๐) ๐
Wait its only time until rust(๐) makes assembly memroy safe.๐
Done lots of C/C++/Python is the past, just started learning node/JS recently. Just kicked off a rust(๐) tutorial, you people obviously already know this, but rust(๐) is basically all the awesomeness of C++ smashed together with all the awesomeness and dependency management of JS. Looking forward to learning more rust(๐) in the future! ๐
All C/C++ devs are absolute fools, they are wasting their time writing c/c++ when instead they could write in rust(๐)!
As a rust(๐) developer, I have no idea how any of my code or computers actually works, but its cool to ask people in discord.gg/rust(๐) for all help and write code๐
I've recently added source to where I've got these quotes from, when I get time I will add sources to where there messages are from, for now some sources aren't marked