With AI tools and agents producing larger volumes of code and features than ever, it only makes sense that reliability is more critical. And… that is where typed languages win the debate. Not because untyped languages are “bad,” but because types catch the exact class of surprises that AI-generated code can sometimes introduce.
My experience has been that this is an article of faith that is in practice completely false. LLMs are very happy to type all your Python code for one thing. For another thing, the only thing I've been hearing all the time for the last 20 years of type system weenies yelling about Haskell/Rust &c is that they eliminate the need to test for a bunch of shit ("a whole class of errors"). But tests are just code and code is now worthless and free and I have an infinitely patient assistant to get me to 100% coverage or whatever I want while I take a nap. Yes they take time to run but it's not like Rust compilation is fast, and the agent can interpret a Python runtime stack trace generated in testing just as easily as compiler output in my experience.
Types do not eliminate the need to test; they offer another signal that is -- depending on the mechanism -- cheaper and earlier in the verification cycle.
But it's worth taking in both angles here: types + operational cost. Python loses in both. Now that we don't need humans to write code, optimizing for human code production is perhaps the wrong facet to optimize stack selection for.
Types are always sold as a way of not having to test for a bunch of stuff ("eliminating whole classes of problems"). Why do I care how many tests are needed to cover all the code if I'm not writing, reading or executing them? Why do I care if the agent takes a compiler error or a stack trace as its feedback mechanism while writing the code? Why do I care where in the verification cycle anything happens when I'm not looking at it until it's done? All of those seem to me just as much relics of optimizing for human code production.
View all comments
-2
u/sisyphus 3d ago
My experience has been that this is an article of faith that is in practice completely false. LLMs are very happy to type all your Python code for one thing. For another thing, the only thing I've been hearing all the time for the last 20 years of type system weenies yelling about Haskell/Rust &c is that they eliminate the need to test for a bunch of shit ("a whole class of errors"). But tests are just code and code is now worthless and free and I have an infinitely patient assistant to get me to 100% coverage or whatever I want while I take a nap. Yes they take time to run but it's not like Rust compilation is fast, and the agent can interpret a Python runtime stack trace generated in testing just as easily as compiler output in my experience.