Mizu: A Lightweight Multi-Threaded Threaded-Code Interpreter that Can Run Almost Anywhere with a C++ Compiler
We present Mizu, a threaded-code interpreter for an assembly-like language designed to be embedded inside compilers. Mizu has three primary goals: to be lightweight, portable, and extensible. We explore Mizu’s lightweight core instruction set, along with several of its extensions and some of our methods for further extension, and the platforms it has been ported to. Additionally, we demonstrate how two highlevel features-threading and foreign function interfaces-can be spelled at the level of an assembly language. Finally, we compare Mizu to several other popular interpreted languages and find that it’s performance sits comfortably between JIT interpreters (approximately 4 times slower on a CPU straining task) and regular interpreters (approximately 8.5 times faster on the same task) all with only fourty-six core instructions.
Authors
- Joshua Dahl (ORCID: https://orcid.org/0000-0002-2446-2547)
- J. S. Harris (ORCID: https://orcid.org/0000-0002-0857-6931)
- Quinn Contaldi
- Kiana Partovi
Institutions
- University of Nevada, Reno (US)
Publication Details
- Published
- 2025-05-29
- DOI
- https://doi.org/10.1109/sera65747.2025.11154512
- Primary Topic
- Fuzzy Logic and Control Systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00