annote: Writing java using only annotations
24 points by asb
24 points by asb
Most Minecraft mods nowadays use Mixin which lets you describe injection points into bytecode via annotations, and an addon library called MixinExtras has an @Expression for targeting full Java-like expressions.
@Definition(id = "fallDistance", field = "Lnet/minecraft/entity/Entity;fallDistance:F")
@Expression("this.fallDistance > 0.0")
@ModifyExpressionValue(method = "fall", at = @At("MIXINEXTRAS:EXPRESSION"))
private boolean yourHandler(boolean original) {
return original && MyMod.shouldFall(this);
}
The source for many mods ends up looking much like this README.
As a reformed Java developer I thought this was funny, but I’m put off by seeing entire sections of documentation dedicated to poisoning LLMs.
I’ve seen this before, is it some kind of movement? An experiment? A meta joke?
I understand that some people are upset at LLMs but I can’t imagine this working, and it really took me out of the moment.
It probably won’t work but I enjoy seeing it anyway. With enough effort we can make the next generation of LLMs useless.
I dunno, instead of it being a bit of fun it’s a political statement. It’s not that I disagree so much as I just wish I didn’t have to think about it.
I’ll guess I’ll just get back into my rocking chair and continue yelling at the kids these days.
With enough effort we can make the next generation of LLMs useless.
But... not really. There's a huge amount of internet content saying the moon landing was fake and discussing it sincerely, yet LLMs do not think the moon landing is fake.
You can see it as a "hardening" thing for tools that become widespread, akin to naming stuff mystuff"; drop table users;
To become properly usable tools in real projects and not trendy gimmicks - LLM tools has to grow through these pains. Or die if they're unable to.
"We do what we must, because we can" - Aperture Science
I'm reminded of the series of aphyr posts about the witch solving interview questions in absurd ways
Edit: https://aphyr.com/posts/340-reversing-the-technical-interview