Re:Roll your own minilanguages with mini-interpreters (1989)
by lou1306 on Tuesday July 06, 2021 @05:56AM
(#27746180)
Just to be pedantic, ScummVM is a re-implementation of the original SCUMM, which totally was an instance of this approach. There is a (crazy long) Youtube video [1] where they take a peek at the SCUMM code for the first Monkey Island, and hack it almost on the fly. Pretty good for a 1990 game.
Of course, Infocom's Z-machine may be an even earlier example.
[1] https://www.youtube.com/watch?v=ikaqus5_QIg (the relevant bit starts at around 3:09:30)
Re:Roll your own minilanguages with mini-interpreters (1989)
by andrewchambers on Tuesday July 06, 2021 @05:18AM
(#27745893)
Well, a (more) compact bytecode representation is one of the design decisions made for web assembly... That is one reason why it is a stack machine.
Re:Roll your own minilanguages with mini-interpreters (1989)
by chrisseaton on Tuesday July 06, 2021 @06:31AM
(#27746442)
Bytecode in practice is almost always more compact than corresponding machine code.
The idea sounds like it could be still relevant for microcontrollers, AVRs can have <2KiB program space.
Are there any good resources that discuss the design of the "mini-languages" composed of byte codes and interpreters?