So You Want to Build a Language VM - Part 03 - More Basic Opcodes
Adds more opcodes for basic math
Even More Opcodes!
Right now, our VM can do one thing: halt. An important feature to be sure, but we should probably add in more opcodes to do things like, oh, load, add, multiple, etc.
So You Want to Build a Language VM - Part 02 - Basic Opcodes
Instructions and decoding opcodes
Opcodes
So You Want to Build a Language VM - Part 01 - Overview and a Simple VM
Covers getting a basic VM started and design goals
Introduction
So You Want to Build a Language VM - Part 00 - Computer Hardware Crash Course
Covers general elements of computer hardware useful to know before reading the rest of the tutorials
A Brief Course in Computer Hardware
Hi there! This is the prelude to a series of posts to detailing how to build a language VM. If you are familiar with terms like registers, program counter and assembly, feel free to skip this post. If not, read on. Please note this is nowhere near comprehensive, but enough to understand what we’re building. == What is a Language VM? You know how you can you type python script.py and magic happens? That’s the Python virtual machine, or language interpreter, reading the source code you wrote, translating it down to bytecode the Python VM can understand, and then executing it.