Skip to content

Comment on Code Golfing in Commodore BASICparent

Comments

Doesn’t BASIC tokenize those abbreviations to the exact same in-memory bytes like the full keywords?

Yes. Mentioned in the link as well: "As a program is typed into the BASIC interpreter, it's tokenised: any keywords in the line get replaced by token values before being stored in memory. We can see in this line that SAVE has been replaced by command token $94".

Yes it does but the amount of bytes the author speaks about regards the amount of characters used for storing the program. That's why he uses the : and removes the spaces.

The stored version also uses token code points (single bytes >127), not literal tokens.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.