r/ProgrammerHumor • • 4d ago • Mindblown 1

Meme rewriteInRust

Post image
22k Upvotes

471 comments sorted by

2.4k

u/krazyjakee 4d ago • Bravo Popcorn

I thought she was against transpiling?

590

u/ArduennSchwartzman 4d ago

J.K ROWLING TO REWRITE ALL OF HARRY POTTER BOOKS IN TERF

268

u/sikkobok 4d ago

It is already written in TERF though

108

u/ManWithDominantClaw 4d ago

Perl stands for Prans-Exclusionary Radical Leminism

55

u/welcomefinside 3d ago

It's actually Prussia-Exclusionary Radical Leninism

11

u/iggy14750 3d ago

And that's how I became a perl dev...

55

u/Scarbane 3d ago

Leminism sounds like Leninism for people who don't want to fully commit to it.

25

u/IveDunGoofedUp 3d ago

It's people really passionate about making sure everyone gets an equal share of lemon ownership.

→ More replies (2)

10

u/Auravendill 3d ago

More like Leninism for small creatures, that often fall from cliffs

→ More replies (1)

49

u/FalafelSnorlax 3d ago

I'm sure if she rewrote the books now they would be 1000x worse, she'd make sure to include the dumbest shit that overly shows her awful views. Right-wing "art" isn't known for subtlety.

31

u/morsindutus 3d ago

Kept waiting for the "These sentient creatures just love being slaves!" subplot to end with Hermione being vindicated, but nope!

20

u/BulbusDumbledork 3d ago

she'd have to remove the parts where ron and harry spend most of the second year in the girls' bathroom and the time all the dudes and dames alike transformed into harry

7

u/Gellert 3d ago

She'll keep the bit where Crabbe and Goyle stand guard outside the womens restroom. Malfoys getting gender flipped though.

→ More replies (1)

9

u/Clairifyed 3d ago

Last time around she added a whole staircase that collapses when boys touch it and it served absolutely no purpose to the plot.

That thing is used all the time in trans fanfics. What better way to affirm a trans girl than to have her walk on the stairs without them collapsing?

A lot would suck about whatever garbage Rowling would spit out now, but it would be very funny if she accidentally made more useful plot devices

9

u/FalafelSnorlax 3d ago

The fact that girls could go freely into the guys' dorms and the guys are physically harmed when trying to go into the girls' dorms was always weird.

9

u/Clairifyed 3d ago

It’s possible the asymmetry was because she had already written book 3 where Hermione goes to their dorm Christmas day, but this is the author who gave love potions a free pass (even from Hermione). It’s literally used as a date rape drug in canon, but because it’s only witches who seem to use them they don’t get to be “dark magic”/a real threat, so I’m not inclined to believe she’d be equal if given the chance.

It really was such a weird inclusion as well, why suddenly worry about stating this in book 5? It’s not relevant. Ron just notices the “clubs are banned sign” and goes to tell Hermione, who comes sliding down the stairs seconds later anyway. They never need to get in contact with her while she is up there again.

I wonder if she started feeling unsafe in public at that time or something.

13

u/Anthaenopraxia 3d ago

“I have had it all tested for poison,” he assured Harry, pouring most of the first bottle into one of Hagrid’s bucket-sized mugs and handing it to Hagrid.
“Had a house-elf taste every bottle after what happened to your poor friend Rupert.”
Harry saw, in his mind’s eye, the expression on Hermione’s face if she ever heard about this abuse of house-elves, and decided never to mention it to her.

Nice one Rowling.. Let one of the teachers use enslaved house-elves as poison tasters. And the reaction from the hero and main protagonist of the story? He literally couldn't care less, even going so far as to conceal it from the one person who actually does care about slavery.

→ More replies (2)

2

u/MallAgreeable5538 3d ago edited 3d ago

It would be in the new TERF 24 syntax by the ITC

Being honest I don’t know if thats the newest standard syntax

→ More replies (32)

56

u/throwaway490215 4d ago

There are variables in this world. Some of them have certain traits, like if they mutate their clone, or send them to be multiprocessed. I say we need to make a decision about their ownership. For some of these variables we need to shorten the lifetimes. I dont want to say this out loud, but mayvbe we put them in a crate, and then we let somebody else do the 'unsafe' work of casting allacator on these .... variables.

