Why Hematite
Agents write the code. People have to trust it.
Hematite, Ochre and Kiln are built for both: the agent that writes the code, and the person who reads it and says yes. These are the ideas behind every decision in them.
01
Writing got cheap. Reading didn't.
An agent writes a change in seconds. A person still has to read it, understand it and decide whether it's right, and that takes as long as it always did. Review is where code is slow now, and where mistakes slip through.
So Hematite is designed around the reader. Every decision asks the same question: what makes code quicker to read, and harder to misread?
02
Agents first, people protected
Agents do most of the writing, so the language is made for the way they work: a complete guide to read before the first line (hem guide), rules they can follow exactly, and error messages that say what to write instead.
People are protected. The rules are there so that anyone reading a change knows what it does, what it can't do and where it can fail, and can say no with confidence.
03
One obvious way
When a thing can be written several ways, every writer picks a different one, and every reader has to know them all.
Hematite usually has just one: one way to loop, one way to say nothing, one way to pass an argument. Code reads the same whoever wrote it, so the reader's attention goes to what it does, not how it's spelled.
04
Rules without exceptions
A rule with exceptions has to be remembered along with every one of them, and that's exactly where people and agents both go wrong.
Hematite's rules hold everywhere, so they can be checked, and they are: before the program runs, even in code that never runs. A mistake caught then costs one message. Caught later, it costs far more.
06
One family, so the guarantees reach the edges
A language's guarantees stop where its code meets the outside world: the page, the database, the request. So the templates and the web framework are built with the language, and checked by it.
Ochre templates are checked like code, and escape every value for the place it lands. Queries are written in Hematite, and no value ever becomes part of the SQL. Tables are the truth about the database, and data is only lost when someone chooses to lose it. The guarantees hold from the request, to the database, and back to the page.
07
Doing less, and faster for it
Every feature is one more thing to learn, to check and to run. Hematite leaves out what it can, and makes what it keeps fast. If doing less weren't also faster, something would be wrong.
How much faster, measured: the same programs in Hematite, Ruby and Python, and the same web app in Kiln, Rails and Django, are side by side on the benchmarks page.
See it for yourself
Hematite is young, and grows one careful step at a time. The guide starts with a first program, and with the mistakes it won't let you make.
Get started