5 ms·
> It's almost a literal translation of the Julia code. Therein lies your problem. If I took some of my python code and literally translated it to Julia would
by JupiterMoon 11y ago
> It's almost a literal translation of the Julia code.
Therein lies your problem. If I took some of my python code and literally translated it to Julia would it run like a pig as well? Could I even do a literal translation?
- Veedrac 11y agoIt'll probably translate, and it'll probably run fine. Julia's like scientific Python, but where the naïve implementation also runs fast. "Fast by default.", perhaps.
- Nrpf 11y agoActually no. Naive Julia is often slower than python. Vectorized Array expressions are on par with numpy and slower than numba. "type unstable", IO and text processing code is also slower.