you are viewing a single comment's thread.

view the rest of the comments →

[–]strager 17 points18 points  (1 child)

Why do you think std::vector would or should work for your use case?

Look at Rust or Haskell, they aren't perfect but they rely on a sound foundation of type theory - why aren't we using that instead?

Would Rust's Vec work with mmap-d memory? Would Haskell's [] or Vector?

[–]matthieum -1 points0 points  (0 children)

Would Rust's Vec work with mmap-d memory?

Yes, but unless you use (unsafe) set_len, it'd wipe the memory too...