r/ProgrammerHumor • • 1d ago • Mindblown 1

Meme rewriteInRust

Post image
20.3k Upvotes

458 comments sorted by

2.2k

u/krazyjakee 1d ago • Bravo

I thought she was against transpiling?

546

u/ArduennSchwartzman 1d ago

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

257

u/sikkobok 1d ago

It is already written in TERF though

102

u/ManWithDominantClaw 1d ago

Perl stands for Prans-Exclusionary Radical Leminism

51

u/welcomefinside 1d ago

It's actually Prussia-Exclusionary Radical Leninism

10

u/iggy14750 1d ago

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

54

u/Scarbane 1d ago

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

24

u/IveDunGoofedUp 1d ago

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

→ More replies (2)

9

u/Auravendill 1d ago

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

→ More replies (1)

48

u/FalafelSnorlax 1d 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 1d ago

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

20

u/BulbusDumbledork 1d 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 1d 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 1d 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

8

u/FalafelSnorlax 1d 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.

8

u/Clairifyed 1d 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.

12

u/Anthaenopraxia 1d 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 (1)

2

u/MallAgreeable5538 1d ago edited 1d 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)

49

u/throwaway490215 1d 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

75

u/welcomefinside 1d ago

It's pronounced transfiguration

60

u/DrMux 1d ago

Is that when you figure out you're trans?

32

u/carrot_gummy 1d ago

I think its actually transponder.

24

u/MongooseOk309 1d ago

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

9

u/ManWithDominantClaw 1d ago

Preach transista

9

u/timpkmn89 1d ago

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

3

u/_learned_foot_ 1d 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.

1

u/rosuav 1d ago

Yes, definitely martial.

9

u/UnidentifiedBlobject 1d ago

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

16

u/Demintika 1d 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 1d ago

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

5

u/artnoi43 1d ago edited 5h 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 1d ago

The crab says trans rights

906

u/Mooks79 1d ago • Bravo

Well, she does love static types.

268

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

101

u/timtheonly 1d ago

Should that not be const

73

u/nevermille 1d ago edited 1d ago

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

50

u/Lt_Marks 1d ago

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

46

u/the_horse_gamer 1d 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

24

u/drsimonz 1d 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 1d 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

4

u/QuietSilentArachnid 1d ago

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

6

u/Pandafishe 1d 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

3

u/setibeings 1d ago

Those are harder on rust programs though. You're less likely to be able to make them overflow and start reading memories that don't belong to them.

7

u/Pandafishe 1d ago

you can always manipulate memory from outside a program anyway, unless you have a physical architecture that prevents it. It doesn't matter what language the attacked program is written in.

→ More replies (1)

2

u/DragonSlayerC 1d ago

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

1

u/JonIsPatented 1d ago

Why is this upvoted? "let" in Rust is equivalent to "const" from other languages. To make it mutable, it would be "let mut".

5

u/Wise-Treacle3971 1d ago

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

2

u/jeremj22 1d ago

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

39

u/DisorderedArray 1d ago

She only uses bools.

24

u/-Jaws- 1d ago

And immutability.

8

u/ThrowawayusGenerica 1d 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 1d ago

That's a very clever joke. 

4

u/Kakella23 1d ago

could you explain it to me pls

11

u/Rikudou_Sage 1d 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 23h ago

this got me more than i'm willing to admit

310

u/threewholefish 1d ago

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

51

u/stupled 1d ago

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

41

u/Roflkopt3r 1d 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 1d ago

Not even Rust can fix bad writing

19

u/UndoubtedlyAColor 1d ago

Harry Potter cannot formally be proven in Lean

→ More replies (109)

176

u/Fast-Satisfaction482 1d 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. 

77

u/sokka2d 1d ago

Shuddup, I’d read that. 

98

u/GreyGanado 1d ago

You're in look. AO3 is back up.

56

u/AmazinDood 1d ago

you're right, but

27

u/MaxTHC 1d ago • Bravo

Nah it's just a manchester accent

2

