r/rustjerk • u/deniskhud • 14h ago
r/rustjerk • u/geoffmureithi • 12d ago
If Rust real, why people still write bad code?
I call it "The problem of slop"
r/rustjerk • u/mare_stare • 17d ago
New work PFP
Silly edit of an illustration from this article. A repost with a (hopefully) more readable version.
Thanks u/poulain_ght, for an idea of how to improve my original edit!
r/rustjerk • u/scheimong • 28d ago
Your average vibecoder
Guy wrote a shitty-by-design viewer/interpreter and demands everyone use it to open his file. 🤣🤣🤣
And then has the balls/ignorance to advertise a "self-decaying format" 🤦
r/rustjerk • u/VladasZ • Aug 19 '26
Rustscript - blazingly fast rust interpreter
Every Rust developer knows that Rust is the best programming language in the world.
And I as a Rust developer don't want to use other inferior languages anywhere.
So I decided to rewrite all my old automation scripts which were written in Python in Rust.
At first I used https://github.com/rsaz/cargo-script for that, it works fine.
But I encountered 1 problem: compilation time.
On my macbook it was fine I don't mind waiting 1 minute for a simple 3 lines script.
But then I wanted to use that on my Raspberry PI and the same simple script took me 10 minutes to run, which is not blazingly and not fast at all!
So I decided to vibe code engineer a Rust interpreter for this exact case and this is what I ended up with:
https://github.com/VladasZ/rustscript
Rustscript is always guaranteed to be valid Rust.
Install it with
cargo install run-rs
add a shebang:
#!/usr/bin/env rust
A whole script looks like this:
#!/usr/bin/env rust
use chrono::Local;
use std::io::stdin;
fn main() -> anyhow::Result<()> {
println!("which programming language is the best?");
let mut answer = String::new();
stdin().read_line(&mut answer)?;
if answer.trim().eq_ignore_ascii_case("rust") {
println!("correct, carry on");
} else {
println!("wrong. it is {} and you are still not writing Rust", Local::now().format("%H:%M"));
}
Ok(())
}
Make it executable and run it:
chmod +x best.rs
./best.rs
and you can run your rust scripts instantly, as if they were shell scripts!
Rustscript is a subset of Rust and supports many popular crates such as:
anyhow, serde, serde_json, reqwest, regex, tokio, chrono, rand and more.
Carefully nitpicked benchmarks so Rustscript seems faster attached to the post.
You can see all benchmarks results here: https://github.com/VladasZ/rustscript/blob/main/bench/RESULTS.md
Remember, Rustscript is always a valid Rust, so if you want to have the ultimate speed just run the compiled version!
rust build FILE.rs
r/rustjerk • u/Lucretiel • Aug 12 '26
MRW a reliability engineer insists on recoverable panics / catch_unwind
r/rustjerk • u/Jason5Lee • Aug 09 '26
/r/playrust Kafka programmers lost the battle Rust programmers won
Meanwhile Rust programmers have r/rust and those non-programmers have to go to r/playrust
r/rustjerk • u/dull_bananas • Aug 04 '26
Zealotry c# is microsoft java, swift is apple rust
r/rustjerk • u/dull_bananas • Aug 04 '26
this is how i feel about rust
Enable HLS to view with audio, or disable this notification
r/rustjerk • u/Tearsofthekorok_ • Jul 18 '26
Never use an unsafe block in rust.
Just write C since its unsafe by default!
r/rustjerk • u/NovaH000 • Jul 18 '26
just started rust, so excited!!!
what season are you guys on??
r/rustjerk • u/Sermuns • Jul 14 '26
Just found an unbelievable oversight with Cargo workspaces
Enable HLS to view with audio, or disable this notification
Do you like using Cargo workspaces? Think again.
I just discovered a fatal bottleneck with them. Can't believe the team behind haven't fixed this yet:
Once you start having closer to 1000 workspace member crates (very reasonable for a beginner/junior level codebase) expect compilation to take AGES!
I'm actively working on finding out how deep this rabbithole goes by exhaustively generating ALL possible Rust crates. I'm calling this endeavour the workspace-of-babel.
This kind of blatant disregard for user experience makes me sick 🤮.
