Follow

"Don’t write a Linked List library: they are hard to do well, and usually useless. Use VecDeque"

diziet.dreamwidth.org/13476.ht

@lupyuen I wonder if it's really possible to write a *safe* linked list library :0120: Even if it is, the performance is likely to be quite low because of runtime ownership checking...

@CiYue @lupyuen I think so: it becomes safe with VecDeque and mutex on insert(), remove() and get_mut() operations.

@CiYue @lupyuen You stars by imposing immutability on the elements and using a copy-on-write scheme.

@lupyuen
Well, one expect that in a "modern" language a linked list would come in the standard library… 😅😅😅

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.