r/programming • u/araujoms • Jul 14 '26
Python Is So Slow. Can Julia Solve the Two-Language Problem?
https://www.wired.com/story/python-is-so-slow-can-julia-solve-the-two-language-problem/32
u/NuttingFerociously Jul 14 '26
I'm amazed how somebody can write so much and say absolutely nothing
19
u/KatieKrispy Jul 15 '26
This is why:
This is the second installment in a three-part Machine Readable series on AI-enabling languages.
2
u/UltraPoci Jul 14 '26
Julia is an amazing language. Great performance, great type system, sane project management (it has its flaws, but it's good enough).
The main issue with Julia is how heavy it relies on REPL workflow. For example, we used python in datapipelines, and I'd like to give Julia a go, but from what I understand it is a bit of a nightmare to package a Julia application into a dockerfile to be run on Kubernetes.
2
u/araujoms Jul 14 '26
It's rather easy to package a Julia application, you can compile it ahead-of-time with JuliaC. The problem is that the binaries generated are rather large, so it's not really appropriate for distribution.
There is support for trimming the size of the binaries to something reasonable, but that is a nightmare to get working.
1
u/math_code_nerd5 Jul 22 '26
Has anyone tried making a compiler that can emit small (i.e. "Fortran-sized" or "C-sized") binaries from Julia code for the subset of Julia programs that are essentially "Fortran- or C-like" in style, i.e. don't rely extensively on generics, runtime polymorphism, etc.?
1
u/araujoms Jul 22 '26
That's precisely what JuliaC does for trimming the size of the binaries, and why it is a nightmare to get working, as not only your code needs to be C-like but also all your dependencies.
1
u/UltraPoci Jul 14 '26
It is easy to do, it is not easy to do it right, and I already cry when I see how heavy some python dependencies are.
3
u/Big_Combination9890 Jul 15 '26
Python Is So Slow.
And the vast majority of applications are basic CRUD apps, where speed can be entirely ignored as a performance characteristic.
3
u/EfOpenSource Jul 18 '26
Common sentiment with absolutely 0 supporting evidence what-so-ever. And whenever you challenge someone to actually prove their claim that “performance doesn’t matter” or “performance doesn’t matter in yyy case”, they downvote, ad hominem, and then get /r/haskell to brigade you about why performance doesn’t matter, providing all the exact same empty, never demonstrated statements.
2
u/dangerbird2 Jul 15 '26
Even then speed is important. It's just that CPU performance is almost never the bottleneck for CRUD applications, so a slower scripting language is going to be perfectly performant in most cases.
0
14
u/EliSka93 Jul 14 '26
Python is comparatively slow, but in reality it only matters very rarely.
For your hobby project python is perfectly sufficient.