Dr Logo for the Tatung Einstein, showing a rosette drawn by the turtle
← Back to Courses
module
1

What you're going to make

Introduction

Most programming languages are built for people who are already programmers. Logo was built for children, by people who thought that teaching a machine to do something is the best way to find out whether you understand it yourself.

That makes it an unusually good language to meet a small computer through. You will not spend the first three sections setting up a project. You type a line, and something happens.

What Dr Logo actually is

It is not for making logos. The name is from the Greek logos - word, thought, reason - and the language was written in 1967 at Bolt, Beranek and Newman by Wally Feurzeig, Seymour Papert and Cynthia Solomon, as a way of teaching thinking rather than programming.

Its famous trick is the turtle: a pointer on the screen that you steer with instructions like "forward fifty" and "right ninety", leaving a line behind it. Drawing is immediate, visible, and hard to be wrong about in a way you cannot see - which is exactly what a beginner needs.

But the turtle is the shop window, not the shop. Underneath, Dr Logo is a language about words and lists, and by the end of this course you will be using it for things that have nothing to do with drawing.

Dr Logo itself was written by Digital Research and is dated 1983. The version on the Einstein announces itself as version 1.20.

The machine

The Tatung Einstein is a British computer, built around the Zilog Z80 processor, sold from 1984. Its graphics screen is 256 pixels across and 192 down, and when the turtle takes one step it moves exactly one of those pixels. That is a small screen by any modern measure, and small enough that you can reason about every line you put on it.

You do not need to own one. The course runs on an emulator, and everything you need is free.

Where this is going

This course is a collection of small programs, not one big one.

Each section takes one thing the machine can do, explains it, and gives you a short program that shows it working. The programs stand on their own: you can run any of them from a cold start without having typed in anything from an earlier section.

That is deliberate. Logo rewards small pieces that fit together, and a course that spent thirty sections marching towards a single large program would be fighting the language. It also means that if you stop halfway, you have a folder of things that work rather than half of something that does not.

Along the way you will draw shapes and patterns, make the machine ask your name and use it, turn a list of numbers into a chart, make it play notes, and write a small program that asks you questions and keeps score. Those last few are not inventions of ours - they are the sort of thing Tatung themselves shipped on the disc to show the language off in 1984.

Who this is for

  • Anyone who wants to program a small computer and see something happen immediately.
  • Retro computing hobbyists and collectors.
  • Educators after material with something on the screen at the end of every session - Logo was designed for exactly that and is still good at it.
  • Anyone who has heard of turtle graphics and never met the language behind it.

What you need to know already

Nothing.

You do not need to have programmed before. Everything is explained as it comes up, in the order you need it.

If you have programmed before, expect Dr Logo to feel unfamiliar rather than hard. Its way of holding data, and its habit of letting you add new words to the language itself, are not quite like anything in a modern language, and the sections that cover them go slowly on purpose.

If you already know another Logo, be careful. This is a specific product from 1984 on a specific machine, and where it differs from the Logo you know, this course describes what this one does.

What you need

Three things, all free:

  • An emulator. MAME, which can behave like an Einstein.
  • The Einstein ROM image, which the emulator needs in order to be an Einstein at all.
  • The Dr Logo disc from the Downloads page. It holds Dr Logo, the two programs Tatung shipped with it in 1984, and plenty of room for your own work.

S2 installs all of it and finishes with Dr Logo running in front of you.

If you have a real Einstein, you are very welcome to follow along on it - Dr Logo is on the System Master disc. The course is written and checked against the emulator, so where the two differ you will be ahead of us, and we would like to hear about it.

A note on your computer. S2 sets everything up for macOS and for Windows. Linux works too - MAME is in every distribution's package manager, and from there the macOS steps apply. Everything else in the course is about the Einstein, and is the same whatever you are sitting at.

How each section is laid out

Every section has the same shape.

  • What it teaches, in one line at the top.
  • The explanation, one idea at a time.
  • The code - a complete program, short enough to type, that you can run.
  • What you should see, so you know whether it worked.
  • Change one thing - two or three small edits with a question attached. These are the part that does the teaching. Reading a program that works produces a feeling of understanding that is hard to tell from the real thing until something breaks; changing one value and guessing what will happen finds out cheaply.
  • When it goes wrong - the failures we actually hit, and what they looked like on screen.

Found a mistake? Stuck? Want to help?

All three are worth a message, and the last one most of all.

If something here is wrong, please say so. A wrong sentence that nobody reports stays wrong for everyone who reads it next.

If something is unclear, that is a fault in the writing rather than in you. Every section was checked by somebody who already knew the answer, which is exactly the wrong person to judge whether an explanation works.

And if you think you could improve it, please do. A clearer explanation, a missing section, a worked example, or notes on getting the emulator running on Windows or Linux. Say what you have in mind before writing anything substantial, so we can check it is not already in hand.

Whichever of the three it is, the contact form is at tatungbytes.co.uk/contact.

Summary

Dr Logo is a language for thinking, with a turtle attached to the front of it. This course is a run of small programs, each showing one thing the machine can do, and each one runs on its own. You need an emulator, a ROM and one disc, all free.

Next

S2, setting up - installing the emulator, fetching the ROM and the disc, and getting Dr Logo running on your own machine. It is the only section with no Logo in it.

Get the Newsletter

New guides, disk images and community finds, roughly once a quarter. No spam, we promise, this isn't Tatung's marketing department.
Your subscription could not be saved. Please try again.
Your subscription has been successful.

Newsletter

Subscribe to our newsletter and stay updated.