ZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 2 months agoPointers explained:lemmy.worldimagemessage-square12linkfedilinkarrow-up18arrow-down12
arrow-up16arrow-down1imagePointers explained:lemmy.worldZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 2 months agomessage-square12linkfedilink
minus-squareMonkderVierte@lemmy.ziplinkfedilinkarrow-up0·2 months agoSo, googling it, the general premise is you should use smart pointers instead to avoid crashes. Got it.
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up0·edit-22 months agoThey all have footguns that cause different crashes. If you want to do explicit memory access without inevitable safety problems, you need Rust. That’s the whole hype with Rust.
minus-squareMonkderVierte@lemmy.ziplinkfedilinkarrow-up0·2 months agoBut… per-process-isolation is a hardware feature, no?
minus-squarepsud@aussie.zonelinkfedilinkEnglisharrow-up2·2 months agoSo you really should implement it in your compiler so you don’t contravene it
So, googling it, the general premise is you should use smart pointers instead to avoid crashes. Got it.
They all have footguns that cause different crashes.
If you want to do explicit memory access without inevitable safety problems, you need Rust. That’s the whole hype with Rust.
But… per-process-isolation is a hardware feature, no?
So you really should implement it in your compiler so you don’t contravene it