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

suspect SBCL declaim optimize form #4

Open
slyrus opened this issue Apr 15, 2019 · 1 comment
Open

suspect SBCL declaim optimize form #4

slyrus opened this issue Apr 15, 2019 · 1 comment

Comments

@slyrus
Copy link
Member

slyrus commented Apr 15, 2019

There's a (declaim (optimize (debug 2))) form at the top of node.lisp. I think this is an attempt to ensure that tail calls are optimized so that we don't blow the stack. The problem is that this doesn't take effect when the compiler policy is restricted and may lead to globally setting the optimization forms (the spec says its undefined if this happens).

Thoughts on how to fix this?

@ruricolist
Copy link

I deleted this and all the similar declaim forms from STP years ago in FXML, and never missed them.

According to git-blame the declaim forms have always been there. Since (debug 2) is the default, my guess was that STP was written in an environment with non-standard global optimization declarations in effect, and the declaim forms were included during development and never removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants