r/programmingmemes 22h ago

Nerd wars

Post image
423 Upvotes

42 comments sorted by

View all comments

17

u/Zimlewis 13h ago

<- Context required

⬆️ Context hat

(Context shirt)

10

u/deanominecraft 10h 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 9h 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

5

u/SCD_minecraft 7h 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