@ryanlpeterman: Martin Odersky (creator of Scala, @odersky) on why types will become the contract between humans and AI-written code: I…
Summary
Martin Odersky, creator of Scala, argues that types will become the contract between humans and AI-generated code, helping humans maintain control as AI writes and exploits vulnerabilities in code at scale.
View Cached Full Text
Cached at: 10/14/26, 01:57 PM
Martin Odersky (creator of Scala, @odersky) on why types will become the contract between humans and AI-written code:
I think right now we’re sort of in an existential crisis. We have AI generating the code, but humans being asked impossible tasks, like to review all these mountains of code, which will never work.
And at the same time, AI has also gotten extremely good at exploiting vulnerabilities in code. Like we all heard of Fable and things like that, that you can’t use it anymore because it’s too dangerous. It will exploit things.
So we are at a moment where it’s very dangerous that we lose control as humans of what actually happens here. And that’s a challenge that I think programming languages can help meet. Definitely not only programming languages, that’s no silver bullet, but they definitely can help.
If the code is AI-generated, then the focus has to go elsewhere. And I think the focus will go to the interfaces and to the types. I expect types will become a lot stronger and more precise than what we had, because types are the handle that we can make a contract between the human and the AI, that the human can understand, that’s concise enough to be reviewed, and that the AI can keep to.
We have to level our game quite a lot, because right now, let’s face it, type systems are mostly recommendations. They’re mostly things that mostly hold, but not always. There are no guarantees, because you can always have a cast, or use some dirty memory. There are a lot of techniques to undermine the type systems.
Ryan Peterman (@ryanlpeterman): Martin Odersky (@odersky) is the creator of Scala and I interviewed him to compare different languages designs (Rust vs Zig vs Python vs Scala) and how AI will impact programming languages.
In this episode:
• Comparing Rust, Zig, Python, and Scala designs • Why its hard to
Similar Articles
@ryanlpeterman: Will AI write +90% of all code this year? Anders Hejlsberg (Creator of Typescript, C#): "For certain classes of apps th…
Anders Hejlsberg, creator of TypeScript and C#, discusses whether AI will write over 90% of code this year, noting it can handle all code for certain app classes but not high-quality code like the TypeScript compiler, and expresses hope that AI doesn't fully replace human coding.
@ryanlpeterman: Why Rust is overused right now Martin Odersky (Creator of Scala): "Right now, rust is actually overused because a lot o…
Martin Odersky, creator of Scala, argues that Rust is overused for applications where garbage collection is adequate, suggesting simpler alternatives. The tweet promotes an interview discussing comparisons between Rust, Zig, Python, and Scala, and AI's impact on programming languages.
@ryanlpeterman: Will AI replace junior software engineers? Anders Hejlsberg (Creator of TypeScript, C#): "Well, if it does, then how do…
Anders Hejlsberg argues that AI is unlikely to replace junior software engineers entirely, as senior engineers remain essential, but the role is evolving towards supervising AI agents.
@addyosmani: https://x.com/addyosmani/status/2056078124346228860
A cautionary note from Addy Osmani that relying too heavily on AI to write code can hinder learning and degrade one's mental model of software development.
Martin Fowler: Technical, Cognitive, and Intent Debt
Martin Fowler reflects on AI’s impact on code quality, emphasizing that human laziness drives crisp abstractions while LLMs risk bloating systems with unnecessary complexity.