logoalt Hacker News

pocketarc • yesterday at 3:10 PM • 2 replies • view on HN

This is the thing - when the cost of iterating and grinding compiler warnings drops to virtually 0, what new paradigms might we invent to exploit that? Rust gives us an inkling of an idea of what might be possible, but that still predates LLMs and thus still makes concession for human ergonomics. What are structures, guardrails, and patterns, that our OSs, frameworks, and toolchains can put in place, which would result in whole classes of problems going away completely, at the expense of massively increased (but mechanical, and easily automatable with a prompt) developer effort?

The next few years are going to be fun.


Replies

drfloyd51 • today at 1:34 AM

I imagine a kind of language which is just a bunch of declarative statements about conditions and what should happen. Basically BDD. Maybe we will just write the “unit tests” in human and AI writes more comprehensive specification to fill in the blank and for us to modify. And then AI makes code that satisfies the spec.

I don’t believe that source code is a spec. Source code has real time manipulation a kind of temporal dependency. Specs are declarative.

The difference is a spec would say: adding two and three should equal five. Code says you have a variable give it the value two. Now add three to it. Return that value. Maybe a unit test to assert it returned 5. Code defines how a spec is satisfied.

tomaskafka • yesterday at 4:50 PM

This would be fine grained type systems where invalid states are inexpressible.

➕ show 1 reply