# Maxwell rewrites running code and formally proves every change is equivalent

Original title: Maxwell: A new kind of model that sits between code and hardware

> Hacker News story 50152466 · language: en · submitted 2026-10-19
> Web version: https://zeli.app/story/50152466
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 128 · by [laginimaineb](<https://news.ycombinator.com/user?id=laginimaineb>) · 💬 64
[original](<https://heymaxwell.ai/>) · [HN discussion](<https://news.ycombinator.com/item?id=50152466>)

## Summary

doubleAI has built Maxwell, a code execution model that watches a program while it runs, rewrites its binaries for the exact hardware and data at hand, and formally proves each replacement semantically equivalent to the original. It runs on CPUs and GPUs, and the company reports 38× faster data pipelines, 4.25× faster AI inference kernels, and nearly twice the speed for LTX-2.5's 4K video generation. Source code stays untouched.

## Key quote

> A CEM lives inside the running program, watching the data flow through it and reshaping the algorithms and instructions as it goes. The output is a binary, run directly on the hardware. No humans in the loop. Therefore, the model must never err.

## HN discussion (64 comments)

### [epsylon](<https://news.ycombinator.com/item?id=50156548>)

> There's a lot of claim and so little technical details on that page.
>
> How was the formalization of Python accomplished? What formal proof framework do you use?
>
> How do you reproduce the optimizations across several instances / runs of the program? (since the source code doesn't change... assuming you don't redo the same work over and over?)
>
> What visibility, tracking and logging is there into the actual code running? Debugging is an extremely important part of building software, especially if there's a demon switching out binary code constantly underneath. Even if the recompiler is perfect (it won't be), user code never is.
>
> Why is the superoptimization and visibility into the data not surfaced back to the level of the source code? This seems like a waste.

### [krmmalik](<https://news.ycombinator.com/item?id=50157436>)

> I read the entire manifesto thinking the discourse about a code execution model would lead to a revelation that this is a model that can reduce bugs in code in realtime and make sure the code runs to the original spec or blueprint. Instead it turned out to be about a model that keeps on optimising code that can go faster and faster over time. That's very exciting in its own right, don't get me wrong, but I was really starting to hope this would be about creating code that breaks less etc.
>
> Maybe it means both but perhaps the emphasis is on speed.

### [mccoyb](<https://news.ycombinator.com/item?id=50155749>)

> Let me say that I like the idea:
>
> \- verification
>
> \- superoptimization specialized to a particular piece of hardware
>
> \- patching binaries while they are running
>
> all great
>
> That being said, I'm getting some weird vibes from the prose on this site. Little phrases and claims that seem intended for the purposes of marketing, but conflate things with clear technical meaning in confusing ways.
>
> For instance: I watched the video ("a code execution model has to be right every time") which implicitly communicates something like "the model cannot hallucinate" ... of course, the agentic LM is still probabilistic, but it is wrapped with verification tools (to reason about semantic equivalence), and is likely post-trained to be good at using those tools.
>
> This strikes me as a conflation between the model and the harness which is intended to strike a marketing point (like: "it doesn't hallucinate") but which is clearly a ridiculous claim to make (falling down the slope: any harness which does error correction for improper tool calls might also be a "model which makes no mistakes")
>
> Also: "self-improving code"
>
> that's not really it, is it? Self-improving code would be code that runs itself and improves itself. This is code I run, which Maxwell watches and improves ... no?
>
> Related: I dislike the usage of the word "model" in the above discussions on the site. Do we want to call everything a "model" now? Can anyone invent a new frontier "model" by post training an agentic LM with tools?
>
> Also, let's say […]

### [fhn](<https://news.ycombinator.com/item?id=50157992>)

> Just compile for your specific hardware sort of like what Gentoo does. I don't want you continuously running a model - sort of defeats the purpose of performance gains.

### [gavinray](<https://news.ycombinator.com/item?id=50154379>)

> This was a lot more exciting than I expected.
>
> The homepage does not do a very good job of explaining what we're looking at:
>
> It appears to be a combination of two things:
>
> 1) A formalization of the Python language
>
> 2) An LLM which hooks into running programs and hot-swaps code with verifiably-equivalent behavior but better runtime performance, found via superoptimization and then verified via the formalization rules
>
> This is brilliant, and in hindsight one of those "I can't believe nobody had thought of this yet" sort of things.

---

## Cite

- Page: https://zeli.app/story/50152466
- Date: 2026-10-19
- Source: heymaxwell.ai (https://heymaxwell.ai/)
- Hacker News: https://news.ycombinator.com/item?id=50152466

## Other languages

- zh: https://zeli.app/zh/story/50152466 · markdown: https://zeli.app/zh/story/50152466.md
- ja: https://zeli.app/ja/story/50152466 · markdown: https://zeli.app/ja/story/50152466.md
- ko: https://zeli.app/ko/story/50152466 · markdown: https://zeli.app/ko/story/50152466.md
- de: https://zeli.app/de/story/50152466 · markdown: https://zeli.app/de/story/50152466.md
- es: https://zeli.app/es/story/50152466 · markdown: https://zeli.app/es/story/50152466.md
- ru: https://zeli.app/ru/story/50152466 · markdown: https://zeli.app/ru/story/50152466.md