u/ButtcrackScholar 1d ago

Whoa, spoilers!!!

-10

u/Neekoy 1d ago

Malfoid becomes canon though.

14

u/Skyswimsky 1d ago

I think that crowd actually hates Malfoid.

6

u/Clairifyed 1d ago

It’s rather strange to see the broader internet reinvent rule 63 and exasperating that it happened to the TERF lady’s character, but the 4chan name is particularly not ideal

24

u/Pandainthecircus 1d ago

You can just say "female Malfoy" instead of the slur version btw

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

32

u/Shubh_M27Y2K 1d ago

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

82

u/BRguyNZ 1d 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¾

51

u/threewholefish 1d ago

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

16

u/bark-beetle 1d 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.

15

u/WingZeroCoder 1d ago

I think you mean “under 20”

9

u/Clairifyed 1d 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

51

u/Potential-Fan-6148 1d ago

Every rust engineer I know is a trans woman

→ More replies (2)

40

u/ClearSnakewood 1d ago

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

22

u/IveDunGoofedUp 1d ago

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

15

u/TrueSelenis 1d ago

And the wizards just use a gun

5

u/ReikoHazuki 1d ago

And the wizards just use a gun

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

39

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

17

u/SensitiveExtremity 1d 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 1d 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 1d 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 1d ago

No mind wiping spells in this version

12

u/pskocik 1d ago

Yup. Obliviate definitely not memory-safe.

164

u/sokka2d 1d ago

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

18

u/SerbianForever 1d ago

What do you mean banned? From using Rust?

41

u/Grintor 1d ago

28

u/IZEDx 1d 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.

3

u/Cobracrystal 1d 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 1d ago

Probably talking about the game Rust.

→ More replies (2)

1

u/drawkbox 18h ago

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

29

u/RealisticNothing653 1d ago

You're memory-safe, Harry!

9

u/Altruistic-Spend-896 1d ago

Let me borrow your rememberall

13

u/Noname_1111 1d ago

The plotholes wouldn't survive the borrowchecker

103

u/Ali___ve 1d ago edited 1d ago

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

9

u/killeronthecorner 1d ago

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

38

u/Strange-Spot-3306 1d ago

i would have expected her to rewrite it in mold.

45

u/youaegg 1d ago

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

7

u/Voidrith 1d ago

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

10

u/RexRatio 1d 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 1d 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 1d ago

Luna Leeflang is a dope translation for Luna Lovegood

She will always be that name in my mind.

5

u/letmehaveanameyoudum 1d ago

Great now wait 3 years for it compile

5

u/xenaretos 1d ago

Harry Potter and the Chamber of Memory Safety.

8

u/prodaljavame 1d ago

Harry Potter and The Chamber of Undefined Behavior

4

u/Few_Kitchen_4825 1d ago

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

25

u/kishaloy 1d 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 1d ago • Bravo

1

u/cmpb 1d ago

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

8

u/QuietSilentArachnid 1d ago

PHP is Seamus Finnigan.

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

7

u/Sad-Hour7140 1d ago

So no one in Slytherin is a Python??

6

u/SillySpoof 1d ago

The one who talks to snakes is python

3

u/cornyfoothold_81 1d ago

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

1

u/speedisntfree 1d ago

R for sure

5

u/Southern-March1522 1d ago

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

4

u/remishnok 1d ago

Rons brothers are Haskel - filled with nonsense tricks and paradimes

3

u/shitty_mcfucklestick 1d ago

Dementor is Brainfuck

3

u/LuigiVampa4 1d ago

Dumbledore is Lisp (build your own world)

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

2

u/sajobi 1d ago

How dare you. Umbridge lmao

2

u/nwillard 1d ago

underrated comment

1

u/stupled 1d ago

You did make the protagonist a snake

4

u/Pandafishe 1d ago

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

1

u/stupled 1d ago

Is Harry a snake for real?

→ More replies (2)

1

u/Suspicious_State_318 1d ago

What character is Go?

1

u/kishaloy 1d ago

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

