-
Notifications
You must be signed in to change notification settings - Fork 0
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
Quoting function is slow when quoting itself. #11
Comments
This isn't surprising is it? The term that you are constructing is 78 thousand lines of code. It is quoting ever single constructor in the Ast.term data type representation. If you have suggestions on how to improve the performance, feel free to note them. |
I'm trying to implement Löb's theorem and type-theoretic quines. Writing a quine requires being able to quote the Perhaps let-expanding strings, so that each string is only mentioned once in the quoted term, would speed things up? |
Let-declaring the strings would probably be helpful, I'm not certain that it would be enough, but it would be better. Then you would end up with the problem that quoting a quoted term would have extra "let" declarations at the head. |
Happy to reopen if there are ideas on how to handle the performance problem. A more concise representation? Would hashconsing be enough? For now, I think that should be marked as wontfix. |
Functorized the unquote_term function
Here is code that takes a while to run:
Any chance of making this faster?
The text was updated successfully, but these errors were encountered: