News for hackers. Stuff that matters.
Re:Some Insights from a Julia Developer by 88e282102ae2e5b on Saturday October 14, 2017 @12:05PM (#15472741)
Is Julia really that much more performant than numpy?
Re:Some Insights from a Julia Developer by wallnuss on Saturday October 14, 2017 @12:24PM (#15472860)
In my opinion that is the wrong question to ask. The right question is: How fast will my code be. Numpy has been heavily optimised and is written in C and not Python.

Take a look at the link below, comparing a simple sum in different languages (among them Python and Numpy). The power of Julia is that there is no privileged code. Your code will be as fast as the base library.

http://nbviewer.jupyter.org/github/alanedelman/18.337_2017/b...

Re:Some Insights from a Julia Developer by improbable22 on Saturday October 14, 2017 @01:47PM (#15473271)
Yes to this. When you're calling some big fast package (be it some field-specific thing, or just matrix algebra) the language you're in doesn't matter that much. In terms of speed, but also in terms of effort -- you spend most of your time reading this field-specific package's manual.

What's liberating is that for the things which aren't covered by such packages, there's no huge penalty for just writing it yourself. In speed but in effort too -- it's quicker to write the loop than to figure out how to make np.einsum do what you have in mind.

Re:Some Insights from a Julia Developer by 81212w1 on Saturday October 14, 2017 @12:44PM (#15472963)
I find this benchmark a bit disorganized, but it seems that the "hand-written" Julia function is as slow as the "hand-written" C function.

The C function is of course naive. I'm pretty sure that a hand-unrolled loop would be faster.

Re:Some Insights from a Julia Developer by wallnuss on Saturday October 14, 2017 @09:50PM (#15475438)
You are absolutely right, an optimised C Programn would be as fast or faster than the Numpy implementation.