News for hackers. Stuff that matters.
Re:Rust: A Critical Retrospective by int_19h on Thursday May 19, 2022 @08:43PM (#31442072)
ARC is not "fairly similar" to idiomatic Rust. ARC is not idiomatic in Rust; it's a fallback for when you can't make do with lifetimes and borrowing.
Re:Rust: A Critical Retrospective by j-james on Thursday May 19, 2022 @09:43PM (#31442411)
Nim passes by value by default, which eliminates much of the complexity overhead of lifetimes and borrowing in most programs. (the compiler does optimize some of these into moves.)

But when you do want to pass by reference: that's where Nim's move semantics come in. These are what are fairly similar to Rust's lifetimes and borrowing, and what the paste.sr.ht link briefly goes over.

If you're interested, you can read more about Nim's move semantics here:

https://nim-lang.org/docs/destructors.html

Re:Rust: A Critical Retrospective by steveklabnik on Thursday May 19, 2022 @10:31PM (#31442687)
Note that rust doesn’t have ARC; there is an atomic reference counted pointer, but it’s not automatic, which is what the a in ARC stands for.
Re:Rust: A Critical Retrospective by darthrupert on Friday May 20, 2022 @09:55AM (#31447425)
Tongue in cheek: Then it's exactly like (modern) Nim, only that Nim does the fallbacking automatically as needed ;) There are lots of devils in the details, I assume.