News for hackers. Stuff that matters.
Re:Julia 1.6 addresses latency issues by clarkevans on Tuesday May 25, 2021 @04:14PM (#27281995)
Multiple dispatch and generic programming make Julia a productive language to work with. However, a given program may have unnecessary function specializations (which affect startup compile time) or unexpected dynamic dispatches (which affect runtime performance). These can be addressed with some important development patterns: checking for type stability via @code_warntype, using opaque structs or @nospecialize when appropriate, etc. I've found the Julia community to be very helpful with regard to performance on the forums, slack, and zulip.
Re:Julia 1.6 addresses latency issues by ku-man on Tuesday May 25, 2021 @04:21PM (#27282082)
This is exactly the problem with Julia, to achieve those (soo much vaunted) c-like-speeds you need quite a few contortions.
Re:Julia 1.6 addresses latency issues by eigenspace on Friday May 28, 2021 @01:26AM (#27312027)
I don't think those contortions are all that crazy compared to what you have to do in C though anyways. And you can choose where to spend your effort in optimizing functions.

Sometimes, a function really is performance critical so you spend a ton of time fiddling with it to make it blazing fast, other times you write something non-optimal but straightforward. It's all the same language though, and unlike tools like Cython, you don't lose all your nice high level language features when you drop down to 'high performance julia code'.