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
Show parent comment
4
u/fuckkkkq Feb 09 '26
hmm, this sounds like a declarative DSL 😅
which is not to say it doesn't have value! I think you should dig more into the details of what your idea would look like in practice