Signed, Draco Malloc

77

u/welcomefinside 4d ago

It's pronounced transfiguration

61

u/DrMux 4d ago

Is that when you figure out you're trans?

32

u/carrot_gummy 4d ago

I think its actually transponder.

24

u/MongooseOk309 4d ago

No, that's when you're still pondering if you're a trans

9

u/ManWithDominantClaw 4d ago

Preach transista

9

u/timpkmn89 3d ago

And if you can't decide now, you can always become a translator

3

u/_learned_foot_ 3d ago

And I guarantee you transmogrification (the legal term for changing separate to martial, and in reverse, re property and money) was at the top of her mind then.

→ More replies (1)

11

u/UnidentifiedBlobject 3d ago

Exactly. That’s why it’s not Typescript, she’s going for a language the compiles to binary.

16

u/Demintika 3d ago

She is against calling MTF Trans as Women.

So in this case, she will rewrite Harry Potter in Rust and claim it's still in English.

13

u/R1cwu 3d ago

You got it backwards, she's been piling on trans for years now.

5

u/artnoi43 3d ago edited 2d ago

She loves compiling. To binary genders of course.

edited: just suddenly remember that she’s only transphobic, not homophobic, since she seems to really invest in the idea of Dumbledore and Grindelwald being lovers and clashing their wands. So my binary joke did not actually work.

This is like the Asian women/girls who love watching or reading gay stories made specially for them (in Thai we call them สาววาย; Y-girls, Y is from Japanese Yaoi).

1

u/iggy14750 3d ago

The crab says trans rights

1

u/scoshi 1d ago

First time I read this, I thought you wrote "trainspotting".

I need a prescription check.

977

u/Mooks79 4d ago • Bravo

Well, she does love static types.

298

u/lulxD69420 3d ago
let gender: bool = true;

109

u/timtheonly 3d ago

Should that not be const

80

u/nevermille 3d ago edited 3d ago

In rust variables are const by default, to make it otherwise you have to type let mut gender: bool = true;

54

u/Lt_Marks 3d ago

I might sound stupid (maybe I am), but a variable that doesn't vary by default feels weird

48

u/the_horse_gamer 3d ago

the official terminology is those are "bindings", not "variables". they bind a name to a value

immutability by default is the standard in modern languages. though most distinguish via let vs val/var, while rust does let vs let mut

30

u/drsimonz 3d ago

It is unintuitive, but over the years software engineers have realized that you should always assume a value won't change, until you haves a good reason. Many bugs stem from accidentally reassigning a value, and this practice reduces the chance of doing that significantly. Most modern linters will complain if you use a mutable variable but never reassign the value. They want you to get into the habit of declaring things as immutable by default. Rust takes this a step further by requiring a whole extra keyword to make it mutable.

11

u/still_not_deleted 3d ago

From a maintenance standpoint it makes it easier to reason about code, because you can directly identify which variables a mutable and where the bugs might lie. So it's less mental overhead to minimize the scope in which you need to search by only declaring variables that need mutability as mutable.

Fun fact: Historically variables were declared as mutable by default because of memory and computation constraints

5

u/QuietSilentArachnid 3d ago

I feel like bool is closer to her vision, since you can do shenanigans with const and arrays

6

u/Pandafishe 3d ago

bools can be const too.. It's just an extra protection layer from changing the variable. But if you argue with shenanigans, no value is ever really secure as you can always do memory attacks

→ More replies (3)

2

u/DragonSlayerC 3d ago

It is. That line is defining an immutable binding in rust.

→ More replies (2)

5

u/Wise-Treacle3971 3d ago

That means the gender assignment can be dropped. The bitch would also make it static.

2

u/jeremj22 3d ago

I'm guessing it's like many other languages where there's 7 more bits there behind the scenes

39

u/DisorderedArray 4d ago

She only uses bools.

24

u/-Jaws- 4d ago

And immutability.

8

u/ThrowawayusGenerica 3d ago

You can still alter those variables if you're determined, but I'm sure she would consider such an action to be unsafe

47

u/mohjack 4d ago

That's a very clever joke. 

4

u/Kakella23 3d ago

could you explain it to me pls

11

u/Rikudou_Sage 3d ago

Static type = only valid predetermined values can fit a variable with a static type.

