Show HN: Kcc, a C compiler built with an LLM on $100/month boot Linux kernel
github.com
github.com
Many "super-duper impressive" examples of LLM use end up being copyright laundering. Maybe the world is different now and copyright laundering is acceptable, but let's not pretend it's that cool and exciting.
Because this methodology enables the creation of a compiler with such capabilities, it also allows for the development of other complex systems across different domains.
C is a standard that can be implemented in myriad ways, yet any implementation must ultimately be capable of compiling any valid C code. By following this methodology, anyone can extend the codebase to support assembly for a different architecture. This project never relied on "copy-pasting" code snippets from GCC or copyright laundering.
2. Most problems anyone has are solved problems or variations on solved problems. This type of distillation is extremely useful.
I was looking for a timeline given the title. Oldest path seems to be 3 months ago so $300 and 3 months? That could buy you a second-hand graphics card to run the current batch of local models.
- Wall clock time is three months(?)
- Cost $300 possibly shared by other projects(Does CC provide credits or a token measure?)
- How much of your own time was spent interacting with Claude and/or thinking in parallel to his work?
- Did the service go down during those three months(including subpar service by a substitute "flash" model)?
The total cost was simply the recurring monthly subscription fee. I wasn't granted any extra credits by CC; although I occasionally hit my weekly usage limit—partly due to consumption from other projects—I would simply wait a few hours before resuming work.
I spent six to eight hours a day interacting with the session, and whenever I had the time, I dedicated even more hours to it, as my goal was to get the job done. During the final days, much of the time was spent waiting for regression tests to pass so I could proceed with debugging.
The service remained active throughout the entire seven-week period. I consistently used Opus 4.8 to maintain model consistency during development.
The tools will keep improving, and as for the non-determinism, we already have to deal with it in language runtimes that make use of GC, JIT (+ PGO), and machine learning based compiler passes.
The fifth programming languages generation is coming.
There is a C version under literate/verification, for example "main" is [1][2]:
[1] assembly version: ./literate/driver/43-main.weft
[2] C version: ./literate/verification/50-self-hosting-main.weft
https://github.com/LiterateDrivenDevelopment/kcc/blob/main/l...
asm: https://github.com/LiterateDrivenDevelopment/kcc/blob/main/l...
C: https://github.com/LiterateDrivenDevelopment/kcc/blob/main/l...
> kcc is a formal C17 compiler written entirely in ARM64 assembly....
The main implementation is the 5 GL English language in literate programming form, used to drive the AI to produce the ARM64 assembly.