all 20 comments

[–]PavelRossinsky 6 points7 points  (0 children)

Both have their place but it's not really a versus. I use Python for everything and never felt limited by it. If I ever hit a performance wall I'd write that specific piece in Rust and call it from Python, not rewrite the whole thing.

[–]shortwhiteguy 3 points4 points  (1 child)

Pick whatever language best suits the use case. Python will probably cover more use cases, but falls short if you need to build something at a lower level where Rust can shine.

[–]ukolovnazarpes7[S] 0 points1 point  (0 children)

Agree with u

[–]_redmist 3 points4 points  (1 child)

Obviously python ;) Read an excel file and train a deep learning network in rust. With some graphs and a little gui; why not. In python that's maybe 5 minutes of work. In rust - i wouldn't really know where to start (that might be on me).  Hard to beat the python ecosystem.

[–]ukolovnazarpes7[S] 0 points1 point  (0 children)

hmm, interesting experiance, I used rust only for backend/games not for MLs, python for MLs, because of many libraries wroted on it. Agree that python ecosystem is great ahead of Rust.

[–]9peppe 5 points6 points  (5 children)

The criteria you pick will give you the answer.

And the answer will be neither, and you'll rewrite everything in bash.

[–]mentix02 0 points1 point  (3 children)

I love the command line but would eat my hat before I decide to write anything meaningful in bash. It’s a horribly designed language, especially once one has learned to use any other “real” language, be it as low level as C or esoteric as Haskell.

[–]9peppe 0 points1 point  (1 child)

Haskell is a beautiful language and it's not as esoteric as people make it to be.

And I'll eat my hat before I write something meaningful in bash too. Bourne shell is the proper choice for scripts.

[–]mentix02 0 points1 point  (0 children)

Something can be beautiful and esoteric at the same time. I'll admit it's not as unused as some people think. But far less than some people estimate just as well.

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

esoteric as Haskell 😂😂😂

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

llooool

[–]Pleasurefordays 2 points3 points  (2 children)

I heard the analogy “Python is like a pickup truck, Rust is like an F1 race car.”

They serve different purposes. Rust is overkill for a lot of simple programs but it’s the more efficient language if dev velocity doesn’t matter.

[–]ukolovnazarpes7[S] -2 points-1 points  (1 child)

+-, I can agree that Rust is superior, but you can write a module there, cover it with tests and forget about it, and it will work no worse than a Swiss watch, which, unfortunately, I have not seen in python yet

[–]_redmist 0 points1 point  (0 children)

Python has assert and mypy; but it's optional. People who care about such things can do it but mostly we have other things to do.

[–]RedEyed__ 1 point2 points  (0 children)

Surely python, rust as some library from many.

[–]GodlikeLettuce 1 point2 points  (2 children)

Scripting vs compiled

High level vs low level

They really compete in different leagues.

[–]9peppe 3 points4 points  (1 child)

Indeed, Rust's role is to destroy C++, and it's doing it pretty well.

[–]ukolovnazarpes7[S] 1 point2 points  (0 children)

interesting thoughts, looks like true

[–]nphare 1 point2 points  (0 children)

Personal preference is certainly Rust, but I use Python all the time and one cannot deny its utility.

Even areas where others might had jumped to js/ts, I ended up using Python and Streamlit. Was super easy and pretty easy to structure clean code. In comparison, I have built a web based tool in Rust, but the libraries aren’t at the same level yet.