Re:High Performance Numeric Programming with Swift: Explorat...
by stochastic_monk on Tuesday January 15, 2019 @06:01PM
(#18916519)
Do you know how Julia gets such great ffi performance? Is it inlining, for instance?
Re:High Performance Numeric Programming with Swift: Explorat...
by KenoFischer on Tuesday January 15, 2019 @11:51PM
(#18918309)
It's a bit of a JIT party trick by emitting the target address directly rather than going through the PLT.
https://github.com/dyu/ffi-overhead
(For those interested, the order of the first few languages is: lua-jit, julia, c(!), c++, zig, nim, d in order of decreasing speed.)
It's extremely well thought out, concise, powerful, and readable. I think Julia's approach to types and multiple dispatch is a better alternative to traditional OO programming.
One thing the author didn't point out is that C++ (clang), Swift, Rust and Julia all use the LLVM infrastructure, resulting in extremely similar if not identical code generation. If datacenter efficiency truly becomes a priority, highly efficient languages like Julia, Rust and Swift will see increasing use for general purpose programming.