Don't leak source code #76
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: twc/ludus#76
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Right now, the interpreter leaks the source code; this was done to simplify lifetimes, and well, of course the source needs to live for the life of the program.
But now: I believe we're living as long as the browser session is open. And that means leaking source on every run. That means we'll keep chewing through memory as long as we keep running things. This seems less than ideal.
Same goes for keywords and interned strings: they should have a lifetime of
'src
, not'static
.Ah, me.
See also #36.