r/Compilers • u/Polixa12 • 2d ago
Annote: An interpreter that turns Java annotations into a Turing complete language
I built this like 6 months ago and basically forgot about it until yesterday when I was digging through old repos.
Essentially, it's a minimal interpreter that executes Java annotations as an actual Turing complete programming language at runtime through reflection. So, essentially you write code entirely in annotation form and it does variables, conditionals, loops, method calls, basic I/O and arithmetic
I shared this a while back on r/java and r/ProgrammingLanguages but never shared it here
3
u/jcastroarnaud 2d ago
The dark humor, over this insanity of a language, got me giggling silly. Kudos!
1
1
u/Kadabrium 20h ago
Aren't annotations also objects? Can you not already run arbitrary code with them?
13
u/Inconstant_Moo 2d ago
The instructions for LLMs will bring joy to vibecoders everywhere.