News for hackers. Stuff that matters.
Re:How I went about learning Rust by pimeys on Friday July 15, 2022 @12:51PM (#32110161)
We solved this with flat vectors and just sharing index values in cheap walker objects. It is much nicer to work with compared to arc/weak pointers.

Code here: https://github.com/prisma/prisma-engines/tree/main/libs%2Fda...

Re:How I went about learning Rust by int_19h on Friday July 15, 2022 @04:20PM (#32112322)
How is this fundamentally different from raw pointers?
Re:How I went about learning Rust by dralley on Friday July 15, 2022 @07:44PM (#32113930)
Not OP

It serializes better, it's memory safe, it can be much faster in performance terms, you can get better memory usage if you're holding a lot of "pointers" because the indexes don't need to be 64 bits.

Re:How I went about learning Rust by int_19h on Saturday July 16, 2022 @04:03AM (#32116096)
But you lose all ownership tracking / safety that Rust is famous for.

I just can't help but wonder what it means for that paradigm, when the most popular answer to "how do I model my entities in safe Rust" is basically "backdoor the safety".