Post Reply 
SATURN BASIC for HP-48G/G+/GX, HP-49G and HP-49G+/50G
05-06-2015, 01:56 PM
Post: #16
RE: HRAST BASIC for HP-48G/G+/GX, HP-49G and HP-49G+/50G
(05-06-2015 01:26 PM)Claudio L. Wrote:  He also deserves credit not just for a relatively fast implementation

Giving that it is an interpreter it couldn't go faster without overcomplicating the tokenizer and using much more memory, and/or without removing various internal checks (free memory, for example) thus reducing stability.

(05-06-2015 01:26 PM)Claudio L. Wrote:  but for the shortest solution of all: only 5 lines of code!
Talk about code compactness.

Smile

I could even make it 4-liner because lines 3 and 4 can be concatenated. But this would be overkill.

The size of this program is 263 bytes. Without display statements at the end it is 207 bytes. And if we short the procedure name to 1 letter it is 197 bytes. I think this is really great size/speed ratio for a high-level interpreter.

https://www.hrastprogrammer.com/hrastwood/
https://hrastprogrammer.bandcamp.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HRAST BASIC for HP-48G/G+/GX, HP-49G and HP-49G+/50G - HrastProgrammer - 05-06-2015 01:56 PM



User(s) browsing this thread: 1 Guest(s)