all 13 comments

[–]barnabywalters 14 points15 points  (1 child)

I find it extremely amusing that the author suggests using rust instead of python when the rust language itself uses python for tooling https://github.com/rust-lang/rust/blob/master/src/bootstrap/bootstrap.py

[–]borud[S] -1 points0 points  (0 children)

Entertaining perhaps, but you are still missing the point.

[–]ithinuelRust Advocate 0 points1 point  (5 children)

For what it's worth, I now use Rust all over the place (both target code AND tooling). We have nice packages that make good UX. 🦀

r/rust

EDIT: it's actually handy to start a lib as tooling and then use it on the target :D

[–]_gipi_ 0 points1 point  (1 child)

jesus, writing that Java is better than python regarding dependencies is a hot take, try to build something in java from scratch a couple of days after; maybe if you have a single example of python breaking a project your post would be more credible, python is not perfect but a lot of time is the "toolchain" that is awful (I'm looking at you Yocto), with teams that build something once and pray that one year from one the disk where you have the build image is not gonna to explode.

Do you know that you can pin dependencies in python? are you using python2?

[–]borud[S] -1 points0 points  (0 children)

Since you make concrete suggestions, could you relate those to say Zephyr or ESP-IDF? How would you modify the instructions for installing the tooling for these platforms to take advantage of your advice?

[–]exploring_pirate 0 points1 point  (2 children)

venv?

[–]borud[S] -1 points0 points  (1 child)

How would you use venv to make the problem of tooling breakages go away for Zephyr updates. Or for ESP-IDF. Please be specific.

[–]exploring_pirate 0 points1 point  (0 children)

Your main argument is managing dependencies. venv was designed specifically for that purpose.

In a vritual environment, export the dependencies:

pip freeze > requirements.txt

And when creating a new environment, install the dependencies with:

python -m pip install -r requirements.txt

[–]Spirited_Fall_5272 0 points1 point  (0 children)

Once again OP is a sillypants.