Replies: 4 comments 6 replies
-
I thought @RCasatta attempted to introduce Python somewhere before hand but I don't see it. |
Beta Was this translation helpful? Give feedback.
-
Python is super annoying to use to do shell-like things like search-and-replace, reading from files and splicing their contents, shelling out to git, etc. I am also not very familiar with Python (though the situation there is certainly better than with Bash). |
Beta Was this translation helpful? Give feedback.
-
I find it Python still quite error prone and not very productive. The upgrade in expressiveness fails to make up for downgrade in "shellness", IMO. Which combined with introducing another language to the project, makes me never consider it. Historically "just running Python" was never as easy, and dependency incompatibility, bugs etc. made me dread using software implemented in it. It might have gotten better with Poetry and proper lock file handling, but I'm forever averse to using anything in Python. https://docs.rs/duct/latest/duct/ Writing scripts in Rust is quite productive, and does not introduce another language. The biggest challenge is making sure they are available compiled for the end user (developer). It's not very unlike a different problem with Python - you need to make sure the user has a Python in the PATH (which I don't). If you have something like a Nix dev shell, you can just seamlessly compile all Rust scripts and add them to the PATH. If you don't, you might have a just command that does it (part of some kind of Another approach is So currently in Fedimnint we write shell scripts with |
Beta Was this translation helpful? Give feedback.
-
I think we should write them in Rust instead. Perhaps we can do something like |
Beta Was this translation helpful? Give feedback.
-
I like nerding out and writing shell scripts as much as the next bloke but it is a time sink and there are always bugs. #2633 just uncovered a bunch of things we were doing wrong, and even with a chat bot it took me ages to fix them.
Is there a reason we don't use Python for all our test infrastructure?
Beta Was this translation helpful? Give feedback.
All reactions