← Latest papers
💻 computer science

Velosiraptor: Code Synthesis for Memory Translation

Velosiraptor is a code synthesis system that automatically generates verified, low-level operating system code for configuring memory hardware, thereby eliminating manual implementation errors and streamlining the porting of OSs to new platforms with novel translation mechanisms.

Original authors: Reto Achermann, Em Chu, Ryan Mehri, Ilias Karimalis, Margo Seltzer

Published 2026-08-11
📖 4 min read☕ Coffee break read

Original authors: Reto Achermann, Em Chu, Ryan Mehri, Ilias Karimalis, Margo Seltzer

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine your computer's memory as a massive, bustling city where every application is a different neighborhood. To keep these neighborhoods safe and separate, the city needs a sophisticated traffic control system. This system, known as the Memory Management Unit (MMU), acts like a super-smart traffic cop and translator combined. Its job is twofold: it decides who is allowed to enter a specific street (protection) and it translates a street name like "Main Street" into the actual GPS coordinates where the house is located (translation). If this traffic cop gets confused or makes a mistake, the whole city could collapse, or worse, a thief could sneak into a bank vault thinking it's just a bakery.

For decades, the people who build the operating systems (the "city planners") have had to manually write the instructions for these traffic cops. Every time a new type of hardware arrives with a slightly different way of handling traffic, the planners have to sit down, read a massive, confusing manual, and painstakingly rewrite the code by hand. It's a tedious, error-prone process where a single typo can leave a backdoor open for hackers. This paper tackles the headache of manually programming these complex memory systems, proposing a way to let a computer write the instructions for the traffic cop automatically, ensuring the rules are followed perfectly every time.


The Paper: Velosiraptor

Meet Velosiraptor, a new tool that acts like a master architect and a code-writing robot rolled into one. Instead of forcing human developers to manually scribble out the complex, low-level instructions needed to configure memory hardware, Velosiraptor lets them simply describe what the hardware should do in plain, high-level terms. Think of it like giving a chef a recipe card that says, "Make a sandwich with ham and cheese," rather than forcing them to manually list every step of slicing the bread, spreading the mayo, and arranging the meat. Velosiraptor takes that simple description and automatically generates the precise, verified code required to make the hardware behave exactly as described.

The system works by breaking down the complex memory hardware into smaller, manageable Lego-like building blocks. It uses a special language to describe how these blocks fit together and how they should react to different requests. Once the description is ready, Velosiraptor doesn't just guess; it uses a powerful mathematical engine (called an SMT solver) to test millions of possible code combinations in its mind. It searches for the specific sequence of instructions that will move the hardware from its current state to the desired state without breaking any rules. If it finds a solution, it verifies it mathematically to ensure it's 100% correct before handing the code to the developer.

The researchers found that this approach is incredibly fast and efficient. In their tests, Velosiraptor could generate the code for complex memory systems, like the page tables used in modern computers, in less than two seconds. To put that in perspective, compiling the entire Linux operating system takes over 150 seconds, meaning Velosiraptor's work is so fast it barely adds any time to the build process. The paper also shows that the code Velosiraptor writes performs just as well as code written by human experts, with no noticeable difference in speed.

Perhaps the most exciting part of this research is that Velosiraptor doesn't just write software; it can also build the hardware itself in a simulation. Using the exact same description, the tool can generate a virtual version of the memory hardware to run on a computer simulator. This allows researchers to test new, imaginary memory designs without needing to build a physical chip first. They can see if a new idea works, tweak it, and generate the software to run it, all on a laptop.

The authors demonstrate that this tool can be integrated into real-world operating systems, successfully booting a complex system called Barrelfish using code that Velosiraptor generated from scratch. While the paper focuses on specific hardware like x86 and Arm processors, the method suggests a future where developers can easily adapt their operating systems to new, weird, or custom hardware without getting bogged down in the nitty-gritty details of manual configuration. It's a step toward a world where the boring, dangerous work of programming the brain of a computer is handled by a reliable, automated assistant, leaving humans free to focus on the bigger picture.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →