News for hackers. Stuff that matters.
Re:Using Rust at a startup: A cautionary tale by zozbot234 on Saturday December 03, 2022 @12:38PM (#33845317)
You can opt into runtime checking in Rust via interior mutability. Cell<>, RefCell<>, Rc<>, Arc<>, Mutex<>, Rwlock<> are constructs that involve varying levels of runtime checking. Most of these are way more efficient than GC. It's even simpler to use .clone() in order to effectively do away with any requirement for linearity.
Re:Using Rust at a startup: A cautionary tale by steveklabnik on Saturday December 03, 2022 @05:53PM (#33848335)
(Cell<T> doesn’t actually do runtime checking)