hilbix / L

Minimalistic Embedded Language
Other
0 stars 0 forks source link

L needs a Reference counting Memory Management #7

Open hilbix opened 2 years ago

hilbix commented 2 years ago

5 shows that managing memory is not as easy as it looks like

L should be easy to embed, so complex memory management which needs time to debug is a no-go.

So if a quick look at the code does not give a clear clue where memory is wasted, this needs a redesign (and easy to use memory profiling tools).

hilbix commented 2 years ago

L must not use something like a mark and sweep garbage collector like in Java or JavaScript. But managing memory references is quite too complex. Also a lot of duplication of data will happen, like substrings etc. So we crucially need something like reference counting.