r/ProgrammerHumor • • 23h ago • Mindblown 1

Meme rewriteInRust

Post image
18k Upvotes

448 comments sorted by

2.0k

u/krazyjakee 23h ago • Bravo

I thought she was against transpiling?

503

u/ArduennSchwartzman 23h ago

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

234

u/sikkobok 22h ago

It is already written in TERF though

90

u/ManWithDominantClaw 22h ago

Perl stands for Prans-Exclusionary Radical Leminism

40

u/welcomefinside 21h ago

It's actually Prussia-Exclusionary Radical Leninism

4

u/iggy14750 12h ago

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

50

u/Scarbane 21h ago

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

21

u/IveDunGoofedUp 21h ago

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

→ More replies (2)

8

u/Auravendill 16h ago

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

→ More replies (1)

46

u/FalafelSnorlax 21h 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.

30

u/morsindutus 18h ago

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

19

u/BulbusDumbledork 19h 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

6

u/Gellert 18h ago

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

→ More replies (1)

11

u/Anthaenopraxia 15h 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)

8

u/Clairifyed 17h 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 15h 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 14h 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.

2

u/MallAgreeable5538 13h ago edited 13h 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)

44

u/throwaway490215 22h 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

73

u/welcomefinside 23h ago

It's pronounced transfiguration

55

u/DrMux 23h ago

Is that when you figure out you're trans?

29

u/carrot_gummy 23h ago

I think its actually transponder.

22

u/MongooseOk309 22h ago

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

9

u/ManWithDominantClaw 22h ago

Preach transista

8

u/timpkmn89 16h ago

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

2

u/_learned_foot_ 19h 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 11h ago

Yes, definitely martial.

9

u/UnidentifiedBlobject 19h ago

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

14

u/Demintika 21h 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 21h ago

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

4

u/artnoi43 21h ago

She loves compiling. To binary genders of course.

1

u/iggy14750 12h ago

The crab says trans rights

825

u/Mooks79 23h ago • Bravo

Well, she does love static types.

246

u/lulxD69420 22h ago
let gender: bool = true;

89

u/timtheonly 21h ago

Should that not be const

64

u/nevermille 20h ago edited 19h ago

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

47

u/Lt_Marks 19h ago

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

42

u/the_horse_gamer 19h 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

13

u/drsimonz 11h 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.

10

u/still_not_deleted 15h 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 20h ago

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

6

u/Pandafishe 20h 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 19h 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 19h 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 16h ago

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

1

u/JonIsPatented 5h ago

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

2

u/jeremj22 13h ago

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

4

u/Wise-Treacle3971 20h ago

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

39

u/DisorderedArray 22h ago

She only uses bools.

24

u/-Jaws- 22h ago

And immutability.

8

u/ThrowawayusGenerica 20h ago

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

46

u/mohjack 23h ago

That's a very clever joke. 

4

u/Kakella23 20h ago

could you explain it to me pls

11

u/Rikudou_Sage 17h 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 4h ago

this got me more than i'm willing to admit

283

u/threewholefish 23h ago

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

49

u/stupled 22h ago

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

40

u/Roflkopt3r 21h 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.

22

u/threewholefish 22h ago

Not even Rust can fix bad writing

16

u/UndoubtedlyAColor 18h ago

Harry Potter cannot formally be proven in Lean

→ More replies (108)

31

u/Shubh_M27Y2K 22h ago

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

159

u/Fast-Satisfaction482 23h 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. 

71

u/sokka2d 23h ago

Shuddup, I’d read that. 

93

u/GreyGanado 23h ago

You're in look. AO3 is back up.

52

u/AmazinDood 23h ago

you're right, but

25

u/MaxTHC 21h ago • Bravo

Nah it's just a manchester accent

2

u/ButtcrackScholar 11h ago

Whoa, spoilers!!!

-9

u/Neekoy 23h ago

Malfoid becomes canon though.

14

u/Skyswimsky 22h ago

I think that crowd actually hates Malfoid.

6

u/Clairifyed 17h 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

23

u/Pandainthecircus 22h ago

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

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

73

u/BRguyNZ 22h 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¾

46

u/threewholefish 22h ago

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

14

u/bark-beetle 21h 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.

11

u/WingZeroCoder 16h ago

I think you mean “under 20”

