Flutterby™! : Tiny Basic

Next unread comment / Catchup all unread comments User Account Info | Logout | XML/Pilot/etc versions | Long version (with comments) | Weblog archives | Site Map | | Browse Topics

Tiny Basic

2009-10-28 07:16:48.787436+01 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 descending chronological order (reverse):

#Comment Re: made: 2009-10-29 16:55:59.985713+01 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.

#Comment Re: Sinclair BASIC made: 2009-10-29 13:06:01.153658+01 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 11:02:50.926116+01 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 policy

We will not edit your comments. However, we may delete your comments, or cause them to be hidden behind another link, if we feel they detract from the conversation. Commercial plugs are fine, if they are relevant to the conversation, and if you don't try to pretend to be a consumer. Annoying endorsements will be deleted if you're lucky, if you're not a whole bunch of people smarter and more articulate than you will ridicule you, and we will leave such ridicule in place.


Flutterby™ is a trademark claimed by

Dan Lyke
for the web publications at www.flutterby.com and www.flutterby.net.