0x0@lemmy.zip to Programmer Humor@programming.dev · 11 天前race conditionslemmy.zipimagemessage-square87fedilinkarrow-up1879arrow-down125
arrow-up1854arrow-down1imagerace conditionslemmy.zip0x0@lemmy.zip to Programmer Humor@programming.dev · 11 天前message-square87fedilink
minus-squareILikeBoobies@lemmy.calinkfedilinkarrow-up42·11 天前Why is the crab not Rust. This is outrageous, it’s unfair
minus-squared_k_bo@feddit.orglinkfedilinkarrow-up37arrow-down1·edit-211 天前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·11 天前rust errors are funny if you don’t know rust
minus-squaremilicent_bystandr@lemm.eelinkfedilinkarrow-up13·11 天前 News at Ten: Borrowed Data Escapes Outside of Associated Function
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up8·11 天前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·edit-210 天前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@sh.itjust.workslinkfedilinkarrow-up0·11 天前you can still segfault in rust iirc
minus-squarejenesaisquoi@feddit.orglinkfedilinkEnglisharrow-up1·10 天前Not 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·10 天前I guess they fixed the weirdness involving calling main later in the program
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up1·10 天前As in, you call main() recursively? Don’t think, I’ve ever tried that in any language…
minus-squarejumping_redditor@sh.itjust.workslinkfedilinkarrow-up0·10 天前https://github.com/Speykious/cve-rs
Why is the crab not Rust. This is outrageous, it’s unfair
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.
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…https://github.com/Speykious/cve-rs