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

Wrapping would increase golfability #10

Open
sparr opened this issue Dec 7, 2019 · 0 comments
Open

Wrapping would increase golfability #10

sparr opened this issue Dec 7, 2019 · 0 comments

Comments

@sparr
Copy link

sparr commented Dec 7, 2019

If the IP goes off the playing field, the program will terminate.

This aspect of the language surprised me, especially given that both the predecessor languages have wrapping.

Not having wrapping means that the three corner cells must have IP redirection instructions unless they are the last instruction of the program, and also requires edge cells to redirect the IP if it's not already traveling along the edge.

The README doesn't explicitly mention golfing as a goal or use for the language, so maybe I'm off base here, but so far that seems to be where the language is being used. Not wasting instructions on lack of wrapping would reduce golfing character counts in many use cases.

The only con is that it would require & in programs that don't already use it.

If there is interest in this change I could produce some example programs with and without wrapping to compare size and complexity.

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

1 participant