|
|
|
|
|
by progman
3434 days ago
|
|
I'm reminded of my good old Forth times (6502 on Commodore PET), and I'm glad that Forth gets the increasing attention which it actually deserves. I don't know if there is any other programming environment at all where you can have a extensible programming language, editor, compiler, interpreter, debugger, libs, and interactive shell in a few KB. |
|
uLisp [0], 2kb of RAM, and 32kb to store the interpreter in. You can write programs at the REPL, and burn them into the EEPROM.
TinyBASIC [1], since dead, is a port of the version of BASIC that used to run on the Altair 8800, which was an even more constrained system than most PETs! Altair BASIC could run on 4kb of RAM.
Python-On-A-Chip [2], is a subset of Python. At a guess, from the supported platforms, it can run on around 2kb of RAM.
iArduino [3], is a C interpreter that can run in 2kb of RAM.
MicroPython is looking to come to the ESP8266 [4], which is much, much bigger at 512kb. Which basically makes it the fattest of these, and impossible to run on something like the PET.
Bitlash is a completely new language [5], and can run on 2kb of RAM, and takes up surprisingly little storage space.
All of these languages offer at least a REPL, as well as compatibility with a wide range of libraries, and most have at least traceback and exception support.
This is not to say Forth is a bad choice! It works great in tiny memory, with better support for a full language specification than many other languages.
But not everyone wants a Forth... And there are plenty of choices out there.
[0] http://www.ulisp.com/
[1] http://hackaday.com/2011/08/28/basic-programming-on-an-ardui...
[2] https://github.com/jsnyder/python-on-a-chip
[3] http://n.mtng.org/ele/arduino/iarduino.html
[4] https://github.com/micropython/micropython/tree/master/esp82...
[5] https://github.com/billroy/bitlash/wiki