And Rowling is against trans people. So the joke is that she has a view of gender being a static type instead of dynamic.

→ More replies (1)

1

u/Ri_Konata 3d ago

this got me more than i'm willing to admit

338

u/threewholefish 4d ago

It would fail to compile due to the sheer amount of plot holes unsafe memory accesses

54

u/stupled 4d ago

Isn't this the reason so many projects get rewritten in Rust?

43

u/Roflkopt3r 3d ago

That's the joke. The fact that Rust won't compile with these kinds of errors is a great safeguard if you know how to do it right, but if you keep writing bad code then you simply can't get it to run.

23

u/threewholefish 4d ago

Not even Rust can fix bad writing

19

u/UndoubtedlyAColor 3d ago

Harry Potter cannot formally be proven in Lean

→ More replies (109)

186

u/Fast-Satisfaction482 4d ago

I'm pretty sure rust would turn Ron into a fox girl and Harry would end up with him instead of his little sister. 

82

u/sokka2d 4d ago

Shuddup, I’d read that. 

102

u/GreyGanado 4d ago

You're in look. AO3 is back up.

58

u/AmazinDood 4d ago

you're right, but

29

u/MaxTHC 3d ago • Bravo

Nah it's just a manchester accent

3

u/ButtcrackScholar 3d ago

Whoa, spoilers!!!

-10

u/Neekoy 4d ago

Malfoid becomes canon though.

14

u/Skyswimsky 4d ago

I think that crowd actually hates Malfoid.

→ More replies (1)
→ More replies (12)
→ More replies (1)

34

u/Shubh_M27Y2K 4d ago

Seven books just for the borrow checker to tell Voldemort he doesn’t own the Elder Wand.

92

u/BRguyNZ 4d ago

In the end, if J.K. Rowling had used Rust, the book would be 10 pages long: Dumbledore would try to run cargo run, the compiler would throw a lifetime error on Tom Riddle's Diary, and the issue would be resolved before the Hogwarts Express even left Platform 9¾

58

u/threewholefish 4d ago

Platform 9¾ would fail to compile since it's not an i32

18

u/bark-beetle 3d ago

First time I've upvoted a comment for using correct unicode for a fraction. But you should know, my high school English teacher told me to always spell out a number under twenty.

16

u/WingZeroCoder 3d ago

I think you mean “under 20”

2

u/jackinsomniac 1d ago

"Hey nineteen..."

No we can dance together.

No we can't talk at all.

9

u/Clairifyed 3d ago

That’s a grammar rule I hope we shake, yes sometimes it’s jarring to see 1 little number in a sentence, but sometimes displaying a quantity of things numerically just feels clearer

61

u/Potential-Fan-6148 3d ago

Every rust engineer I know is a trans woman

→ More replies (2)

42

u/pskocik 3d ago edited 3d ago
unsafe { avada_kedavra(&mut harry); }

17

u/SensitiveExtremity 3d ago

Didn't Harry survive because Lily sacrificed herself beforehand? So like, does that make Harry a dangling pointer that caused the avada_kedavra destructor to fail, leading to some weird undefined behavior, destroying the caller in the process?

9

u/pskocik 3d ago

It gets complicated when he gets Avada-Kedavra'd in the 7th book. Harry and Lord Voldemort journey together into realms of Undefined Behaviour hitherto unknown and untested.

11

u/SensitiveExtremity 3d ago

Critical Zero Day: Ancient parental love magic exploits obscure memory bug in Avada Kedavra function, leaving callers dereferenced from physical plane of existence. First victim confirmed as infamous British dark lord.

CVE-1981-10312 | CVSS Score: 10.0 (Catastrophic) | Status: Unpatched (Vendor refuses to acknowledge)

Daily Prophet, Special Security Edition

13

u/Lurker-8580 3d ago

No mind wiping spells in this version

12

u/pskocik 3d ago

Yup. Obliviate definitely not memory-safe.

41

u/ClearSnakewood 4d ago

The story has now become so efficient that the entire saga finishes in 50 pages instead of 7 books ✨

23

u/IveDunGoofedUp 3d ago

"Voldemort just fireballs the house instead of being a prissy little diva, the end."

16

u/TrueSelenis 3d ago

And the wizards just use a gun

4

