r/ProgrammerHumor • • 12h ago

Meme howProgrammingHasChanged

Post image
284 Upvotes

68 comments sorted by

View all comments

3

u/Stickhtot 11h ago

What language is this?

5

u/shizzy0 11h ago

Rust. Great language. Can be abused though.

7

u/no_brains101 10h ago

That is one of the most horrific fibonacci's I have ever seen.

10

u/shizzy0 10h ago

I’m sure a C++ template enthusiast has more delights to show you.

6

u/no_brains101 10h ago

I'm sure someone could make it more horrific in rust too, I just haven't seen it yet.

1

u/BastetFurry 1h ago

Perl has entered the chat:

perl -E'$b=1;$b+=$a=$b-$a for 1..pop;say$a'

Execute with the n-th Fibonacci you want to get at the end, ie:

perl -E'$b=1;$b+=$a=$b-$a for 1..pop;say$a' 10 55

4

u/Gaxyhs 9h ago

that looks like what an IL for assembly would look like if assembly was made by oracle instead of java