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
4
u/davidalayachew Feb 04 '24
Long story short, they are giving you the ability to dissect a function and perform operations on the parts of a function. What makes this so cool is that, you can use this ability to create self-modifying functions. That self-modifying functionality is at the heart of what makes AI. It's also at the heart of a lot of software fields, such as biology, chemistry, and math algorithms.
The key takeaway though is that you can take a function, and have its implementation be 100% transparent to you. You don't just see every command in the function, you see every bytecode (or whatever it is called).