Rust compiler blocks borrow-scope risk while C happily jumps into uninitialized memory
rachittshah · x · 2026-10-15
A dev joke making the rounds contrasts the two languages' memory-safety philosophies: Rust refuses to compile because "reference x might outlive borrowed scope y on line 42," while C cheerfully casts an integer to a function pointer and jumps straight into uninitialized heap memory — "hell yeah brother, here's your binary."
More from Fun
- Musk retweets rider comparing Waymo favorably: Tesla skipped for slower, oddly routed Waymo trip — elonmusk · 2026-10-15
- ChatGPT spots a $20k tax mistake in Matthew Berman's prepared return — MatthewBerman · 2026-10-15
- Google Scientist Pokes Fun at the Flood of 'Looped' Paper Titles — docmilanfar · 2026-10-15
- AI safety worker: I took a nonprofit pay cut instead of a FAANG engineering job — austinc3301 · 2026-10-15
- AI Safety Drama: Nonprofit Fires Back at Claim It Exaggerates Risks to Sell Workshops — austinc3301 · 2026-10-15
- User has Claude visualize his migraine aura — and its diagnosis and pathway prediction are spot on — ZeroStateReflex · 2026-10-15