5

u/Clairifyed 17h 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

39

u/pskocik 22h ago edited 22h ago
unsafe { avada_kedavra(&mut harry); }

16

u/SensitiveExtremity 20h 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 19h 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 18h 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 22h ago

No mind wiping spells in this version

12

u/pskocik 21h ago

Yup. Obliviate definitely not memory-safe.

38

u/ClearSnakewood 22h ago

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

21

u/IveDunGoofedUp 21h ago

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

15

u/TrueSelenis 20h ago

And the wizards just use a gun

5

u/ReikoHazuki 19h ago

And the wizards just use a gun

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

155

u/sokka2d 23h ago

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

18

u/SerbianForever 22h ago

What do you mean banned? From using Rust?

37

u/Grintor 18h ago

22

u/IZEDx 17h 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.

2

u/Cobracrystal 12h 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 22h ago

Probably talking about the game Rust.

→ More replies (2)

35

u/Potential-Fan-6148 16h ago

Every rust engineer I know is a trans woman

→ More replies (2)

27

u/RealisticNothing653 19h ago

You're memory-safe, Harry!

9

u/Altruistic-Spend-896 19h ago

Let me borrow your rememberall

13

u/Noname_1111 21h ago

The plotholes wouldn't survive the borrowchecker

100

u/Ali___ve 23h ago edited 23h ago

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

8

u/killeronthecorner 20h ago

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

38

u/Strange-Spot-3306 23h ago

i would have expected her to rewrite it in mold.

43

u/youaegg 22h ago

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

7

u/Voidrith 20h ago

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

6

u/Mercileast 20h ago

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

10

u/RexRatio 18h 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 17h 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 14h ago

Luna Leeflang is a dope translation for Luna Lovegood

She will always be that name in my mind.

5

u/letmehaveanameyoudum 19h ago

Great now wait 3 years for it compile

5

u/xenaretos 18h ago

Harry Potter and the Chamber of Memory Safety.

24

u/kishaloy 23h 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.

23

u/gianfrixmg 23h ago • Bravo

1

u/cmpb 9h ago

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

8

u/QuietSilentArachnid 23h ago

PHP is Seamus Finnigan.

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

7

u/Sad-Hour7140 22h ago

So no one in Slytherin is a Python??

6

u/SillySpoof 21h ago

The one who talks to snakes is python

3

u/cornyfoothold_81 15h ago

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

1

u/speedisntfree 11h ago

R for sure

5

u/Southern-March1522 21h ago

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

4

u/remishnok 21h ago

Rons brothers are Haskel - filled with nonsense tricks and paradimes

3

u/shitty_mcfucklestick 21h ago

Dementor is Brainfuck

3

u/LuigiVampa4 12h ago

Dumbledore is Lisp (build your own world)

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

2

u/sajobi 19h ago

How dare you. Umbridge lmao

2

u/nwillard 23h ago

underrated comment

1

u/stupled 22h ago

You did make the protagonist a snake

4

u/Pandafishe 20h ago

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

1

u/stupled 20h ago

Is Harry a snake for real?

2

u/Pandafishe 20h ago edited 20h ago

Part of you know who is in him from when he tried to unexist that child. And you know who is an heir of (Salazar) Slytherin (too deep lore to go into who that is in a short-ish comment). Said evil guy thus speaks parseltongue (snake language). Through the fact of part of that guy's soul having split into Harry Potter (Horcrux), he too speaks the language of the snake.

That's also how in the first book HP speaks to the snake in the Zoo, how he almost got put into House Slytherin by the hat in the first book, how he hears the Basilisk in book two and so on.

So in some weird way, yes, Henry Porter has snake in him or at least is very deeply connected to snakes. There's probably only one single person in the entire HP world alive during the movies that's more connected to Snakes than HP, which would be Voldemort himself. Him put aside, he's the most snake person in the entire universe.

4

u/dev_vvvvv 19h ago

