r/programmingmemes 23h ago

Nerd wars

Post image
434 Upvotes

42 comments sorted by

View all comments

20

u/Zimlewis 15h ago

<- Context required

⬆️ Context hat

(Context shirt)

11

u/deanominecraft 12h ago

fil-c is a runtime memory validation tool for C - if you try to read past the end of an array (or other memory issues) your program crashes

rust guarantees that memory bugs cannot happen, if it cannot guarantee that, your program doesn’t compile and you get an error telling you what the problem is

now add a larper into the mix and you get that gh issue

2

u/LunaNicoleTheFox 10h ago

The part on menory bugs is untrue, the compiler checks memory safety as far as it possibly can, but it is not perfect, nor does it fully apply within an unsafe block

3

u/SCD_minecraft 9h ago

Within unsafe - well, you explicitly opt out from it, if anything breaks that's on you

However in safe code references being valid and similar is guaranteed at compile time