Improving memory safety #22
Labels
bug
Something isn't working
enhancement
New feature or request
help wanted
Extra attention is needed
runtime
Related to runtime (JS or VM)
Milestone
Plume doesn't deal with memory management within the virtual machine. This is a real issue due to memory leaks, so to resolve this issue, we might implement an algorithm for memory management:
Reference counting seems to be the solution for now, but it requires some modifications in Plume:
drop
which would describe two functions:ref
, andderef
This solution needs also to resolve issues with primitive types such as
int
andfloat
. These types do not need to be referenced or dereferenced as they're primitive values, raw values on the stack. This could be achieved either directly during type-checking or during the type-erasure step.The text was updated successfully, but these errors were encountered: