3 ms·
Those issues are annoying but I'm not sure they're all that common. The default interpreter is perfectly fine for most cases as long as it's not years behind in
by xelamonster 2y ago
Those issues are annoying but I'm not sure they're all that common. The default interpreter is perfectly fine for most cases as long as it's not years behind in versions, and I honestly have no idea where you'd get a Python dependency outside of pip, literally never seen one before. The company I worked for that did a lot of Python code had an internal Artifactory with a pip repo so even private packages went through it.
Cargo is great, I agree it's approaching the usability of running a Python script there. But now you're compiling Rust, which is going to take orders of magnitude longer than any time you'd save from the script itself running faster. Plus for most of the scripts Python is used for from what I can tell, more time is spent writing them than running them anyways. So as much as I do love Rust I'm not buying that it's the better choice here.
- tcfhgj 2y ago> dependency outside of pip, literally never seen one before. You don't know Anaconda? > Cargo is great, I agree it's approaching the usability of running a Python script there I think it's clear that the usability of cargo run is much higher than "prepare everything yourself, then python script.py" > which is going to take orders of magnitude longer than any time you'd save from the script itself running faster. In this case: no, otherwise obv. depends on the code and dependencies
- xelamonster 2y agoI thought of conda after I made the post, I've used it a handful of times. But still it's just another package manager, has a GUI installer and env setup usually takes max two commands that will be in the README. My point essentially is that the extra friction in running a script in Python vs Rust is minor relative to extra friction in learning and writing Rust vs Python, so the comparison in some ways misses the purpose of a scripting language. Personally I write a lot of Rust lately and very little Python, I'd absolutely choose it for a script but I understand why it doesn't always make sense.
- _Wintermute 2y agoI love python but I find the above issues to be very common. If I make a script for a non-computational colleague I often get asked, "nice, how can I run it?", and then it usually gets converted into a flask app because I can't be bothered to explain anaconda environments, or trying to install scipy and fortran compilers on their windows laptop. With nim I can just hand them a binary and tell them to double-click it.