4 ms·
Julia is another contender. Julia code can be as performant as C++ code, but Julia code may be even more elegant than C++. Even without accounting for Julia's m
by nsajko 4mo ago
Julia is another contender. Julia code can be as performant as C++ code, but Julia code may be even more elegant than C++. Even without accounting for Julia's metaprogramming features, the compile-time expressiveness is top-notch.
It shares some of the same drawbacks as C++, though. The language is extremely powerful, so while it is easy to write performant code, it is also easy for non experts to write very suboptimal code.
- wolvesechoes 4mo ago> Julia code can be as performant as C++ code, but Julia code may be even more elegant than C++ But not at the same time
- postflopclarity 4mo agodepends on the workload. many are elegant and fast. some require a bit of clunkiness to wring out the last drops of performance
- afdbcreid 4mo agoJulia is not a systems language. Also its design (GC, dynamic typing) does not allow it to reach exactly the same level as C++.
- rirze 4mo agoJulia only cares about numerical performance, and in that regime, it’s pretty fast. So not generally fast, no.
- postflopclarity 4mo agoyou are right one has to be careful to avoid the GC and dynamic dispatch, but if you do it can for sure reach the same level as C++. with tightly optimized Julia code there is little to no overhead over any other low-level language.