Annotations can be used to speed up java.
A lot of people may try to murder me for this suggestion, but I believe Princec mentioned this in another thread but it never took off, conversation wise anyway.
The ability to manipulate the hotspot compiler using annotations in the code.
What this could mean?
Removal of bounds checking on arrays in loops, in collections, in methods and classes.
IE: "Object a = new Object; @bounds_removal"
Object stuff = new Object;
public Object findObject(long id, String name, etc ...)
Object hnd = null;
At this moment it's the only thing I can come up with.
However the power of annotations could be expanded, the beauty of this is that newcomers to Java don't need to know this stuff, nor will they be taught this stuff at low levels.
The benefits would outweigh the pains.
After you've finished your game or application you would profile it.
You would visit the hotspots and do standard code optimisations on it, however even after you have visited every hotspot you may decide that there are areas where further improvements would be extremely beneficial as a whole.
In those areas are where developers will gain the advantage of using annotations to create hints for the hotspot compiler.
What do you guys think? Is this a great idea or am I just a paranoid delusional power user?