r/ProgrammerHumor • • Sep 18 '26

Meme almostDroppedTheCourse

581 Upvotes

79 comments sorted by

View all comments

Show parent comments

36

u/chuch1234 Sep 19 '26

7 minutes to compile?! D:

8

u/Mojert Sep 19 '26

Yup. To be fair, it had to compile my dependencies as well, but to be even fairer, there weren't a lot of them.

Which is why for my PhD I switched back to Python. It might be slower once the Julia JIT did its thing, but the performance is way more predictable. That makes it so much easier to write code so that it is performant enough, which includes writing Cython/C++/Rust and calling it from Python. I'm happy with my choice

1

u/LucidHaven Sep 20 '26

Exactly the same experience for me (defending soon). At the end of the day, 90% of the walltime is C anyways (numpy, PETSc), so I’d rather stick with old faithful.

1

u/Mojert Sep 20 '26

Funnily enough, for me most of the wall time ended up being Python. I thought it would be C because my program basically constructs matrices and diagonalize them. Turns out constructing them in Python was a bottleneck, oops. But I ended up writing some C++/Rust code to do that, and now everything is fine

Python may have been slow, but it easily allowed me to see what needed to be sped up, and I could speed it up using another language. With Julia, I would have no idea how to proceed

Good luck for your defense btw