74
submitted 3 weeks ago by nemeski@mander.xyz to c/rust@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] 1984@lemmy.today 1 points 2 weeks ago* (last edited 2 weeks ago)

Python is actually super known for its batteries included approach, it has modules for everything. Simply do pip install anything. But best practice is to use a python virtual environment and install packages into that one. Cargo does this by itself in each project and doesnt install modules globally.

But python code is so much easier to write. Its basically almost English and the syntax is easy. Rust... Not so much. Its quite ugly.

Its a systems programming language. Designed to be fast to execute. Its one of the slowest to write code in. But sure, with Ai, you can just ask for a rust script and it will run.

[-] FizzyOrange@programming.dev 3 points 2 weeks ago

it has modules for everything

Not everything. PyYAML, Pydantic and Typer are things I commonly want in scripts that aren't in the standard library.

Simply do pip install anything. But best practice is to use a python virtual environment and install packages into that one.

It's more than "best practice". It's mandatory on many recent Linux distros. And yeah setting up a venv and installing dependencies is not something you want to have to do for each script you run.

Its one of the slowest to write code in.

It depends what your goal is. If you want robust code that works reliably then I would say Rust has the edge still. Yes it will take longer to write but you'll spend way less time debugging it and writing tests.

this post was submitted on 20 Dec 2025
74 points (97.4% liked)

Rust

7650 readers
6 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS