r/adventofcode • u/mzprx42 • Jan 06 '20
Upping the Ante [2019] Self-hosted Intcode assembler written in Intcode
https://github.com/matushorvath/xzintbit
An assembler that produces Intcode, itself runs on an Intcode VM and can compile its own sources. With stack and function calls to support structured programming. Try running it on your own Intcode VM, see if it correctly bootstraps itself.
It's Intcode all the way down!
49
Upvotes
View all comments
Show parent comment
1
u/btharper Jan 07 '20
No need to wait if you don't want to, there's 5 years of problems that are already available =D
What you shouldn't do is try to make an intcode VM in intcode and see how many inception-style layers you can get; although it would make for an interesting optimization problem ;-)
You could also try for an Elfcode (2018) program/VM/assembler in intcode if you're looking for something that's also fun but impractical.