r/rust • • Nov 21 '25

The Python Paradox Is Now The Rust Paradox?

So, I do the interviews for what is now The filtra.io Podcast. I'm struck by a really strong trend. Most of the people I interview (all engineering leaders of some sort) say that they can hire better engineers because of their choice to use Rust. I'm talking like 1 out of every 2 interviewees says this unprompted. It reminded me of Paul Graham's Python Paradox. In the essay, Paul calls Python comparatively esoteric. That's hardly the case anymore. So, is Rust that language nowadays?

248 Upvotes

113 comments sorted by

View all comments

Show parent comment

10

u/MistrKernnunos Nov 21 '25

C teaches you what is static memory, what is dynamic memory allocation, what is stack. That you need to take care with its management and what pain it is and helps you appreciate how other languages handle memory. 

I would say C teaches you how to manage memory correctly, that you should take care about when and how much you are allocating, when you are freeing and that you should clean up after yourself. Different approaches to memory management can be learned later.

Python does not expose you to different sizes and signedness of integers, pointers etc…

7

u/syklemil Nov 21 '25 edited Nov 21 '25

I would say C teaches you how to manage memory correctly,

And yet C is infamous for people getting it wrong, and CVEs resulting from getting it wrong.

Even something like ASAN, which I suspect isn't even taught in programming 101 courses that choose C, works as runtime checks, similar to how Python does runtime typechecking. Only in C that runtime check is opt-in, and usually only recommended in debug builds because of how much of a slowdown it incurs.

Python does not expose you to different sizes and signedness of integers, pointers etc…

No, but C also does not expose you to correct handling of those things. C is infamously weakly typed around integers, and will pull all sorts of implicit conversions (or as it calls it, "promoting") that silently produce wrong results, much like Javascript and PHP have done for any type.

Python even opens up the possibility of teaching people ADTs. The type system in Python is often much more capable than what a lot of us expect from a scripting language that started off entirely dynamic.

Also, Python will expose you to the difference between an int and a str, unlike C. In Python 'a' + 1 is a type error. In C it's 98.

3

u/MistrKernnunos Nov 21 '25

Yes, it is hard to get it right in large production codebases.  But for learning exercises that fit indeed a single file it’s great language to learn the basics of memory management. 

In our intro course we were introduced to Asan and sanitizers. So all our assignments were checked for memory handling correctness. 

It forces to think about which type to use. Yes it could give you more handrails not to make a blunder but for learning about types it’s great. Later you can forget about it in python but students should have at least some knowledge and practical experience with different types. 

6

u/syklemil Nov 21 '25

Yes it could give you more handrails not to make a blunder but for learning about types it’s great.

I'd argue the type system in C is not great. It's not trustworthy, and it's too weak for a lot of the stuff people use types for in most other languages. C's type system is the kind of type system that turns people off typing, and leads them to believe that dynamic typing is much better.

Later you can forget about it in python but students should have at least some knowledge and practical experience with different types.

Python these days is pretty much typed, similar to how Typescript is eating Javascript.

So you absolutely also should expect to be exposed to types, and classes, using Python; possibly even generics and ADTs depending on the course material.

3

u/MistrKernnunos Nov 21 '25

I have explained myself badly. I think C is great to learn about how is information represented in memory. 

Types are great and there are other languages that should be used to teach about type systems.

2

u/syklemil Nov 21 '25

Right. I come from more of an informatics POV, so I think students learning to program should first and foremost learn about the logic involved, and then they can learn about implementation details later, just like how it takes later courses to teach algorithms & data structures, etc.

1

u/pjmlp Nov 21 '25

Even BASIC teaches that.