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

"fix" deadfish overflow using ΙΧΘΥΣ to self-patch x >= 256 #7

hornc opened this Issue Oct 6, 2018 · 0 comments


None yet
1 participant

hornc commented Oct 6, 2018

Using only ΙΧΘΥΣ code, self-patch the interpreter so that the deadfish_overflow() reset to 0 is triggered when x >= 256 not just x == 256

See Deadfish for an explanation of 'deadfish arithmetic' and tests. This "fix" is to break the proper deadfish way.

Suggested Approach
Should be achievable by simply re-defining the builtin θ (squaring operator) to multiply x by x using repeated applications of ι (increment) and loops. Less 'simple' given that ΙΧΘΥΣ doesn't directly implement loops ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment