3 ms·
My major problem with Julia is that writing performant code is a bit like writing Haskell. You need deep understanding of the compiler to know what constructs
by rightbyte 4y ago
My major problem with Julia is that writing performant code is a bit like writing Haskell.
You need deep understanding of the compiler to know what constructs will mess up performance. Especially how typeinfo is propagated.
- moelf 4y agoat least in Julia you have `@code_warntype`, JET.jl, `@benchmark`, and the language being dynamic also helps a lot.
- adgjlsfhk1 4y agothat is a major issue, and I'm not sure if there's a good solution. the one mitigating factor is that the high level languages Julia competes with (Matlab, R and python) have a similar ease of writing much slower code.
- leephillips 4y agoIn practice it’s not so major. Following a few simple guidelines from the performance section of the official manual is enough for most people most of the time. And the most important of these guidelines are practices that an experienced programmer would probably already be following, such as not using global variables.
- nsajko 4y ago> You need deep understanding of the compiler to know what constructs will mess up performance. Especially how typeinfo is propagated. Could you expand on this? It's not clear whether you're just talking about issues that would trip up beginner who hasn't read the relevant sections in the manual yet.