Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

mraleph - Explaining JavaScript VMs in JavaScript

Interesting article which explains some of the basics of how virtual machines for programming languages work, and how some of the optimizations are done to help make them performant.

The author walks through a simple program in lua, then uses JavaScript to build a VM which implements the ‘objects are tables’ semantic of the lua language. The example is small enough to serve as a good basis for instruction, while illustrating the deconstruction the kinds of things a VM actually does under the hood.

mraleph – Explaining JavaScript VMs in JavaScript

About Dougal Campbell

Dougal is a web developer, and a "Developer Emeritus" for the WordPress platform. When he's not coding PHP, Perl, CSS, JavaScript, or whatnot, he spends time with his wife, three children, a dog, and a cat in their Atlanta area home.
This entry was posted in Whatever and tagged , , , , , , , , , . Bookmark the permalink.

Leave a Reply