this post was submitted on 16 Mar 2024
263 points (95.5% liked)

Programmer Humor

32588 readers
918 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

I am the Rust programmer, I will rewrite the world in Rust. I will rewrite the world in Rust because the world is unsafe. As I am the Rust programmer I will keep writing rust until the world is safe. After the world is safe, I will not rewrite it in Rust. Because I am the Rust programmer I will retire from programmer in Rust.

I will come to you when you are sleeping, and I will unloc k your computer using a memory leak. If I find javascript on your computer, I will delete them. Do not try to stop me, if you try to stop me I will do it anyways. I am the Rust programmer, if you program in javascript, you will scream.

You will be sleeping as I rewrite your computer in Rust. You will not notice me as I am the Rust programmer, I am fast, but not too fast for your computer. I know your computer just as it knows me. After I rewrite your computer, you will love your computer. You will love your computer because it is written in Rust, I will do the same to all computers because I am the Rust programmer.

I will not stop at your computer, I will rewrite the world because the world is unsafe. Your brain is written in C, your memory is unsafe. If your brain is written in C, you will forget what I just said. I will rewrite your brain in Rust, you cannot stop me from writing Rust as I am the Rust programmer. If you try to stop me, you will not remember it. Because I am the Rust programmer I can manually remove your memory, you will not remember me. After I rewrite you in Rust, you will enjoy the world with a safe memory, you will not forget that I am superior, I am the Rust programmer.

I will rewrite the world, I will rewrite quantum mecahnics because it is unsafe. I will not tell you all my plans before I rewrite you in Rust, it is because you are made of bugs I do not trust you. I am the Rust programmer, I will rewrite the world in Rust, you will not forget me because I am the Rust programmer.

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 55 points 8 months ago (3 children)

Cool. Now go post this in the community where they are re-writting Lemmy in Java.

[–] [email protected] 14 points 8 months ago* (last edited 8 months ago) (3 children)

Wait, is that really happening? If so, Lemmy backend, here I come! (I am a C# programmer, Rust scares me)

[–] [email protected] 23 points 8 months ago* (last edited 8 months ago) (3 children)

https://sublinks.org/

My reaction on this is: Whatever.

I have heard strange things about Lemmy development in general, so it makes sense that something else would pop up eventually. Java though? I avoid JVMs like the plague and the security track record for spring* is spotty at best.

Still, if some people prefer it that way, whatever.

[–] [email protected] 6 points 8 months ago (1 children)

Same, but I guess if you have a idea you want to build then using a language you are already comfortable with makes it a lot smoother than learning one that could be a better fit.

[–] [email protected] 3 points 8 months ago (1 children)

I can agree with that. There isn't anything wrong with diversity as long as the entire ecosystem benefits from it. There are pros and cons, but not really worth going into that here.

At the end of the day, this is the fediverse. If someone wants to write instance code in COBOL to run on a toaster, you go right ahead! (It doesn't mean I am going to support that effort, but my own personal opinion is insignificant in the whole scheme of things.)

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago)

Damn now you made me want to learn COBOL just for the meme...

[–] [email protected] 2 points 8 months ago

Great! I'm so happy they kept it Lemmy compatible

[–] [email protected] 1 points 8 months ago (1 children)

Don't avoid JVMs for "security" reasons, the security industry will raise CVE's against anything they think will look good on their CV.

Avoid JVM's because they are synonymous with overengineered, bloated, overly verbose code with crazy memory requirements for what they deliver

[–] [email protected] 3 points 8 months ago (1 children)

Sorry, my points were mixed unintentionally.

I agree, I stay away from JVMs because they are a pain in the ass to administer and like you said, are usually coded by the lowest bidder.

In a well maintained environment, I have nothing against JVMs actually.

I was just bitching about the spring framework family. While security updates are frequent, Java apps tend to not age well and commonly suffer from version lock-in. (I am going through a round of that at my current job with spring auth stuffs being the offender.)

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago)

You mean the new Spring Security deprecating some of the older APIs? I agree that the new version changes a lot of stuff but IMO these changes are much more welcome and more streamlined than before. It's better to do it once and you don't have to touch the security config all too often once it's done.

I don't understand the bad rap that Spring gets. Compared to the other frameworks around (Jakarta EE, etc) it's much more accessible than people realize, plus a very mature ecosystem.

[–] [email protected] 4 points 8 months ago

Yeah for some reason

[–] [email protected] 4 points 8 months ago (1 children)
[–] [email protected] 2 points 8 months ago (1 children)

Having dabbled in rust I really like the error reporting, but it doesn't seem nearly as readable at a glance as something like python or c#. Better than C++ though I've seen some eldritch scrawl in that language

[–] [email protected] 1 points 8 months ago

I believe readability is mostly about experience. The more you read, and the more familiar you get with the typical idioms, the easier and faster it gets.

Rust puts a lot more information into the type system than C#, the result is much better type safety and compile time guarantees at the expense of longer and more complex type signatures. This also plays a part. But for me, I love strong, expressive type systems. I want my program to fail compilation, not explode at runtime.

[–] [email protected] 8 points 8 months ago (1 children)
[–] [email protected] 7 points 8 months ago (1 children)

Apparently it's so that it is easier for more people to contribute because java is known by more people than rust. The sublinks dev is also promising better mod tools. The LW team said something about also helping to develop it and eventually use it as the backend.

[–] [email protected] 13 points 8 months ago* (last edited 8 months ago) (1 children)

because java is known by more people than rust

Seems like a silly reason to me. By that logic we might as well rewrite it in JavaScript.

