Hacker News

New Rust compiler

by @vishvananda

I'm doing something ambitious. I'm taking a radical approach to improving rust compile times. The reason it is radical is it involves building a brand new rust compiler. This was inspired by a project I started[1] about six months ago to teach agents to build C++ compilers from scratch. I wrote a (long) series of blogs about the process[2]. After iterating on many agent built C++ compilers, I now have a version that compiles about 4x faster than GCC and Clang[3]. I think i can extend the same approach to rust. I'm still a ways from the rust self-hosting stage but early results are promising. [1]: https://github.com/vishvananda/cppgm-extended [2]: https://medium.com/@vishvananda/i-spent-2-billion-tokens-wri... [3]: https://medium.com/@vishvananda/how-i-built-a-compiler-that-...

Discover more builders

Builderlust is an endless, joyful scroll of real projects people are shipping right now. Get the app to keep finding your next spark of inspiration.

📱 Coming soon to iOS & AndroidOpen in the app