Hacker News new | ask | show | jobs
by martinsmit 1483 days ago
I use Julia as my main programming language and I learned so much from reading this. I never knew Julia had Base.llvmcall, good to know!

Just goes to show how important it can be to read code in completely different fields than the one you're working in. Some problems are common for others so they've already been solved. Knowing that a solution exists is half the battle.

1 comments

Ah yeah, `llvmcall` is also part of the secret to the performance of LoopVectorization.jl / VectorizationBase.jl AFAIU.

Conveniently, it's also pretty easy to check how any LLVM IR you've added manually with `llvmcall` is fitting in with the Julia-generated IR around it using `@code_llvm`.