logoalt Hacker News

danielvaughnyesterday at 5:59 PM2 repliesview on HN

In addition, I think token efficiency will continue to be a problem. So you could imagine very terse programming languages that are roughly readable for a human, but optimized to be read by LLMs.


Replies

Insanityyesterday at 6:24 PM

That's an interesting idea. But IMO the real 'token saver' isn't in the language keywords but it's in the naming of things like variables, classes, etc.

There are languages that are already pretty sparse with keywords. e.g in Go you can write 'func main() string', no need to define that it's public, or static etc. So combining a less verbose language with 'codegolfing' the variables might be enough.

show 3 replies
idiotsecantyesterday at 6:23 PM

I think I remember seeing research right here on HN that terse languages don't actually help all that much

show 1 reply