logoalt Hacker News

simianwordstoday at 3:36 PM8 repliesview on HN

Just recently I heard that typed languages are best for agentic programming


Replies

oefrhatoday at 3:52 PM

Just recently I heard that they can donate to “typed languages” too, a donation to one language does’t preclude other donations, and given their cash injections they have a few $1.5m’s to spare.

lambdaonetoday at 3:42 PM

Python is a typed language. Perhaps you were trying to say something different?

show 2 replies
exceptionetoday at 3:45 PM

For any programming really, but I think Python got big due to

  a) the huge influx of beginners into IT,
  b) lots of intro material available in Python and 
  c) having a simple way to run your script and get feedback (same as PHP)

I say that as someone urging people to look beyond Python when they master the basics of programming.
show 1 reply
danielblntoday at 3:40 PM

Types are best, period. Whether they are native or hints doesn't really matter for the agent, what matters is the interface contract they provide.

show 1 reply
reactordevtoday at 3:39 PM

So add mypy to your pre-commit

show 2 replies
dude250711today at 4:42 PM

For vibe code, since it's not important whether the output works, JavaScript is even better.

desireco42today at 3:50 PM

Why is this getting downvoted... it is true. Also it is true that dynamic languages (like Ruby ;) and Python) are more efficient with tokens, like significantly then types like C, C++ or such. But Javascript and Typescript are using twice the tokens of Ruby for example and Clojure is even more efficient, obviosly I would add.

show 1 reply
pansa2today at 3:46 PM

AFAICT Python basically is a [statically-]typed language nowadays. Most people are using MyPy or an alternative typechecker, and the community frowns on those who aren’t.

show 2 replies