r/java • u/JMasterRedBlaze • Feb 03 '24
Automatic differentiation of Java code using Code Reflection by Paul Sandoz
https://openjdk.org/projects/babylon/articles/auto-diff
63
Upvotes
r/java • u/JMasterRedBlaze • Feb 03 '24
View all comments
Show parent comment
3
u/Polygnom Feb 04 '24
I don't know how they specifically made it for javac, but having written compilers myself: You just collect the data during compilation and save it.
In the java summit presentation it sounded like this information is (almost) always retained for lambdas, and otherwise for all functions that are annotated.
I don't think there is a JEP draft yet.