Thoreau BASIC: Line-numbered BASIC with 64-bit, JIT, graphics, and MIDI synthesis
Modern reimagining of 1980s BASIC adds native x64 JIT compilation (12-20x speedup), 24-bit graphics, wavetable audio, and multicore support while preserving the simplicity of the original language.
- Thoreau BASIC preserves GW-BASIC syntax while adding 64-bit memory, JIT compilation, and modern multimedia.
- 12-20x performance speedup on numeric code through x64 bytecode and SIMD acceleration.
- UEFI bootable support: write bare-metal applications in BASIC instead of assembly.
Thoreau BASIC, a modern reimagining of the 1980s BASIC language, brings 64-bit computing, native x64 JIT compilation (12-20x performance boost), and modern multimedia capabilities to a language that dominated personal computing four decades ago. The project, created by Tarjan, is free and available for Windows and UEFI-compatible x86-64 systems.
What makes it modern
Thoreau BASIC preserves the line-numbered, GOTO-based syntax of GW-BASIC while adding 21st-century capabilities that would astound 1980s programmers:
- 64-bit memory and native x64 JIT compilation for 12-20x speedups on numeric code
- 24-bit graphics at any resolution with sprite support
- General MIDI/GS wavetable synthesis with 32 instrument channels and 64 sound effects
- Audio playback of MIDI, WAV, FLAC, and Ogg Opus with reverb, chorus, and delay effects
- Networking via TCP/IP and HTTP
- Advanced math including complex numbers, quaternions, and octonions
- Multicore support with PARFOR for parallel numeric loops
- Standalone compilation to Windows EXE or UEFI bootable EFI files
Core features
The language retains BASIC's accessibility—PRINT, PSET, LINE, CIRCLE, GOSUB, IF/THEN—while adding modern constructs like safe conditional expressions (IIF()), file I/O, and arrays with dimensions up to 12 billion elements.
Performance is dramatically improved through x64 bytecode compilation and JIT execution. Numeric loops benefit from SSE2/AVX2 SIMD acceleration where supported, and the compiler automatically tunes parallel work across CPU cores.
Use cases: education, bare-metal, and nostalgia
Thoreau BASIC targets four distinct audiences:
-
Educational: A simple, nostalgic introduction to programming that runs natively without complex setup.
-
Bare-metal systems: Write bootable UEFI applications in BASIC instead of assembly. Hackaday reported that "all the best computers boot to BASIC"—Thoreau BASIC makes this practical.
-
Rapid prototyping: Direct, interactive programming with immediate graphics and sound feedback speeds up experimentation.
-
Mathematical computing: Complex number and quaternion support make it suitable for technical and scientific workloads.
Current status and availability
Thoreau BASIC v3.2 is production-ready and free. Downloads are available from itch.io and thoreaubasic.com. Active development continues with recent versions adding audio support (v3.0+) and multi-threading via PARFOR (v2.5.1+).
The project demonstrates that language nostalgia combined with modern capabilities appeals to developers—a retro syntax frontend with contemporary performance and multimedia unlocks use cases that pure modern languages miss. For educational institutions and hobbyists, Thoreau BASIC closes a gap: a language fun to learn that doesn't sacrifice practical capability.
Why it matters: As AI agents increasingly need to control graphics, sound, and compute-intensive tasks, accessible languages with multimedia support matter. Thoreau BASIC proves that reviving a beloved language with modern internals can reach audiences that modern languages overlook—and that line-numbered programming, dismissed as outdated, remains surprisingly effective for interactive system programming and education.
The Appboxs newsroom covers launches, funding, acquisitions, pricing changes and AI across the SaaS and no-code world. Every story links to its primary sources. Have a tip, a correction or a story we should cover? Send it through our contact page.