You know who (as if you're a book character)

unexist

Henry Porter

I can't decide which part of this comment I hate the most.

1

u/Suspicious_State_318 12h ago

What character is Go?

1

u/kishaloy 12h ago

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

1

u/j_torres_493 6h ago

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

7

u/prodaljavame 17h ago

Harry Potter and The Chamber of Undefined Behavior

6

u/dhnam_LegenDUST 23h ago

Using AI swarm, of course.

8

u/Satanich 22h ago

Not in Mold++?

3

u/Few_Kitchen_4825 23h ago

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

3

u/Cylindt 22h ago

J.K RUSTING

3

u/ShaderCompilation 22h ago

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

3

u/mondie797 13h ago

Using LLM... LOL

3

u/green_meklar 13h ago

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

3

u/NotTheDev 10h ago

neverSpoilThePunchLineInTheTitle

8

u/VoidZero25 23h ago

Will Malfoy be refractored to inherit the Female Class instead?

4

u/LovelyWhether 16h ago

this time, with extra racism and bigotry!

2

u/heavy-minium 23h ago

With AI, of course

2

u/notmyaccountbruh 23h ago

type Wizard = Harry

2

u/gameplayer55055 22h ago

Harry Potter and the borrow checker

2

u/Rashicakra 21h ago

dumbledore.drop();

2

u/Striky_ 21h ago

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

2

u/leropo00 16h ago

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

So this would be series about Hermione then?

5

u/Olivex727 21h 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"

3

u/soupgate 22h ago

"Rowling, make no mistakes"

3

u/traxdata_88 22h ago

Why did I love this so much

3

u/astralseat 21h ago

Rust the game?

7

u/maninthesky-95 20h ago

The oxidation of iron

1

u/the_horse_gamer 19h ago

actually the language is named after a fungus

2

u/ResoluteStoic 15h ago

So J.K. Rowlings pussy?

1

u/maninthesky-95 19h ago

Gus fring? He's not very fun

1

u/Facts_pls 19h ago

Would've guessed the opposite

2

u/HolidayAd9912 15h ago

Rust the COD map?

1

u/SnortinCheese 18h ago

You wanna take this to oxums, bitch?! 😤

1

u/astralseat 16h ago

Not sure what that is

2

u/SnortinCheese 15h ago

Oxums? The gas station from the game?

→ More replies (1)

7

u/barsonica 22h ago

fuck jfk

-11

u/CrimsonPiranha 22h ago

Keep crying 😂

-3

u/[deleted] 20h ago

[removed] — view removed comment

5

u/Davixxa 17h ago

* Beira’s place exists exclusively as a response to other women’s shelters being trans inclusive.

→ More replies (15)

12

u/nwillard 19h ago

One look at her Twitter feed, she is unfortunately unhinged and absolutely obsessed with anti-trans activism, it is every post she makes on there, still, even just this past entire week. Like she is bizarrely still so obsessed with this!

→ More replies (43)

3

u/Good_Analysis9789 22h ago

Terf! Blurgghlurgle!

1

u/jbbarajas 23h ago

All_bus.genDr="geh" or something

1

u/findfashon 23h ago

Finally we'll get Draconia

1

u/hellraisorjethro 22h ago

So there Will be no slughorn storyline?

1

u/flayingbook 22h ago

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

1

u/ElectricSpock 22h ago

After last weeks events I think Lean might be more suitable

4

u/threewholefish 22h ago

There is no consistent logic in Harry Potter, unfortunately

1

u/_w62_ 22h ago

What is the situation of her right cheek?

1

u/mrrask 22h ago

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

1

u/Feisty-Newt-7841 21h ago

Harry Potter and the Half Coded Rust !!

1

u/Zealousideal_Ad_6374 21h ago

Will be much faster and safer too.

1

u/sirduke75 20h ago

Ron gets a character upgrade because of his hair color.

1

u/riesenarethebest 19h ago

Why's everyone converting stuff to Rust?

1

u/Cobracrystal 12h 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 12h ago

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

1

u/Astrid944 18h 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 18h ago

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

1

u/Big-Dick-Energy-6967 14h 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 14h ago

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

1

u/Embarrassed_Cap_9149 13h ago

she'll love it!👍

1

u/m0rpeth 9h ago

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

1

u/ChalkyChalkson 6h ago

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

1

u/benevolentempireval 5h ago

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

1

u/mckenzie_keith 22h ago

C-exclusionary. I can't believe I read her books to my child.

1

u/lucid_supernova 18h ago

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

1

u/ceidways 17h ago

Finally a good fucking shitpost. I chuckled.

-3

u/son_of_abe 23h ago

thigh socks joke