logoalt Hacker News

onion2k • today at 2:24 PM • 1 reply • view on HN

LLMs don't care and can just as easily keep track of them as separate concerns.

Only if they have the context of every part of the code though. If you put type hints in your code then the LLM can understand the shape of what some code is supposed to send/receive without having to trace back through the code to the source of that data. That means a model with a much context window can successfully change it. That's both cheaper and faster.

Also, we can still do things without LLMs. You can compile and test code as a part of CICD, and having something doing a static type check is a good quality gate.

Maybe in a future where we run models locally that's not an issue, but if Anthropic 100x their prices tomorrow I'll be glad I left some aspects of development working without LLM input.


Replies

win311fwg • today at 2:56 PM

> Only if they have the context of every part of the code though.

Why?

> You can compile and test code as a part of CICD, and having something doing a static type check is a good quality gate.

Nothing about separating concerns precludes that, of course. Most serious validation languages already avoid the intertwinement. It's not exactly a new concept. The trouble is that humans often find it hard to keep track of both at the same time, so we trick them into thinking it is one language to get around that (typically at the cost of lesser validation). But LLMs do not have the same trouble.

➕ show 2 replies