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

IDEA: Change all the two-char functions #11

Open
iounpaladin opened this issue Jun 18, 2016 · 7 comments
Open

IDEA: Change all the two-char functions #11

iounpaladin opened this issue Jun 18, 2016 · 7 comments

Comments

@iounpaladin
Copy link

You could change the two-char atoms to either overloads of other atoms, or one-char atoms. I assume there isn't already 256 used bytes.

Sorry for typos, I'm on mobile.

@ConorOBrien-Foxx
Copy link

How do you suggest overloading? Considering that atoms have fixed arity, you might be referring to type overloading. If you are, I don't see how this would save many bytes, in the long run.

@zacharyacutey
Copy link

What about the two-char nilads? Those could possibly be copied into the unused nilad bytes.

@GolfingSuccess
Copy link
Contributor

GolfingSuccess commented Dec 9, 2016

I think that once they are assigned their two-byte names, they cannot change, because it will break each and every PPCG answer using them at all. Maybe newer nilads could go to one-byte names.

@zacharyacutey
Copy link

That's why I said copied.

@GolfingSuccess
Copy link
Contributor

GolfingSuccess commented Dec 9, 2016

Nah, that would be impractical and wasteful. Newer nilads could use that space! Or, make a second version of the language to transfer them and use 2 bytes for newer ones.

@zacharyacutey
Copy link

zacharyacutey commented Dec 9, 2016

Well, at least nilads like pi should be a single-byte as well as a double-byte.

@GolfingSuccess
Copy link
Contributor

See my edited message.

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

4 participants