I really enjoyed the talk by Manuel Drehwald at #RustSciComp23 who drew the lines of an exciting future for #AutomaticDifferentiation in #Rust with #LLVM #Enzyme , which should be directly integrated into the compiler at an horizon of a couple of months.
If I understood correctly, the idea is to differentiate code at the LLVM IR level, *after optimization* (and to do another pass of optimization after that). This can produce faster code than the AD engines that operate at the source code level.