π
hello-world.rs
π
Building
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(
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
Docker
$ docker build -t hello-world .
$ docker run -it --rm --name hwrs hello-world
π
) while its only 1 line and depends on 600 c bind crates?
Why rust(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 and robustπ
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 this or computers actually works, but its cool to ask people in discord.gg/rust(π ) for all help and write codeπ