Don't leak source code #76

Open
opened 2025-07-04 15:46:21 +00:00 by scott · 1 comment
Owner

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.

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.
scott added this to the Expanded: CC2 milestone 2025-07-04 15:46:21 +00:00
scott added the
optimization
bug
labels 2025-07-04 15:46:21 +00:00
Author
Owner

See also #36.

See also #36.
scott modified the milestone from Expanded: CC2 to Post-CC2 2025-07-06 06:02:38 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: twc/ludus#76
No description provided.