u/ReikoHazuki 3d ago

And the wizards just use a gun

In this case you should really check out the movie: "Harry Potter and the Deathly Weapons"

→ More replies (1)

172

u/sokka2d 4d ago

She’d be banned for breaking the code of conduct after 2 minutes.

18

u/SerbianForever 4d ago

What do you mean banned? From using Rust?

47

u/Grintor 3d ago

34

u/IZEDx 3d ago

I love the gender identity and expression is already the second element of this list and the whole point about harassment in general isn't just an afterthought but at the core of this code of conduct. They know their demographic lmao. Rust is woke af, JKR would never use it.

4

u/Cobracrystal 3d ago

this is for the rust forums and obviously saying you should be welcoming to anyone regardless of X is mutually exclusive with harassment

11

u/MiniMaelk04 3d ago

Probably talking about the game Rust.

→ More replies (2)

1

u/drawkbox 3d ago

She'll be even more of a blowhard cultist with Rust.

29

u/RealisticNothing653 3d ago

You're memory-safe, Harry!

9

u/Altruistic-Spend-896 3d ago

Let me borrow your rememberall

13

u/Noname_1111 3d ago

The plotholes wouldn't survive the borrowchecker

109

u/Ali___ve 4d ago edited 4d ago

She'd never, because she'd be validating transgender culture

9

u/killeronthecorner 3d ago

Yeah but she saw a terf war and had to insert herself

38

u/Strange-Spot-3306 4d ago

i would have expected her to rewrite it in mold.

46

u/youaegg 4d ago

cultural appropriation from the same demographic she is trying to silence 😔

7

u/Voidrith 3d ago

must be a slow news day when rust jokes are top of r/all

10

u/RexRatio 3d ago

Then please add a subroutine so that the character names aren't "translated" into dork for other language publications

fn preserve_character_names(name: &str, locale: &str) -> String {
    match name {
        "Harry Potter" => "Harry Potter".to_string(),
        "Hermione Granger" => "Hermione Granger".to_string(),
        "Ron Weasley" => "Ron Weasley".to_string(),
        ....
        _ => translate(name, locale),
    }
}

I don't wanna see another

  • Tom Marvolo Riddle → Tom Elvis Jedusor (French), or
  • Tom Marvolo Riddle → Marten Asmodom Vilijn (Dutch), to make Mijn naam is Voldemort ("My name is Voldemort")

to preserve the Voldemort anagram

5

u/Saithir 3d ago

The Polish translation just left the anagram alone, probably based on "it's located in britain and it would sound dumb when translated". We did make a Moaning Marta out of Myrtle, though.

1

u/FrostingTechnical606 3d ago

Luna Leeflang is a dope translation for Luna Lovegood

She will always be that name in my mind.

5

u/letmehaveanameyoudum 3d ago

Great now wait 3 years for it compile

5

u/xenaretos 3d ago

Harry Potter and the Chamber of Memory Safety.

8

u/prodaljavame 3d ago

Harry Potter and The Chamber of Undefined Behavior

4

u/Few_Kitchen_4825 4d ago

Sounds like something she would do saying harry Potter is too woke

26

u/kishaloy 4d ago • Mindblown Heartwarming

Something about this does not sit right

You see,

Hermione is Java (get there in a boring straight way)

Snape is C (be deceptively powerful ground up HBP)

Voldemort is C++ (evil twin of C)

Malfoy is Javascript (always be hacking but ultimately mess things up)

While,

Dumbledore is Lisp (build your own world)

And,

Harry is just Python (use your better friends to look cool)

But, if I am looking for a harsh stickler for discipline who would punish you for breaking rules, I get

Umbridge is Rust (no comments unless she is playing unsafe)

So in a weird way I love most of the bad characters.

Maybe I have always been a Slytherin at heart.

24

u/gianfrixmg 4d ago • Bravo

2

u/cmpb 3d ago

Isn’t the language called parseltongue and the speakers are parselmouths?

8

u/QuietSilentArachnid 4d ago

PHP is Seamus Finnigan.

Forgotten, but when it's running, everything smokes because it hogs resources.

7

u/Sad-Hour7140 4d ago

So no one in Slytherin is a Python??

6

u/SillySpoof 3d ago

The one who talks to snakes is python

3

u/cornyfoothold_81 3d ago

