Hacker News new | ask | show | jobs
by cshenton 2533 days ago
Julia code gets compiled native via LLVM so it is about as fast as other natively compiled languages.
1 comments

Not making any claims about Julia, but “gets compiled native via LLVM” doesn’t imply ”is about as fast as other natively compiled languages”

For example, a straightforward Python-to-LLVM compiler would generate code with every variable being a PyObject (https://docs.python.org/3/c-api/structures.html) instance, and “switch(obj.ob_type)” equivalents that would require a “sufficiently advanced compiler” to get to equivalent speed as, say, C.