Re:Zkeme80 – A Forth-Based OS for the TI-84+ Calculator
by int_19h on Sunday January 20, 2019 @12:37AM
(#18951387)
In addition to other comments, as I understand, bootstrapped Forth and similar languages usually compile down to code that is not optimal speed-wise, but a lot more compact that usual, because it's basically all CALL instructions (i.e. every word definition defines a function, and every use of the word inside the definition is a call to the corresponding function). This can be a desirable trade-off when you're dealing with a platform that has, say, 8 kilobytes of RAM to work with for all your code.
[ Parent
| on HN ]
Re:Zkeme80 – A Forth-Based OS for the TI-84+ Calculator
by vanderZwan on Sunday January 20, 2019 @05:44AM
(#18952384)
> (i.e. every word definition defines a function, and every use of the word inside the definition is a call to the corresponding function)
Yeah, which supposedly brings one of the big downsides of Forth, which is that one easily ends up with a program that has been refactored too aggressively into smaller words.