All knowledge is distilled from prior knowledge. I don’t think it matters what the author thinks or doesn’t think. The world is different than the one you knew now.
One thing is when you "distill" a working compiler from a language spec and books about compilers, another thing is when you e.g. copy chunks of GCC source code. That's definitely different, no?
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.
I disagree, it’s incredibly impressive that this task can be automated. I think your hang up is really about not liking AI, which is totally fine. But this is still a very impressive application of the technology regardless
I am demonstrating that the development methodology has successfully produced an assembly-based C compiler capable of compiling the Linux kernel—a complex task, given the complexity of both compilers and the kernel itself.
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.
On optimization I deliberately aimed low: a small set of passes, nothing beyond what I could prove. Everything is verified against clang/gcc output on real software rather than against my own expectations, and the compiler compiles itself and reproduces itself bit-for-bit, so it's its own regression test. In practice the generated code holds up fine — DOOM runs smoothly, so do Lua. I chose provable correctness over speed; optimization is the least finished part of the project and there's real work left there.
I vouched for you here because this compiler is interesting to me and I'd like to see some discussion on it. All your comments are listed as 'dead' though. Likely because they seem to be LLM-generated. Maybe writing by hand or noting you're using an LLM for translation (if you are) would help.
The post probably should have been show HN too being posted by the author himself. I don't know all of the rules but perhaps it would be better for engagement if you reposted the project for him.
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.
I used my $100-per-month Cloud Code subscription. It was enough to build the compiler from scratch. Although the subscription also allowed me to work on other projects simultaneously, the methodology optimizes resource usage—an important aspect to demonstrate as well. That is why I chose to create a C compiler.
I am using an LLM solely to help improve my translation. The compiler works, and the code explains it very well. We can discuss the compiler and the method I used to create it with the help of AI.
The part of it being written in ARM64 Assembly is the most relevant one, yet again making the point that we don't necessary need to generated third generation source code languages as mechanism to produce executables out of AI tooling.
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.
Well, why treat the assembly version as the main implementation when you have a supposedly equivalent C version around? If this is released as a plain C project I would actually be interested to try it out.