Tiny Basic
2009-10-28 06:16:48.787436+00 by
Dan Lyke
3 comments
A month or two ago I was kicking myself for not having implemented a little interpreter and environment to drive some embedded prototyping I was doing. I had a bunch of primitives, all accessible by a basic command line, but no control structure or way to write sets of commands back to disk.
I think Itty Bitty Tiny Basic is exactly what I was looking for.
[ related topics:
Embedded Devices
]
comments in ascending chronological order (reverse):
#Comment Re: made: 2009-10-29 10:02:50.926116+00 by:
spc476
I'm guessing Lua is just too big? Otherwise, at 17,000 lines of ANSI-C you get quite a fun language (garbage collection, lambdas, closures, coroutines and easily extendable and embeddable).
#Comment Re: Sinclair BASIC made: 2009-10-29 12:06:01.153658+00 by:
jeff
[edit history]
The smallest Basic I ever used was the tiny (4kb ROM) Sinclair BASIC implemented on the Sinclair ZX80 (the first computer I ever purchased). I sold the computer to a Chinese research scientist in 1982, before upgrading to the ubiquitous Commodore 64 in 1983.
#Comment Re: made: 2009-10-29 15:55:59.985713+00 by:
Dan Lyke
I didn't go with Tcl or Lua because I was managing my memory map manually (no malloc()
), so I wanted something that had its own allocator, and it needs to be a full-on environment: I can shut the device down, grab the SD card, bring it over to a PC and change things, take it back to the device and boot it, but a BASIC environment includes a line editor.