← Mon, Nov 16 digest

Artificial Intelligence for the Z80

read article ↗ hn thread ↗

A new book teaches foundational artificial intelligence and machine learning algorithms using BASIC on 8-bit computers like the ZX Spectrum.

summary is enough The landing page provides a clear overview of the book's contents, but full reading is only necessary if you want to buy it or browse the source code.

summary

A new book explores foundational artificial intelligence and machine learning algorithms implemented in BASIC for 8-bit machines like the ZX Spectrum. The chapters cover classic AI topics including expert systems, Minimax, linear regression, k-NN, and simple neural networks with backpropagation. Complete code listings are provided via open-source repositories in both Spanish and English. Readers note that while marketed for the Z80, the implementations are written in BASIC rather than assembly.

key points

  1. Covers classical algorithms including expert systems, Minimax, linear regression, k-NN, Naive Bayes, and basic neural networks.
  2. All programs are written in BASIC to run on 8-bit hardware like the ZX Spectrum or emulators.
  3. Source code is publicly available in GitHub repositories for both English and Spanish editions.

who should read it

Retrocomputing enthusiasts, hobbyists, and educators interested in implementing foundational AI algorithms from scratch.

discussion positive

consensus

Readers point out that despite the title emphasizing the Z80, the code is written in BASIC and translates to any standard dialect rather than requiring Z80 assembly knowledge.

best comment by mk_stjames ↗

I would have called it "... A.I. in BASIC / on the ZX Spectrum" not "for the Z80" - even though you are running BASIC to interpret the programs on a Z80 cpu, it doesn't seem like the learnings have anything to do with a Z80, and would translate to anyone wanting to tinker with this in any similar BASIC dialect (unless your programs use inlined machine code more in later chapters).

Based on the title alone I would have imagined more of it would be in Z80 Assembly (which... is as fun IMO)

Clarifies that the book uses BASIC rather than Z80 assembly, correcting expectations for low-level hardware optimizations.

Generated by an LLM from the article and thread. Check the sources before relying on it.