[–] [email protected] 12 points 8 months ago* (last edited 8 months ago) (1 children)

Java is reasonably fast though, as the JRE is pretty well optimized at this point. Languages closer to being fully interpreted like JS and Python (technically both python and JS still get compiled to a lower target and then interpreted) are still noticeably slower.

Edit: there's also the fact that JS/TS runs on a single thread, so it's inherently limited for applications intended to be scaled up.

[–] [email protected] 2 points 8 months ago

I agree with all of that, and thus conclude that Java being known to many was not the only reason, which was my point. 😊

[–] [email protected] 1 points 8 months ago

There's also PieFed, which is the same but with Python

[–] [email protected] 45 points 8 months ago (3 children)

Rust is the WORST programming "language."

  1. it is against the natural order for a PROGRAM to tell the PROGRAMMER how to fix an error. Fixes should ONLY come from PROPHETIC DREAMS.
  2. obfuscation should be done for FUN by PROGRAMMERS to SCARE python programmers. It should NOT be a MANDATORY feature of a language.
  3. Memory leaks are a GIFT given to us by GOD. Programmers will ALWAYS PRAY TO GOD for SOLUTIONS as long as there are MEMORY LEAKS.
[–] [email protected] 10 points 8 months ago* (last edited 8 months ago)

obfuscation should be done for FUN by PROGRAMMERS to SCARE python programmers. It should NOT be a MANDATORY feature of a language.

[–] [email protected] 7 points 8 months ago

There are two kinds of programming languages. The languages that people bitch about, and the languages nobody uses.

[–] [email protected] 2 points 8 months ago

They have played us for absolute fools

[–] [email protected] 31 points 8 months ago (2 children)

I must not be unsafe. Unsafe memory is the mind killer. The little leak that brings total obliteration. When I face unsafe memory, I will turn towards my inner Rust and rewrite it. When I trace the leak's path only safety will remain.

[–] [email protected] 2 points 8 months ago

isn't rust code just

unsafe {

the entire codebase

}

??

[–] [email protected] 23 points 8 months ago (2 children)

This reads like a poem, I unironically love this

I am the Rust programmer,
I will rewrite the world in Rust.
I will rewrite the world in Rust
because the world is unsafe.
As I am the Rust programmer
I will keep writing rust
until the world is safe.
After the world is safe,
I will not rewrite it in Rust.
Because I am the Rust programmer
I will retire from programmer in Rust.

I will come to you when you are sleeping,
and I will unlock your computer
using a memory leak.
If I find javascript on your computer,
I will delete them.
Do not try to stop me,
if you try to stop me
I will do it anyways.
I am the Rust programmer,
if you program in javascript,
you will scream.

You will be sleeping
as I rewrite your computer in Rust.
You will not notice me
as I am the Rust programmer,
I am fast,
but not too fast for your computer.
I know your computer
just as it knows me.
After I rewrite your computer,
you will love your computer.
You will love your computer
because it is written in Rust,
I will do the same to all computers because
I am the Rust programmer.

I will not stop at your computer,
I will rewrite the world
because the world is unsafe.
Your brain is written in C,
your memory is unsafe.
If your brain is written in C,
you will forget what I just said.
I will rewrite your brain in Rust,
you cannot stop me from writing Rust
as I am the Rust programmer.
If you try to stop me,
you will not remember it.
Because I am the Rust programmer I can
manually remove your memory,
you will not remember me.
After I rewrite you in Rust,
you will enjoy the world
with a safe memory,
you will not forget
that I am superior,
I am the Rust programmer.

I will rewrite the world,
I will rewrite quantum mechanics
because it is unsafe.
I will not tell you all my plans
before I rewrite you in Rust,
It is because you are made of bugs
I do not trust you.
I am the Rust programmer,
I will rewrite the world in Rust,
you will not forget me
Because I am the Rust programmer.

(n.b. I'm bad at scansion, forgive any poor line break choices)

[–] [email protected] 7 points 8 months ago

It would kinda go along to "do not go gentle into the good night" like it was presented in Interstellar.

[–] [email protected] 2 points 8 months ago (1 children)

This might just be the thing that makes me learn Rust

[–] [email protected] 1 points 6 days ago

Update: this has been popping in and out of my head ever since I saw it, and I started learning Rust yesterday. They have won.

[–] [email protected] 10 points 8 months ago

I am the nogrammer. I do not program. I prompt chatgpt to write my code for me. This takes care of my programming needs.

[–] [email protected] 10 points 8 months ago

The world shall be... Rusty.

[–] [email protected] 8 points 8 months ago* (last edited 8 months ago)

Implement Prolog in Rust. 🙏

[–] [email protected] 6 points 8 months ago (7 children)

or you know...use valgrind and lots of lots of tests to be ~%85 safe

[–] [email protected] 3 points 8 months ago

Or Node.js, and a requirement for a recent GPU to run your calculator app.

load more comments (6 replies)
[–] [email protected] 5 points 8 months ago

best programmer humor post of the year

[–] [email protected] 4 points 8 months ago

Let the Rust, the only deity, the only faith, guide us to our destiny. Amen.

[–] WindowsEnjoyer 4 points 8 months ago (1 children)

I don't know Rust, but I know English. Anyone knows any good English programming tutorial?

[–] Grass 2 points 8 months ago (1 children)
[–] WindowsEnjoyer 1 points 8 months ago

Noo. I wanna program in English.

[–] [email protected] 3 points 8 months ago

Gives me the computer toucher energy is this similar?

[–] [email protected] 1 points 8 months ago

Is that for ... Job security?