Skip to content

Ownership based memory management #213

Closed Answered by edubart
pocomane asked this question in Q&A
Discussion options

You must be logged in to vote

This is not being considered at the moment, but not completely out of the table. I think the ownership memory model is not simple or easy to use or fun for newcomers, the target audience of Nelua. I have ideas of making the compiler have strict safe rules using an improved GC first, perhaps after that for the non-GC side some other very simple memory model could be researched.

But I think more on the lines of using improved allocators or handles with generational ids, than the complicated Rust-like of borrowing for a safer manual memory management model.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by edubart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants