|
|
| | Julia vs. NumPy performance: Strategy for For-loop? | | 1 point by northlondoner 15 days ago | hide | past | favorite | 10 comments | | Lately, read about Julia Langs' preference in some quantum research. In general, for single shot computations like matrix and vector operations including linear algebra, the performance between Julia and NumPy is comparable due to NumPy's underlying C/Fortran code base. But for Monte Carlo methods for-loops are hard to avoid. Is there any strategy for For-loops in NumPy avoiding python overhead? Or migrating to Julia is a better choice? I am trying to avoid Rust as I see it as more system level language. |
|

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
|
If you are just programming using pre-existing libraries, and using those libraries the way the author intended them to be used, then for most cases Python is probably fine, but if you are doing something relatively novel that some big framework doesn't cover for you, that's where I think Julia really stands out and makes a big difference relative to Python.
I really recommend giving it a try.