8 points by vishvananda 2 days ago | 3 comments
I've been working on a scaffold to teach an agent how to build a self-hosting C++ Compiler from scratch for the past 6 months. One of my recent agent-runs recently achieved self-hosting for less than $500 in API tokens, but the most interesting part is that the reference implementation (which takes the best ideas from every run) can now compile C++ code 4x faster than GCC and Clang.
[–] spacedcowboy 2 days ago
[–] vishvananda 2 days ago
The breakdown is roughly:
* Compiling a TU (Unoptimized): ~2.5x
* Compiling a TU (Optimized): ~4x
* Generated Code Speed (Unoptimized): ~1.01x
* Generated Code Speed (Optimized): 0.99x
[–] spacedcowboy 2 days ago
I use ‘faster’in that sense with my own compiler… https://news.ycombinator.com/item?id=50380978