Re:Dada, an Experiement by the Creators of Rust
by rcxdude on Wednesday March 06, 2024 @09:42AM
(#39616423)
Reference counting and locks often is the easy path in Rust. It may not feel like it because of the syntax overhead, but I firmly believe it should be one of the first solutions on the list, not a last resort. People get way too fixed on trying to prove to the borrow checker that something or another is OK, because they feel like they need to make things fast, but it's rare that the overhead is actually relevant.
[ Parent
| on HN ]
Re:Dada, an Experiement by the Creators of Rust
by 12_throw_away on Wednesday March 06, 2024 @01:47PM
(#39619528)
Yes! Thank you! Dunno what it is about Rust that makes everyone forget what premature optimization is the root of all of.
Re:Dada, an Experiement by the Creators of Rust
by bombela on Wednesday March 06, 2024 @03:10PM
(#39620746)
The zero cost abstraction is so tantalizingly close enough to reach!
I tell everybody to .clone() and (a)rc away and optimize later. But I often struggle to do that myself ;)
Re:Dada, an Experiement by the Creators of Rust
by int_19h on Wednesday March 06, 2024 @05:06PM
(#39622300)
If it's syntactically messy, though, it's not really the easy path. Ergonomics matter just as much as semantics.
I do think that a superset of Rust that provided first-class native syntax for ARC would be much more popular.