FastBasic 4.0 Arrives for the 2019 Ten-Liner Season
In late February 2019 Daniel Serpell (dmsc on AtariAge) published FastBasic 4.0, a new major version of his compact, structured BASIC for the Atari 8-bit. He pitched it squarely at programmers preparing entries for that year's BASIC 10-Liner contest, where FastBasic had become a popular choice because of its speed and its very short abbreviated keywords.
What changed under the hood
The headline change is invisible to the user: the interpreter was rebuilt from a pure stack-based virtual machine into a register-plus-stack design. According to the author, this makes typical programs 10–20% faster. In the classic SIEVE benchmark the native Atari version gained about 13% and the cross-compiled version about 19%, and programs that lean heavily on PEEK and POKE benefit even more.
Version 4.0 also introduced a full automated test suite for the parser and interpreter, so that fixed bugs stay fixed between releases.
New for programmers
FBC.COM, a command-line compiler that runs on the Atari itself. It can compile programs too large to fit alongside the full-screen editor, and it accepts the full floating-point syntax.- First Player/Missile graphics support:
PMGRAPHICS(abbreviatedPM.) sets up P/M graphics,PMHMOVE(PMH.) moves a player or missile horizontally, andPMADR()returns the address of a player's or missile's data area. - Many small bug fixes.
Despite the additions, the integer-only IDE stayed just under 8 KB (8,188 bytes), with the floating-point IDE at 9,405 bytes.
In the release thread the author also answered questions from users. Pressing ESC before a key in the IDE lets you type graphics characters that would otherwise be read as editor commands. The cross-compiler already accepted Atari OS symbol names with an @ prefix (e.g. POKE @CRSINH, 0). He also floated a possible syntax for Action!-style variables placed at fixed memory addresses. He pointed out that FastBasic is still an interpreter, so it would not beat a true compiler such as Action!, but said the language had been designed so that it could be compiled later.
Why it matters
FastBasic 4.0 began a run of steady yearly releases that turned it into one of the most widely used modern languages on the platform. P/M graphics, DLI support (version 4.3) and later the Atari 5200 target all grew from this release.
Getting it
Sources and binaries for the Atari, Linux, Windows and macOS are on the project's GitHub releases page (github.com/dmsc/fastbasic/releases). Later versions are recommended for new work; the first post of the release thread was later edited to point to them.
Credits
- AtariAge — FastBasic 4.0 - Tenliners'19 release — AtariAge forum members
