Re:The beauty of functional languages in deep learning – Clo...
by bgorman on Thursday September 12, 2019 @10:18AM
(#20951705)
For what it is worth, Apache MXNet has official Clojure bindings and you can use Deeplearning4j as well. There is also Neanderthal for CUDA/OpenCL programming in Clojure. Theoretically the ease of implementing DSLs in Clojure should be an advantage for the computation graph use case you are talking about.
Re:The beauty of functional languages in deep learning – Clo...
by zgramana on Thursday September 12, 2019 @10:43AM
(#20952001)
If you haven’t checked it out already, you should take a look at Jython. As the name suggests, it’s a Java implementation of Python.
Re:The beauty of functional languages in deep learning – Clo...
by turingbike on Thursday September 12, 2019 @12:44PM
(#20953555)
I think the reason the parent mentions GraalVM instead of Jython is that Jython can't use C libs like numpy. But GraalVM lets you compile JVM to a native binary, so maybe there is some way to use Cython in JVM.
For now, if you want a functional language for doing deep learning, IMO that language needs Python interoperability. Long-term, I'm hopeful that GraalVM [0] can provide a way of calling Python from the JVM, but until then, I think the best option is coconut-lang [1], "a functional programming language that compiles to Python." You get pattern-matching, TCO, the pipe operator, and ADTs, all while being one AOT compilation step away from Python.
[0] https://www.graalvm.org/
[1] http://coconut-lang.org/