Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out how to recycle it's in the REPL #857

Open
rahulmutt opened this issue Aug 21, 2018 · 0 comments
Open

Figure out how to recycle it's in the REPL #857

rahulmutt opened this issue Aug 21, 2018 · 0 comments
Labels
discussion repl Issues related to the REPL

Comments

@rahulmutt
Copy link
Member

Description

The Eta REPL now generates a unique it[n] for every expression that is evaluated in the REPL, and there is currently no way to tell the REPL to release an existing it[n] from the heap.

@paulp suggested using SoftReference's but that would mean that a long running REPL session would silently drop heap references in eta-serv without the compiler knowing about it which would lead to unexpected exceptions if the GC'd reference is used again. We would need to think carefully about the consequences before implementing a solution for this.

In general, how do we know that a user no longer needs an expression in the REPL? Maybe it's just a matter of giving the user a REPL command like :kill [n] that will kill an it[n]?

@rahulmutt rahulmutt added discussion repl Issues related to the REPL labels Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion repl Issues related to the REPL
Projects
None yet
Development

No branches or pull requests

1 participant