ashtree74

1982 ZX Spectrum BASIC reimplemented in Rust → native + WebAssembly. An AI software-engineering experiment by Frontiers Lab. Live at experiments.frontierslab.ai/zxspectrum

10
0
89% credibility
Found May 27, 2026 at 10 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Rust
AI Summary

zxbasic-rust is a faithful recreation of the classic 1982 ZX Spectrum BASIC computer that runs entirely in a modern web browser. It reimplements the original interpreter from scratch—including the screen display, keyboard input, graphics commands, and sound effects—using modern technology. You can write BASIC programs, run them, and experience the authentic look and feel of that vintage computer without any downloads or installations. The project also compiles to run as a regular desktop application.

How It Works

1
🔍 You hear about a classic computer that runs in your browser

A friend tells you about a project that brings back the 1982 ZX Spectrum computer, and it runs right in a web browser without any downloads.

2
🖥️ You visit the website and see the familiar boot screen

The screen lights up with the exact copyright notice you remember from childhood, and the flashing cursor invites you to type.

3
⌨️ You type in a BASIC program from memory

Your fingers remember the old commands. You type 10 PRINT "HELLO" and LIST to see your program sitting there, just like old times.

4
▶️ You press RUN and watch your program come to life

HELLO appears on screen with the authentic Spectrum colors. You try drawing graphics with PLOT and hear the BEEP sound.

5
🎨 You experiment with colors, graphics, and sounds

You change the border color with BORDER commands, draw circles with CIRCLE, and hear the exact beeps you remember from decades ago.

🎉 Your program runs exactly as it did in 1982

The screen shows the authentic report line '0 OK, 0:1' when your program finishes, and you feel that same joy you felt as a kid with your first computer.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 10 to 10 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is zxbasic-rust?

zxbasic-rust is a from-scratch reimplementation of the 1982 ZX Spectrum BASIC interpreter, written in Rust and compiled to both native executables and WebAssembly. It faithfully recreates the original runtime behavior—the interpreter, line editor, calculator, screen, keyboard handler, and beeper—without emulating the underlying Z80 CPU. Instead, it reads the original assembly source as a specification and re-derives every behavior in idiomatic Rust. You can paste a program written for a real Spectrum and it runs, complete with the authentic 16-color palette, FLASH attribute cursor, and the exact "0 OK, 0:1" status line format.

Why is it gaining traction?

The hook here is authenticity plus accessibility. This isn't an emulator—it behaves like the original hardware at the BASIC level, but runs in a browser as a tiny WebAssembly module. The project also serves as a proof-of-concept for AI-assisted software engineering, having been built in hours by a single developer using AI tooling rather than months of specialized work. Developers interested in retro computing or language implementation can study a clean Rust state machine that faithfully reproduces 40-year-old behavior.

Who should use this?

Retro computing enthusiasts who want to run authentic Spectrum BASIC programs without emulating vintage hardware. Developers curious about high-level emulation versus CPU simulation. Anyone building browser-based retro computing demos or educational tools about BASIC-era programming. The WebAssembly target makes it trivial to embed in any web project.

Verdict

This is a technically impressive experiment with a live demo worth trying, but with only 10 stars and recent development, treat it as a proof-of-concept rather than production-ready tooling. The credibility score of 0.9% reflects the project's novelty and small community—useful for learning and exploration, but not yet a mature dependency.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.