logoalt Hacker News

afdbcreidlast Tuesday at 10:03 PM2 repliesview on HN

That's just false. You can use `Arc` or even one of the safe GC crates available, and get semantics like Java with no `unsafe`.


Replies

pronyesterday at 7:27 PM

You can't get the same semantics (e.g. no leaks) and you certainly can't get the same performance.

bluecalmyesterday at 1:14 PM

Yeah but that doesn't work for any kind of performant code which is the reason people who write those data structures use unsafe. This is one very annoying thing about Rust community. The language sucks for coding self-referencing data structures with unpredictable free patterns. This is a fact and the reason number of people on this very forum posted long articles about moving away from Rust for those purposes.

Your "actually you can" post is just misleading and will result in more people who will get burnt but the design of the language.

show 1 reply