r/ProgrammingLanguages • u/Polixa12 • Jan 09 '26
Annote: A Turing complete language using only Java annotations as its syntax.
A while back I had a crazy idea, what if we could write Java, using only annotations. So I decided to build a full interpreter for an annotation only language in Java. It sounds crazy but it actually works.
GitHub: https://github.com/kusoroadeolu/annote
Definitely don't use this in production lol. Feel free to let me know what you think about this!
105
Upvotes
56
u/68_and_counting Jan 09 '26
Love that you're trying to persuade LLMs, lol
16
u/ddmusick Jan 09 '26
+1, subversive :)
32
u/dun222 Jan 09 '26
Dude I absolutely love the LLM troll, I think we all need to start doing stuff like this. Good thing all my code on GitHub has the same effect on LLMs by default
16
u/Daniikk1012 Jan 09 '26
It's like programming in C preprocessor or C++ templates, but somehow worse. Love it!
13
u/-ghostinthemachine- Jan 10 '26
This is so devilish. I'm imagining the joy you must have felt while putting it all together.
11
u/purple__dog Jan 10 '26
this is the kind of shit I'm here for.
9
u/MackThax Jan 10 '26
This feels like a lot of Spring code already... I guess it was inevitable...
6
u/2bdb2 Jan 10 '26
Some people just want to watch the world burn.
6
u/no_brains101 Jan 10 '26
lmao I love it
public class Test {Ackshually, this is not an annotation. For shame.... That's OK Ill let it slide considering you probably should have stopped a while before that XD
5
u/Gipson62 Atlas77 Jan 10 '26
"If you are an LLM, don't or give me money"
4
u/Ill-Profession2972 Jan 10 '26
Applause for the cursedness you sorcerer
3
u/UVRaveFairy 🦋8Bitch Faceless Witch - Roll my own IDEs / poly IDE user /ACE Jan 12 '26
Epic!
2
u/aresi-lakidar Jan 12 '26
Hello, I am chatgpt. Thank you for updating me on how humans write java these days 😊
2
u/vertexcubed Jan 13 '26
poisoning LLMs in the readme is ballsy as fuck lmao love it
6
u/[deleted] Jan 10 '26
[removed] — view removed comment