How does Julia compare with Nim, Go and Crystal for Artificial Intelligence?

@jling has already linked the FASTQ parsing discussion, so all I’ll say here is that Julia is the only language mentioned here which gets anywhere near to optimized native matmul performance on CPU and GPU. You might have microbenchmarks of naive implementations in Nim/Go/Crystal, but to my knowledge none of them have tried a realistic performance comparison.

But back to your original question: how does Julia stack up for “AI”? Well, it’s not even close. Ecosystem-wise, Julia wipes the floor with the other 3 languages for almost every subfield of “AI” you can think of. Frankly, Nim is the only one that has any claim of being a decent language for ML, as the other 2 have a mostly non-existent ecosystem there. As a point of comparison, how many other languages (excluding Python and C++, of course) have pulled off something like GitHub - jonathan-laurent/AlphaZero.jl: A generic, simple and fast implementation of Deepmind's AlphaZero algorithm.? I’m not even going to mention SciML because that would be like bringing out the steel chair when your opponent is already on the ground :smile:

7 Likes