r/ProgrammingLanguages • • 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).

0 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/Arakela Feb 09 '26
<Program>    ::= <IntentList>
<IntentList> ::= <Intent> 
               | <IntentList> <Intent>
<Intent>     ::= "intent" <Identifier> "{" <ClauseList> "}"
<ClauseList> ::= <Clause>
               | <ClauseList> <Clause>
<Clause>     ::= "requires" <Identifier>
               | "effects" <Identifier>
               | "emits" <Identifier>

What else is there?