Live data from Hacker News

Completing a BASIC language interpreter in 2025

nanochess.org

21–22 of 22 posts

Re: Completing a BASIC language interpreter in 2025

#21

Earlier quoted context omitted.

I was fortunate to have learned to code in an environment where a lot of excellent programmers were kind enough to help me out. For example, my roommate showed me how stacks worked. It was like magic!

For me the big coin drop was arrays. That took a while.

For me something similar. I was using lots of if-then for the program logic, and a fellow student showed me how to replace that with an array. Wow!

Another epiphany was when I was reading the source code for ADVENT (the original Adventure game). There was a comment in the listing "A troll is a modified dwarf". And voila! I discovered inheritance.

Re: Completing a BASIC language interpreter in 2025

#22

> a new BASIC interpreter for the 1983 Mattel ECS add-on for Intellivision Fun fact: Hal Finney (yes, that Hal) wrote a BASIC interpreter for the Intellivision back in 1978 or so in a weekend. It was 2K of code. Mattel shipped it on a cartridge. ROM space was so tight, the only error message it produced was: EH? Which Hal was very proud of. He showed it to me to make me laugh. At the time I was programming the Mattel…

For anyone interested there's tinybasic, which will run on something as small as an Arduino.

https://github.com/slviajero/tinybasic

Post reply on HN