Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A Tiny Bytecode VM for Arithmetics in Haskell

A Tiny Bytecode VM for Arithmetics in Haskell

In this talk, we write a tiny bytecode VM for arithmetics in Haskell, and learn how to:

- define arithmetic expressions,
- parse expressions,
- Interpret parsed expressions,
- compile parsed expressions to Opcodes,
- implement a VM for Opcodes,
- assemble/disassemble Opcodes to/from bytecode, and
- execute bytecode.

Avatar for Abhinav Sarkar

Abhinav Sarkar

April 09, 2025
Tweet

More Decks by Abhinav Sarkar

Other Decks in Programming

Transcript