0x0@lemmy.zip to Programmer Humor@programming.dev · 1 day agorace conditionslemmy.zipimagemessage-square76fedilinkarrow-up1803arrow-down121
arrow-up1782arrow-down1imagerace conditionslemmy.zip0x0@lemmy.zip to Programmer Humor@programming.dev · 1 day agomessage-square76fedilink
minus-squared_k_bo@feddit.orglinkfedilinkarrow-up36arrow-down1·edit-21 day agoRust would be some borrow checker compile error like borrowed data escapes outside of associated function argument requires that `'1` must outlive `'static`
minus-squarepewgar_seemsimandroid@lemmy.blahaj.zonelinkfedilinkarrow-up16·1 day agorust errors are funny if you don’t know rust
minus-squaremilicent_bystandr@lemm.eelinkfedilinkarrow-up11·24 hours ago News at Ten: Borrowed Data Escapes Outside of Associated Function
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up8·1 day agoThose also happen to be errors you’d typically run into, if you don’t yet really know Rust…
minus-squared_k_bo@feddit.orglinkfedilinkarrow-up2·edit-219 hours agoI do run into them even though I use Rust for ~3 years now, but only in non-obvious cases, e. g. when all references to the borrowed data are dropped before the end of the function.
minus-squarejumping_redditor@sh.itjust.workslinkfedilinkarrow-up0·1 day agoyou can still segfault in rust iirc
minus-squarejenesaisquoi@feddit.orglinkfedilinkEnglisharrow-up1·16 hours agoNot in safe Rust. Only if you explicitly tell the compiler “I got this, don’t worry” but then fuck up.
minus-squarejumping_redditor@sh.itjust.workslinkfedilinkarrow-up0·14 hours agohttps://github.com/Speykious/cve-rs
minus-squarejumping_redditor@sh.itjust.workslinkfedilinkarrow-up0·14 hours agoI guess they fixed the weirdness involving calling main later in the program
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up1·11 minutes agoAs in, you call main() recursively? Don’t think, I’ve ever tried that in any language…
Rust would be some borrow checker compile error like
borrowed data escapes outside of associated function
argument requires that `'1` must outlive `'static`
rust errors are funny if you don’t know rust
Those also happen to be errors you’d typically run into, if you don’t yet really know Rust…
I do run into them even though I use Rust for ~3 years now, but only in non-obvious cases, e. g. when all references to the borrowed data are dropped before the end of the function.
you can still segfault in rust iirc
Not in safe Rust. Only if you explicitly tell the compiler “I got this, don’t worry” but then fuck up.
https://github.com/Speykious/cve-rs
I guess they fixed the weirdness involving calling main later in the program
As in, you call
main()
recursively? Don’t think, I’ve ever tried that in any language…