{"slug": "show-hn-a-c-compiler-written-with-help-of-claude", "title": "Show HN: A C Compiler written with help of Claude", "summary": "A developer built a non-optimizing C compiler in Java targeting C23 with help from Anthropic's Claude, spending around $400 in AI credits over more than a week of on-and-off work. The project includes a C shell similar to Java's jshell and a built-in x86 assembler, with a linker planned for end-to-end compilation; the developer says the compiler passes all Lua tests and partially compiles curl. The developer states they drive the compiler's architecture and verify the AI implementation with a large test suite.", "body_md": "For fun, I wrote a c compiler (non-optimizing) in Java targeting modern C (C23) using claude. I developed a c shell similar to jshell in java. The compiler also bundles a built in an assembler for x86. A linker is planned for end-to-end compilation. There is still a lot of work in progress but I wanted to share the project early for feedback. I spent around $400 in AI credits so far and it took over a week on and off of working on it.\n\nI drive the architecture of the compiler and verify the AI implementation with a large test suite.\n\nIt can compile and run lua (all test passing) and curl (partially).\n\nCheers!\n\nComments URL: [https://news.ycombinator.com/item?id=49673804](https://news.ycombinator.com/item?id=49673804)\n\nPoints: 2\n\n# Comments: 0", "url": "https://wpnews.pro/news/show-hn-a-c-compiler-written-with-help-of-claude", "canonical_source": "https://github.com/Javier-Barrio/myCC/tree/main", "published_at": "2026-09-12 16:06:11+00:00", "updated_at": "2026-09-12 16:17:09.510050+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-products"], "entities": ["Claude", "Anthropic", "Java", "C23", "Lua", "curl", "jshell", "x86"], "alternates": {"html": "https://wpnews.pro/news/show-hn-a-c-compiler-written-with-help-of-claude", "markdown": "https://wpnews.pro/news/show-hn-a-c-compiler-written-with-help-of-claude.md", "text": "https://wpnews.pro/news/show-hn-a-c-compiler-written-with-help-of-claude.txt", "jsonld": "https://wpnews.pro/news/show-hn-a-c-compiler-written-with-help-of-claude.jsonld"}}