0x0@lemmy.zip to Programmer Humor@programming.dev · 6 个月前race conditionslemmy.zipexternal-linkmessage-square87linkfedilinkarrow-up1882arrow-down125
arrow-up1857arrow-down1external-linkrace conditionslemmy.zip0x0@lemmy.zip to Programmer Humor@programming.dev · 6 个月前message-square87linkfedilink
minus-squared_k_bo@feddit.orglinkfedilinkarrow-up37arrow-down1·6 个月前Rust 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-up17·6 个月前rust errors are funny if you don’t know rust
minus-squaremilicent_bystandr@lemm.eelinkfedilinkarrow-up13·6 个月前 News at Ten: Borrowed Data Escapes Outside of Associated Function
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up8·6 个月前Those 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·6 个月前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.
minus-squarejumping redditor [they/them]@sh.itjust.workslinkfedilinkarrow-up0·6 个月前you can still segfault in rust iirc
minus-squarejenesaisquoi@feddit.orglinkfedilinkEnglisharrow-up1·6 个月前Not in safe Rust. Only if you explicitly tell the compiler “I got this, don’t worry” but then fuck up.
minus-squarejumping redditor [they/them]@sh.itjust.workslinkfedilinkarrow-up0·6 个月前https://github.com/Speykious/cve-rs
minus-squarejumping redditor [they/them]@sh.itjust.workslinkfedilinkarrow-up0·6 个月前I guess they fixed the weirdness involving calling main later in the program
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up1·6 个月前As 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 functionargument 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…