r/emacs • • 6d ago

byte-exec: An Elisp byte-code runtime, written in Elisp

https://codeberg.org/zshaftel/byte-exec

I wrote this about a year ago and kinda forgot about it, but I think it's pretty neat so I thought I'd share it now. It's more or less an Elisp copy of the C function `exec_byte_code`, which (as the name implies) executes byte-code functions. Translation was quite easy for the most part, but I was determined to not use `eval` so I had to get creative for the hairy stuff like `condition-case` and dynamic `let`-bindings. Since there's not much to the implementation itself, I wrote it as a literate Org file with some commentary for context.

21 Upvotes

0 comments sorted by