1,242 karma · joined Jan 10, 2011 (15y ago) · 179 submissions
1.
Show HN: Cppgm compiles C++ to WASM 4x faster than Clang(incpption.com ↗)
6 points · by vishvananda · 1w ago · discuss
comment 2w ago · link · parent
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-...
comment 2w ago · link · parent
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
5.
Show HN: A C++ Compiler That Is Faster Than GCC and Clang(github.com ↗)
8 points · by vishvananda · 2w ago · 3 comments
comment 1mo ago · link · parent
comment 1mo ago · link · parent
[1]: https://github.com/vishvananda/cppgm-extended
[2]: caveats here include only c++11, only x86, and potential for bugs, but 7x is pretty darn significant even with caveats
comment 1mo ago · link · parent
I tried the cheapest provider on openrouter and burned through $50 in a few days. Quality was ok, seems slightly above Luna quality perhaps? But that $50 is 1/4 of my codex subscription where I could have burned that many tokens or more using Astra within my weekly reset.
This won’t last forever but as long as the frontier labs are subsidizing this heavily the open models won’t matter.
comment 3mo ago · link · parent
[0]: https://medium.com/@vishvananda/i-spent-2-billion-tokens-wri...
comment 4mo ago · link · parent
comment 4mo ago · link · parent
comment 5mo ago · link · parent
* Built a clone of the Alpha Zero implementation[1] my team built at oracle
* Ported my hobby NES emulator from javascript to rust[2] (this actually took less than 30 minutes and worked on the first try)
* Implemented all of the lessons from the C++ Grandmasters Challenge (which eventually led to a complete c++ compiler[3])
The thing that flipped the switch was using it to build things that I actually put sweat-equity in to previously. I knew how hard these things were to build, so it landed in a way that other projects had not.
[1]: https://medium.com/oracledevs/lessons-from-implementing-alph...
[2]: https://github.com/vishvananda/popeye
[3]: https://medium.com/@vishvananda/i-spent-2-billion-tokens-wri...
comment 6mo ago · link · parent
[1]: https://medium.com/@vishvananda/i-spent-2-billion-tokens-wri...
comment 6mo ago · link · parent
llm -> prompt -> result
llm -> prompt + prompt encoded as skill -> result
llm -> prompt + deterministic code encoded as skill -> result
I do think prompting to generate code early can shortcut that path to deterministic code, but we're still essentially embedding deterministic code in a non-deterministic wrapper. There is a missing layer of determinism in many cases that actually make long-horizon tasks successful. We need deterministic code outside the non-deterministic boundary via an agentic loop or framework. This puts us in a place where the non-deterministic decision making is sandwiched in between layers of determinism:
deterministic agentic flows -> non-deterministic decision making -> deterministic tools
This has been a very powerful pattern in my experiments and it gets even stronger when the agents are building their own determinism via tools like auto-researcher.
comment 8mo ago · link · parent
comment 1y ago · link · parent
[1]: https://qz.com/tech-layoffs-tax-code-trump-section-174-micro...
comment 1y ago · link · parent
comment 1y ago · link · parent
One could even imagine going a step further and having a confidence level associated with different parts of the code, that would help the LLM concentrate changes on the areas that you're less sure about.
comment 2y ago · link · parent
[1] https://medium.com/@vishvananda/the-rebirth-of-twelve-factor...
22.
Updating Twelve-Factor: A Call for Participation(blog.heroku.com ↗)
11 points · by vishvananda · 2y ago · 2 comments
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 4y ago · link · parent
29.
Progrium Technology Thesis(progrium.com ↗)
2 points · by vishvananda · 4y ago · 1 comment