#DecemberAdventure
Fabio Cevasco h3rald@h3rald.com
Wed, 18 Dec 2024 22:08:19 +0100
1 files changed,
5 insertions(+),
0 deletions(-)
M
contents/articles/december-adventure-2024.md
→
contents/articles/december-adventure-2024.md
@@ -512,10 +512,15 @@
I managed to refine the bytecode generation algorithm a little bit *and* implement an interpreter that seems to work as expected! So, for now: + - I implemented variable-length code using the [LEB128](https://en.wikipedia.org/wiki/LEB128) algorithm for sizes, and this makes storing sizes and integers more compact. - Because this algorithm uses little-endian, I have decided to store all integers as little-endians. The resulting bytecode for yesterday's example is now more compact: + + + +And here's the breakdown: ```ruby # Header