News for hackers. Stuff that matters.
Re:Calculus with Julia by jakobnissen on Sunday May 19, 2024 @04:26AM (#40405290)
It's multiple dispatch though, not virtual dispatch. If I understand correctly, virtual dispatch means the method is picked at runtime. In Julia, the compiler is able to pick the correct method at compile time, even when dispatching on all arguments of the function.
Re:Calculus with Julia by samatman on Sunday May 19, 2024 @09:53AM (#40406982)
This is correct, but it's important to realize that compile time continues during runtime.

Julia's execution model is quite distinctive, and it does take a thorough understanding of how it plays out to get native-code speeds out of it.