this post was submitted on 03 Apr 2025
129 points (97.1% liked)
Fediverse
32395 readers
433 users here now
A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).
If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!
Rules
- Posts must be on topic.
- Be respectful of others.
- Cite the sources used for graphs and other statistics.
- Follow the general Lemmy.world rules.
Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration)
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yeah, this would be my concern as well if I had to run it. Sure Python apps can be fast and most time is spent in IO, not compute, and if you're running a profitable operation the exact cost of compute might not matter much. However if you're running a non-profit service and you want it to be as dirt cheap as possible so it can be free for most users, then the cost of compute very much does matter.
If you want it to be "free to most users", the cost of data storage and IO will completely dominate over the cost of CPU.
There are plenty of good arguments to prefer Rust over python for a distributed application, but "language efficiency" is not one of them.
Anyway, if you are biased in favor of Rust and want a decent argument to justify it, I will let you use 'It's easier to compile Rust to WASM and have the application run on the browser, while compiling python in a cross-platform way is a nightmare', free of charge.
Ease of cross-compiling is really one of my favorite things about Rust. It can run anywhere with little coaxing needed.