Building a Java Virtual Machine Part 4: Fake Objects, Fake Machines.

Ben Zotto
9 min readFeb 6, 2021

Part 4 of a series discussing the joys and pitfalls (mostly pitfalls) of hacking together a minimal JVM in Javascript. The live code base — a very rough work in progress! — is on GitHub. Subscribe for further updates! ;-)

Last time we got only halfway through our very first Java instruction (getstatic) but don’t feel bad! I simply had the bad fortune of writing a program whose very first instruction is one of the more complex ones in the whole JVM. Oh, sure, it could have been some sort of addition or subtraction

--

--