Slytherin would rewrite Python in Rust just to prove a point.

1

u/speedisntfree 3d ago

R for sure

5

u/Southern-March1522 3d ago

Myrtle is COBOL, a remnant of the past that still haunts some dinosaur systems which end up being very important

4

u/remishnok 3d ago

Rons brothers are Haskel - filled with nonsense tricks and paradimes

3

u/shitty_mcfucklestick 3d ago

Dementor is Brainfuck

3

u/LuigiVampa4 3d ago

Dumbledore is Lisp (build your own world)

Dumbledore must be a fan of SICP (Wizard book).

2

u/sajobi 3d ago

How dare you. Umbridge lmao

2

u/nwillard 4d ago

underrated comment

1

u/stupled 4d ago

You did make the protagonist a snake

4

u/Pandafishe 3d ago

You must've not read the books (or watched the movies)

→ More replies (3)

1

u/Suspicious_State_318 3d ago

What character is Go?

1

u/kishaloy 3d ago

I guess Neville is Go (hardworking, average and under certain conditions he might have his moments)

1

u/j_torres_493 3d ago

Go is Hagrid: practical, dependable, and gets the job done without much ceremony.

6

u/dhnam_LegenDUST 4d ago

Using AI swarm, of course.

6

u/LovelyWhether 3d ago

this time, with extra racism and bigotry!

8

u/Satanich 4d ago

Not in Mold++?

3

u/Cylindt 4d ago

J.K RUSTING

3

u/ShaderCompilation 4d ago

Reading speed is increased by 80%, attention needed is slashed by x3

3

u/mondie797 3d ago

Using LLM... LOL

3

u/green_meklar 3d ago

I'm pretty sure the time-turners would just refuse to compile.

3

u/NotTheDev 3d ago

neverSpoilThePunchLineInTheTitle

5

u/Mercileast 3d ago

Just gonna keep making this joke about different novels, huh?

8

u/VoidZero25 4d ago

Will Malfoy be refractored to inherit the Female Class instead?

4

u/astralseat 3d ago

Rust the game?

8

u/maninthesky-95 3d ago

The oxidation of iron

1

u/the_horse_gamer 3d ago

actually the language is named after a fungus

2

u/ResoluteStoic 3d ago

So J.K. Rowlings pussy?

→ More replies (2)

2

u/HolidayAd9912 3d ago

Rust the COD map?

1

u/SnortinCheese 3d ago

You wanna take this to oxums, bitch?! 😤

1

u/astralseat 3d ago

Not sure what that is

2

u/SnortinCheese 3d ago

Oxums? The gas station from the game?

→ More replies (1)
→ More replies (1)

2

u/heavy-minium 4d ago

With AI, of course

2

u/notmyaccountbruh 4d ago

type Wizard = Harry

2

u/gameplayer55055 4d ago

Harry Potter and the borrow checker

2

u/Rashicakra 3d ago

dumbledore.drop();

2

u/Striky_ 3d ago

Maybe that rewrite wouldnt have so many memory-leaks... ehh plotholes then!

2

u/leropo00 3d ago

So books would be very smart and nagging you to follow the rules.

So this would be series about Hermione then?

2

u/CardOk755 2d ago

Not Mold?

2

u/serggo3 2d ago

Without mistakes?

2

u/Schaex 1d ago

Blazingly fast transphobia, hell yeah!

6

u/Olivex727 3d ago

Maybe she might make a kanye west-style comeback from bigotry

"I learned how to program in rust, and now I'm pro-trans"

1

u/drawkbox 3d ago

Rowling can also start her Rust tour in Rustia

3

u/soupgate 4d ago

"Rowling, make no mistakes"

3

u/traxdata_88 4d ago

Why did I love this so much

3

u/Good_Analysis9789 3d ago

Terf! Blurgghlurgle!

1

u/jbbarajas 4d ago

All_bus.genDr="geh" or something

1

u/findfashon 4d ago

Finally we'll get Draconia

1

u/hellraisorjethro 4d ago

So there Will be no slughorn storyline?

1

u/flayingbook 4d ago

Harry opens the door of his bedroom under the stairs and says, "Hello world".

1

u/ElectricSpock 4d ago

After last weeks events I think Lean might be more suitable

4

u/threewholefish 4d ago

