jellylanguage icon indicating copy to clipboard operation
jellylanguage copied to clipboard

IDEA: Change all the two-char functions

Open iounpaladin opened this issue 9 years ago • 7 comments

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.

iounpaladin avatar Jun 18 '16 03:06 iounpaladin

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.

ConorOBrien-Foxx avatar Jun 18 '16 17:06 ConorOBrien-Foxx

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

zacharyacutey avatar Dec 08 '16 21:12 zacharyacutey

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.

GolfingSuccess avatar Dec 09 '16 12:12 GolfingSuccess

That's why I said copied.

zacharyacutey avatar Dec 09 '16 12:12 zacharyacutey

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.

GolfingSuccess avatar Dec 09 '16 12:12 GolfingSuccess

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

zacharyacutey avatar Dec 09 '16 12:12 zacharyacutey

See my edited message.

GolfingSuccess avatar Dec 09 '16 12:12 GolfingSuccess