News for hackers. Stuff that matters.
Re:Romeo and Julia, Where Romeo Is Basic Statistics by sampo on Friday March 15, 2024 @11:35AM (#39716910)
> What is Julia's current niche?

Python, but for engineers and scientists. Syntax is friendlier for doing mathematics, barrier to entry to first calculation script is lower

    a = [1 2 3]
    b = [4 5 6]
    a + b
vs

    import numpy as np
    a = np.array([1, 2, 3])
    b = np.array([4, 5, 6])
    a + b
Also you can learn Julia step by step, and improve your code to run faster. Whereas in Python, the eventual road to fast code is to write the library in C and call it from Python.

Python is for software people. Matlab, Julia and R are for people who only write code because they want answers.

Re:Romeo and Julia, Where Romeo Is Basic Statistics by sampo on Friday March 15, 2024 @02:24PM (#39719034)
> Python is for software people. Matlab, Julia and R are for people who only write code because they want answers.

Or, Julia can be for both.

Julia lets you start from scientific calculations scripts and grow your code to a larger software package. Same as Python grew popular 20 years ago because it let you grow your small sysadmin scripts to larger software.

Matlab and R are too limited in their "real programming language" constructs, and it gets painful when your codebase grows larger. Julia has all "real programming language" constructs a software engineer would need.

Re:Romeo and Julia, Where Romeo Is Basic Statistics by the__alchemist on Friday March 15, 2024 @03:11PM (#39719577)
This syntax is my favorite feature of Julia's. I wish I could get something like this in python or rust, without a macro mess.