← All videosTHE SHORT VERSION
More like this

ai coding / gpt 6 astra / rust / backtesting / performance optimization / agi

GPT-6 Astra Made My Rust Engine 9x Faster. Four Models Said Impossible.

Four AI models spent three months inside my Rust backtesting engine and could not make it faster. Claude Opus 5 told me the physics would not allow it, and I started pricing dedicated GPU clusters at $46,720 a month. Then GPT-6 Astra read my code and named the problem: my weight projection is a special case of the continuous quadratic knapsack problem, which has had an exact solution since a 2014 paper by Cominetti, Mascarenhas and Silva. My allocator had been guessing that answer with a hundred-pass binary search.

Astra replaced the search with seven lines. On the workload the solver actually touches, eight-ETF risk parity, warm execution went from 470 seconds to 51. It profiled the engine, found the bottleneck, wrote the fix, benchmarked it, caught its own 8,192-asset regression, diagnosed the cause, repaired it and ran the regression suite before I approved the deploy. I had written that allocator, profiled it and optimized it twice, and I never thought to ask whether somebody had already solved it.

Transcript

0:00AGI is literally here right now. I built my trading platform from scratch.

0:05That took 9,000 commits and 1.6 million lines.

0:09My first engine was TypeScript and it was slow. So I taught myself Rust and rewrote it. Then I wrote an article about it that went everywhere.

0:16I hated Rust, but I had a goal, so I kept grinding. Eventually the models got good enough to help. One rewrote my engine and made it 4x faster.

0:25Then I hit a wall. Four AI models spent three months on my engine and could not make it any faster. Claude Opus told me the physics would not allow it, so I started pricing hardware.

0:35Then GPT-6 Astra shipped. Its first idea was so naive I cursed it out.

0:40So it read my code and named the problem. Mine is a continuous quadratic knapsack problem. That has one exact answer, and my code was guessing it a hundred times.

0:50Astra found the paper and wrote seven lines. That workload took 470 seconds. Now it takes 51.

0:57An AI model autonomously profiled, optimized, and improved my engine faster than I thought possible.

1:03One model told me the physics would not allow it.

1:06The other acted like a senior software engineer and fixed it autonomously.

1:10This is not next token prediction. It is artificial general intelligence.

Join the conversation

Loading conversation…