# Explanation

How dmog is put together, and the reasons behind the way it behaves.

These pages explain why dmog works as it does: what it is made of, why it streams, and what a translation keeps. They argue and compare. For the facts they rely on, see the [reference](https://dmog.tabnas.dev/reference/).

- [What dmog is made of](https://dmog.tabnas.dev/explanation/composition.html): dmog's library joins three libraries that do not know about each other, the language, the routers, and the renderers, and the dmog command is one of its users.
- [Why dmog streams](https://dmog.tabnas.dev/explanation/streaming.html): dmog writes a translation as it reads the document, which keeps memory flat, and that choice explains its refusals, its partial output, and --whole.
- [What a translation keeps](https://dmog.tabnas.dev/explanation/translation.html): How dmog translates between any two of its formats without a translator for each pair, and why a translation loses some things and refuses others.
- [Why a program is checked before it runs](https://dmog.tabnas.dev/explanation/programs.html): An alchemy program is compiled into a plan before it reads a byte, which is what lets dmog report mistakes early and state what a run keeps in memory.
