Leanpub Header

Skip to main content

Building a Universal Machine

A Hands-on Introduction to Computability

From the foundations of computing to the construction of electronic devices, this book attempts to build an easy-to-cross bridge between theory and practice, model and reality, thought and object.

Minimum price

$20.00

$25.00

You pay

$25.00

Author earns

$20.00
$

...Or Buy With Credits!

You can get credits with a paid monthly or annual Reader Membership, or you can buy them here.
PDF
EPUB
WEB
About

About

About the Book

From the foundations of computing to the construction of electronic devices, this book attempts to build an easy-to-cross bridge between theory and practice, model and reality, thought and object.

A comprehensive, step-by-step guide to understanding how computers work, tracing their evolution from ancient logic to modern electronic circuits. It explores key theoretical concepts—such as finite automata, formal languages, Turing machines, universal computation, register machines, recursive functions, lambda calculus, tag systems, cellular automata, and hypercomputation—as well as the development of mechanical and electronic computers.

Written in a friendly, informal style, it emphasizes the big picture and the joy of exploration rather than dry mathematical formalisms. The hands-on approach ensures that readers grasp the fundamentals as they progressively build a universal computer in JavaScript using only the knowledge they've learned along the way.

Author

About the Author

Tomas Tulka

is keen on building small machines

Contents

Table of Contents

About the Book

  1. Welcome to the Machine

In Pursuit of Mechanical Thought

  1. Logic
  2. Hilbert’s Dream
  3. Incompleteness
  4. Entscheidungsproblem
  5. Church–Turing Thesis
  6. Timeline

Everything Is a Number

  1. Numeral Systems
  2. Sets
  3. Numbers
  4. Abstract Machines

Simple Machines

  1. Finite Automata
  2. Nondeterministic Finite Automata
  3. Regular Languages and Expressions
  4. Pushdown Automata
  5. Nondeterministic Pushdown Automata
  6. Probabilistic Automata
  7. Context-Free Languages
  8. Linear Bounded Automata
  9. Context-Sensitive Languages

Universal Machines

  1. Turing Machines
  2. Decidable Languages
  3. Subroutines
  4. Multitape
  5. Fixed-End Tape
  6. Nondeterministic Machines
  7. Restricted Alphabets
  8. Universal Turing Machines
  9. Input Encoding
  10. Virtual Tapes
  11. Design
  12. Implementation
  13. Testing
  14. Programming
  15. Rrr
  16. All the Way Down
  17. The Halting Problem
  18. Semi-Decidable Languages

Number Machines

  1. Register Machines
  2. Counter Machines
  3. Random-Access Machines
  4. Stored-Program Machines
  5. Universal Register Machine
  6. Recursive Functions
  7. Primitive recursion
  8. Partial Recursion
  9. Universal Recursive Function
  10. Simulating Recursive Functions

Programming Machines

  1. Turing Completeness
  2. Structured Programming

Small Machines

  1. Minimal-State Turing Machines
  2. Wolfram 2,3
  3. Lambda Calculus
  4. Non-Halting Lambda Functions
  5. Syntactic Sugar
  6. Numbers
  7. Functional Programming
  8. Combinatory Logic
  9. Tag Systems
  10. Universal Tag Systems
  11. Cyclic Tag Systems
  12. Cellular Automata
  13. The Game of Life
  14. Universal Cells
  15. Rules
  16. One-Instruction Set Computers

Hyper Machines

  1. Quantum Computers
  2. Super-Recursive Algorithms
  3. Oracles
  4. Inductive Turing Machines
  5. Exotic Machines
  6. Actual Machines

Mechanical Machines

  1. Ancient Devices
  2. Medieval Inventions
  3. First Reckoners
  4. Pascaline
  5. Leibniz Calculator
  6. Jacquard Loom
  7. Early Computers
  8. Analytical Engine
  9. Z3
  10. Mark I
  11. ENIAC
  12. EDVAC

Logic Machines

  1. Logic Gates
  2. NOT Gate
  3. AND Gate
  4. OR Gates
  5. XOR Gate
  6. NOR Gate
  7. NAND Gate
  8. Logic Circuits
  9. Arithmetics
  10. Multiplexers
  11. Storages

Electronic Machines

  1. Integrated Circuits
  2. Transistors

Computer Machines

  1. Clock
  2. Cache
  3. Memory
  4. Universal Computer
  5. Processor
  6. Goodbye, Machine

Mind Machines

  1. Universality
  2. Computing the Universe
  3. Machines Like Us
  4. In Summary

Appendix

  1. Examples of Turing Machines
  2. Copier
  3. Palindromes
  4. Hello World
  5. Universal Turing Machine
  6. Structured Universal Machine
  7. Structured Universal Machine (Extended)
  8. Universal Minsky Machine
  9. Universal Recursive Function in JavaScript
  10. Universal Tag System
  11. Lambda Calculus Generic Recursion

References

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub