codr7/liblg
View on GitHub ↗ ★ 181 C
A minimal stack-based VM
5 mentions on Hacker News by 1 person: 2 stories, 3 comments · first 2020-08-27 · latest 2021-03-28
20082026
-
I recently created a library for the other part of an interpreter. https://github.com/codr7/liblg https://github.com/codr7/liblgpp
comment by codr7 · 2021-03-28 · in Ohm – A library and language for building parsers, interpreters, compilers, etc. -
…C++ is to allow plugging new opcodes into the instruction set without updating the dispatch loop. https://github.com/codr7/liblg https://github.com/codr7/liblgpp
comment by codr7 · 2021-01-04 · in Computed goto for efficient dispatch tables (2012) -
It's easy enough to convert by adding arguments for the two variables used in the iterative version: https://github.com/codr7/liblg/blob/master/bench/fibiter.py https://github.com/codr7/liblg/blob/master/bench/fibtail.py
comment by codr7 · 2020-10-11 · in Thinking About Recursion