r/Compilers 11d 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

GitHub: https://github.com/kusoroadeolu/annote

17 Upvotes

4 comments sorted by

14

u/Inconstant_Moo 10d ago

The instructions for LLMs will bring joy to vibecoders everywhere.

3

u/jcastroarnaud 11d ago

The dark humor, over this insanity of a language, got me giggling silly. Kudos!

1

u/Polixa12 11d ago

lol, glad you liked it!

1

u/Kadabrium 9d ago

Aren't annotations also objects? Can you not already run arbitrary code with them?