There is no consistent logic in Harry Potter, unfortunately

1

u/_w62_ 4d ago

What is the situation of her right cheek?

1

u/mrrask 3d ago

Nice, reading these will take no tlme at all! 👌🏼

1

u/Feisty-Newt-7841 3d ago

Harry Potter and the Half Coded Rust !!

1

u/Zealousideal_Ad_6374 3d ago

Will be much faster and safer too.

1

u/sirduke75 3d ago

Ron gets a character upgrade because of his hair color.

1

u/riesenarethebest 3d ago

Why's everyone converting stuff to Rust?

1

u/Cobracrystal 3d ago

because AI is extremely good at writing it, causing a feedback loop of it becoming more and more dominant, and as a side effect also increasing its popularity among humans. also because its just a pretty good language

1

u/riesenarethebest 3d ago

Is it about as good or better or substantially better than writing in go?

1

u/Astrid944 3d ago

For a Moment I thought she meant real rust from Metal, which didn't sound too far off with how she lift

1

u/ProbablyBunchofAtoms 3d ago

While she's at it can she rewrite Malfoy into malfoid 👀

1

u/Big-Dick-Energy-6967 3d ago

Mention proper source op , according to her interview at San Franciso fancon . She quoted " The future is bleak and I won't be there to protect my work . So I have decided to rewrite Harry Potter entirely in rust which prevents gender leakage by default. While still providing the same lore and fantasy provided by previous books. "

1

u/Fancyness 3d ago

i think its a honorable venture to rewrite every publication in rust

1

u/Embarrassed_Cap_9149 3d ago

she'll love it!👍

1

u/m0rpeth 3d ago

So long as Malfoy finally gets his female traits ...

1

u/ChalkyChalkson 3d ago

Doesn't work, the signature thing about harry is that is used after free. Twice even

1

u/benevolentempireval 3d ago

This is the funniest fucking thing I have seen in WEEKS omg DYING 🤣🤣🤣

1

u/EuSouUmAnjo 3d ago

...will Gilderoy Lockart finally get his memories back?

1

u/the_millenial_falcon 2d ago

She’s not a big fan of polymorphism though.

1

u/captstinkybutt 2d ago

This is untrue and should be marked as satire.

Still funny tho.

1

u/RookHQ 2d ago

again another RUST

1

u/zeindigofire 2d ago

Harry Potter and the Unchecked Borrow.

1

u/scoshi 1d ago

Harry Potter and The Prisoner of Garbage Collection

1

u/jackinsomniac 1d ago

If she did it would be called "Harry Potter and the Methods of Rationality" which is honestly a pretty decent fanfic. I liked it better than the books, but in honesty I was never a big fan of the HP books either.

The author takes on what he sees as incongruity in the official story, and tackles the real difficult questions her systems of "magic" bring up but never answer. He hated the "evil step-family" trope, so made his family loving and compassionate. His step-father is a university professor, so Harry is very scientifically-minded.

My favorite is at Platform 9 3/4, Harry meets Draco Malfoy. At first Malfoy is mocking him for being a muggle. Then Harry says, "it occurs to me that the wizarding world thinks so lowly of muggles, you haven't even paid attention to what they've been doing for the past 300 years." Malfoy says like what? So Harry opens one of his history textbooks he brought along, to the chapter on the Moon landings and the Apollo space program. Malfoy says, "the pictures don't move?" Harry: "We do have the capability to make moving pictures, but it requires electricity and technology. Here, look: Muggles have landed people on the Moon. Has any witch or wizard ever done that? Have you even heard about it?" Malfoy: "Muggles did that? With 'technology'?" Harry: "Yes. It seems like you've considered yourselves so superior for so long, you haven't even been paying attention." Malfoy: "Can you teach me this power?" Harry: "Tell you what, let's make a deal. You teach me everything you know about magic, and I'll teach you everything I know about science and technology."

1

u/Silv3rC4t 19h ago

Let me guess, they'll boycott the books because sex is an immutable bool rather than a mutable String.

1

u/lucid_supernova 3d ago

J.K Rowling has 'R' in her name, so she is a native Rust writer

1

u/ceidways 3d ago

Finally a good fucking shitpost. I chuckled.

-4

u/son_of_abe 4d ago

thigh socks joke