Julia was built to solve a problem every data scientist knows: Python is easy to write but slow, C is fast but painful to write. Julia's promise is to be both. You write code that looks like Python or MATLAB, and it runs at speeds close to C, because Julia compiles your code just in time with LLVM. For data work, that trade-off disappearing is a big deal.
The syntax is friendly. Here is a function that sums a list, written the way you would think it:
function total ( xs ) s = 0.0 for x in xs s += x end s end
total ( [ 1.5 , 2.5 , 3.0 ] ) # 7.0
Enter fullscreen mode
Exit fullscreen mode
Loops in Julia are fast, which is the opposite of Python, where you avoid loops and reach for vectorised libraries. That means you can write straightforward code and still get good performance. Julia also has first-class support for math: 2Ο , matrix operations with * , and broadcasting with a dot ( f.(array) ) are all built in.
Julia shines in data science, scientific computing, statistics and machine learning.β¦