annote: Writing java using only annotations

24 points by asb


jado

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.

doctor_eval

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.

daniel_alp

"We do what we must, because we can" - Aperture Science