News for hackers. Stuff that matters.
Re:Julia 1.6 addresses latency issues by m_mueller on Wednesday May 26, 2021 @01:54AM (#27286873)
I highly doubt it for one core feature: performance. For a little while it looked like Python 4 might fix this (by using type hints to JIT) , but it was quickly given up. IMO a big shame as it is the one thing holding python back.
Re:Julia 1.6 addresses latency issues by oscardssmith on Wednesday May 26, 2021 @03:19AM (#27287388)
I think Julia actually does a pretty good job of showing that the problem isn't types. The problem is semantics. Julia's restriction is eval to the global scope is a perfect example of this. It has a pretty minor on code, but a massive effect on performance. Python has a ton of things like this where a slightly different (and totally breaking) semantic change prevents optimization.
Re:Julia 1.6 addresses latency issues by m_mueller on Wednesday May 26, 2021 @09:55AM (#27290528)
My poinr wasn’t about type system per se but the ability to compile code down to natively execute without going through an interpreter. Whether you solve that through type inference or type hints I honestly don’t care, but afaik Julia has an easier job by allowing you to make types explicit on the data structure side while being flexible for the algorithms. Semantics are certainly also a big part, but it would be nice to have first party support for what Numba does, JITing a reduced set of semantics but keep everything else compatible.