Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> And no possible declarative model can capture it. Functions can.

If functions are your declarative model, what would you say?



Well, in most apps you will layer both kinds of models. You’ll have SQL which is declarative, but you’ll call those queries as procedures. The boundaries around a React component are declarative, but the render function is procedural.

So when I talk about declarative models I’m talking about the Swiss cheese of declarative models with procedures mixed in.


In moxie, everything is procedural, as it were. The declarative syntax is a way to invoke "imperative but idempotent" functions, and the core runtime provides tools for wrangling mutability and repetition in those functions.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: