A Bytecode Virtual Machine · Crafting Interpreters
Our Java interpreter, jlox, taught us many of the fundamentals of programming languages, but we still have much to learn. First, if you run any interesting Lox programs in jlox, you’ll discover it’s achingly slow. The style of interpretation it uses—walking the AST directly—is good enough for some real-world uses, but leaves a lot to be desired for a general-purpose scripting language.
III A Bytecode Virtual Machine Our Java interpreter, jlox, taught us many of the fundamentals of programming languages, but we still have much to learn. First, if you run any interesting Lox programs in jlox, you'll discover it's achingly slow. The style of interpretation it uses - walking the AST directly - is good enough for some real-world uses, but leaves a lot to be desired for a general-purpose scripting language. Also, we implicitly rely on runtime features of the JVM itself. We take for granted that things like instanceof in Java work somehow . And we never for a second worry about mem
Explore this link on the map →related reading
- Introduction · Crafting Interpreterscraftinginterpreters.com
- Chunks of Bytecode · Crafting Interpreterscraftinginterpreters.com
- Write your Own Virtual Machinejmeiners.com
- Crafting Interpreterscraftinginterpreters.com
- A Map of the Territory · Crafting Interpreterscraftinginterpreters.com
- The Java® Virtual Machine Specificationdocs.oracle.com
- A Map of the Territory · Crafting Interpreterscraftinginterpreters.com
- The Lox Language · Crafting Interpreterscraftinginterpreters.com
- NYSRGnotes.ekzhang.com
- how I think when I think about programming - alice mazalicemaz.com
- Learn X in Y Minutes: Scenic Programming Language Tourslearnxinyminutes.com
- Evaluating Expressions · Crafting Interpreterscraftinginterpreters.com