Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move most of Vector to MemSpan #1307

Open
Tracked by #1314
alex-s168 opened this issue Mar 5, 2025 · 1 comment
Open
Tracked by #1314

move most of Vector to MemSpan #1307

alex-s168 opened this issue Mar 5, 2025 · 1 comment
Assignees

Comments

@alex-s168
Copy link
Contributor

Add a new type MemSpan which represents a re-allocatable, contigious, mutable, owned collection.
It should not be used direclty, but instead serve as backing collection type for things like Vector and future collection types.
This should provide a safe interface to libc's realloc and also take care of ownership of the inner elements (when resizing or freeing)
Important for preventing errors!

(assign me please)

@alex-s168 alex-s168 mentioned this issue Mar 5, 2025
19 tasks
@andrew-johnson-4
Copy link
Owner

A Sized<x> that "takes care of ownership of the inner elements" is interesting. The problem of safely typed memory allocations with only minimal structural typing is hard but worthwhile.

Thoughts on a minimal memory model so far: https://github.com/andrew-johnson-4/LSTS/wiki/Memory-Model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants