News for hackers. Stuff that matters.
Re:Go 2, here we come by amelius on Thursday November 29, 2018 @06:02PM (#18564992)
You're not the only one having trouble writing basic data structures in safe Rust: [1]

[1] https://rcoh.me/posts/rust-linked-list-basically-impossible/

Re:Go 2, here we come by int_19h on Thursday November 29, 2018 @09:54PM (#18566239)
Of course, if you're comparing with Go, you need to compare apples to apples - since Go doesn't have ownership tracking, the equivalent Rust would necessarily have to be unsafe.
Re:Go 2, here we come by amelius on Friday November 30, 2018 @04:55AM (#18567972)
Yeah but Go has garbage collection. Rust's ownership model makes up for not having GC.
Re:Go 2, here we come by int_19h on Friday November 30, 2018 @03:21PM (#18572263)
I think that heap-allocating everything and using Rc<T> and Weak<T> would be a closer comparison to what Go does, than using idiomatic Rust with borrow-checked locals etc.