Hacker News new | ask | show | jobs
by ClumsyPilot 2451 days ago
Is is fine, or suboptimal to the point of being impractical? Genuine question, how bad is this, if quanified?
4 comments

You need to use reference counting or a scoped memory pool. It's totally fine in almost all cases.

Refcounting in Rust is still faster than refcounting in ObjC or Swift (because Rust can avoid using atomics or increasing counts in many cases), but people who use Rust tend to insist on zero overhead, and a truly flexible zero-overhead solution can't be verified statically.

It is fine and practical.
Adjacency matrices are trivial to implement in Rust. I leverage graphs constantly.
It's slow.