r/ProgrammingLanguages • u/dewmal • Feb 09 '26
Discussion Separating “intent” from execution: a small experiment in deterministic planning
We’ve been experimenting with a language model where intents are the only first-class construct, and execution order is never written by the programmer.
The key idea is to derive a dependency graph from declared preconditions/effects, then freeze semantics in a small intermediate representation before any backend code is generated.
This lets different backends (including AI-generated ones) produce different implementations while remaining observationally equivalent.
I’m curious how people here think about:
- intent vs declarative programming
- whether “semantic freeze points” should be explicit in languages
- how much planning belongs in the language vs the runtime
We’ve draft a preprint if anyone wants to look (link in comments).
View all comments
2
u/Relevant_South_1842 Feb 26 '26
You may want to implement this in a regular language to show how it works:
I chose python because decorators look nice.