types are a key element of an agent-friendly codebase
It has always been this way. Types are equally useful for both humans and AI.
Dynamic typing has always been a flawed concept. It can be justified to some extent: some statically typed languages have terrible type systems (at its release, Java lacked enums and generics, yet included null and relied heavily on nominal typing).
Everything that led to Rust's success is simply a minimally expressive type system. The next step could be even more expressive type systems.
Dynamic languages shine for rapid iteration, but their flexibility can demand extra tokens from the LLM. In duck-typed environments like Python or JavaScript, a variable’s behavior emerges only through usage. When an LLM builds context, it often needs surrounding code, comments, or explicit hints to infer “this variable quacks like a list here, but might be something else later.”
in an agentic era, you don't need to spend more on hardware and resource by choosing an inefficient language. If you ask me, iw ill never choose unless there is a definite ML training or pytorch is directly a dependency in your project.
1
u/BenchEmbarrassed7316 2h ago
It has always been this way. Types are equally useful for both humans and AI.
Dynamic typing has always been a flawed concept. It can be justified to some extent: some statically typed languages have terrible type systems (at its release, Java lacked enums and generics, yet included
nulland relied heavily on nominal typing).Everything that led to Rust's success is simply a minimally expressive type system. The next step could be even more expressive type systems.
Just replace "LLM" with "human" in this text.
1
u/sreekanth850 4h ago
in an agentic era, you don't need to spend more on hardware and resource by choosing an inefficient language. If you ask me, iw ill never choose unless there is a definite ML training or pytorch is directly a dependency in your project.