Building a TIR Compiler: From Patent to Prototype
A rule graph, one intermediate representation, and three backends. What was easy, what leaked, and which abstraction I would not build again.
.NET, C#, Python, Avalonia and system architecture. Twenty years of shipping software, and what that discipline does to the way research gets done.
A rule graph, one intermediate representation, and three backends. What was easy, what leaked, and which abstraction I would not build again.
What changes when an agent has to call into a system with an audit log, a permission model and a rate limit, instead of a demo endpoint.
Twenty years of shipping software leaves habits. Four of them turned out to be research habits in disguise, and one of them had to be thrown away.
Fine-tune where the ecosystem is, serve where the process already runs, and put a diff between the two so they cannot silently drift.
A desktop workbench that puts a research capture, the derived descriptors and an agent that can query them in one window.
Lowering the same rule graph to a spreadsheet add-in, a service and an FPGA pipeline, and the four disagreements the conformance suite found.
The disclosure behind the TIR compiler, including the width and latency negotiation that the first implementation got wrong.