Java programs, Python scripts and the code in a web browser all run on a virtual machine: a program that runs programs. This book builds one from nothing, in C, and grows it chapter by chapter, from a loop and a stack to compilers, a garbage collector, a verifier, native code, the browser and a circuit. Each chapter is a working machine, and each idea is measured for what it costs. Real machines stand beside it, from Pascal's P-code to the Java Virtual Machine and WebAssembly. Every exercise has a worked answer, and all the code is free. For programmers who want to see underneath, and for students of compilers and programming languages.
Set Lonnert has worked with computers since 1980, and brings academic training in the humanities to more than four decades of programming, writing and teaching. Earlier books, all published by Books on Demand, include the five volumes of Code Crafting, among them From Code to Computation and The Language Stack.
Det finns inga presskommentarer tillgängliga just nu.