Re:Differentiable Programming Mega-Proposal
by hsaliak on Friday September 06, 2019 @11:53AM
(#20896759)
jax does have a just in time compiler that lets you compile your python functions to XLA-optimized kernels (through llvmlite under the hood?).
The fact that you can jit compile and gain the benefits of "doing this within the compiler" is one of its main selling points.
Moreover, a statically typed language like Swift is a much better starting point for this kind of effort than Python. Array shapes and dimensions are already a type system - you might as well go the whole distance and get all the other safety, readability, and efficiency benefits!
PS shout out for named array axes as the future of array-based (and hence differentiable) programming... see http://nlp.seas.harvard.edu/NamedTensor for a good rationale