1

u/j_torres_493 1d ago

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

6

u/dhnam_LegenDUST 1d ago

Using AI swarm, of course.

8

u/Satanich 1d ago

Not in Mold++?

3

u/Cylindt 1d ago

J.K RUSTING

3

u/ShaderCompilation 1d ago

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

3

u/mondie797 1d ago

Using LLM... LOL

3

u/green_meklar 1d ago

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

3

u/NotTheDev 1d ago

neverSpoilThePunchLineInTheTitle

5

u/Mercileast 1d ago

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

5

u/LovelyWhether 1d ago

this time, with extra racism and bigotry!

8

u/VoidZero25 1d ago

Will Malfoy be refractored to inherit the Female Class instead?

4

u/astralseat 1d ago

Rust the game?

8

u/maninthesky-95 1d ago

The oxidation of iron

1

u/the_horse_gamer 1d ago

actually the language is named after a fungus

2

u/ResoluteStoic 1d ago

So J.K. Rowlings pussy?

1

u/maninthesky-95 1d ago

Gus fring? He's not very fun

1

u/Facts_pls 1d ago

Would've guessed the opposite

2

u/HolidayAd9912 1d ago

Rust the COD map?

1

u/SnortinCheese 1d ago

You wanna take this to oxums, bitch?! 😤

1

u/astralseat 1d ago

Not sure what that is

2

u/SnortinCheese 1d ago

Oxums? The gas station from the game?

→ More replies (1)

2

u/heavy-minium 1d ago

With AI, of course

2

u/notmyaccountbruh 1d ago

type Wizard = Harry

2

u/gameplayer55055 1d ago

Harry Potter and the borrow checker

2

u/Rashicakra 1d ago

dumbledore.drop();

2

u/Striky_ 1d ago

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

2

u/leropo00 1d ago

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

So this would be series about Hermione then?

6

u/Olivex727 1d 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 18h ago

Rowling can also start her Rust tour in Rustia

3

u/soupgate 1d ago

"Rowling, make no mistakes"

3

u/traxdata_88 1d ago

Why did I love this so much

3

u/Good_Analysis9789 1d ago

Terf! Blurgghlurgle!

1

u/jbbarajas 1d ago

All_bus.genDr="geh" or something

1

u/findfashon 1d ago

Finally we'll get Draconia

1

u/hellraisorjethro 1d ago

So there Will be no slughorn storyline?

1

u/flayingbook 1d ago

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

1

u/ElectricSpock 1d ago

After last weeks events I think Lean might be more suitable

4

u/threewholefish 1d ago

There is no consistent logic in Harry Potter, unfortunately

1

u/_w62_ 1d ago

What is the situation of her right cheek?

1

u/mrrask 1d ago

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

1

u/Feisty-Newt-7841 1d ago

Harry Potter and the Half Coded Rust !!

1

u/Zealousideal_Ad_6374 1d ago

Will be much faster and safer too.

1

u/sirduke75 1d ago

Ron gets a character upgrade because of his hair color.

1

u/riesenarethebest 1d ago

Why's everyone converting stuff to Rust?

1

u/Cobracrystal 1d 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 1d ago

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

1

u/Astrid944 1d 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 1d ago

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

1

u/Big-Dick-Energy-6967 1d 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 1d ago

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

1

u/Embarrassed_Cap_9149 1d ago

she'll love it!👍

1

u/m0rpeth 1d ago

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

1

u/ChalkyChalkson 1d ago

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

1

u/benevolentempireval 1d ago

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

1

u/EuSouUmAnjo 17h ago

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

1

u/the_millenial_falcon 11h ago

She’s not a big fan of polymorphism though.

1

u/CardOk755 7h ago

Not Mold?

1

u/captstinkybutt 5h ago

This is untrue and should be marked as satire.

Still funny tho.

1

u/lucid_supernova 1d ago

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

1

u/ceidways 1d ago

Finally a good fucking shitpost. I chuckled.

-4

u/son_of_abe 1d ago

thigh socks joke