Hacker News with Generative AI: Compilers

Parsing JSON in 500 lines of Rust (krish.gg)
Last semester at university, I took a course called "Syntax-Based Tools and Compilers". It focused on building a scanner, parser, compiler, and so on for a language called PL0. We used Python in the course, but I was really interested in learning Rust at the time.
RPython Compilation Quick Reference (tilde.town)
Well first things first, this is way more ram hungry than you'd expect, and you're restricted to python 2. BUT, you do end up with nice fast binaries at the end. So let's proceed!
Eigen Compiler Suite (openbrace.org)
Welcome to the official website of the Eigen Compiler Suite, a free and self-contained software development toolchain.
How do modern compilers choose which variables to put in registers? (stackexchange.com)
How do modern compilers choose which variables to put in registers?
Explaining my fast 6502 code generator (2023) (pubby.games)
To learn how optimizing compilers are made, I built one targeting the 6502 architecture. In a bizarre twist, my compiler generates faster code than GCC, LLVM, and every other compiler I compared it to.
Ways to generate SSA (bernsteinbear.com)
Static Single Assignment is a program representation where each “variable” (though this term can be misleading) is assigned exactly once. Mostly the variables aren’t variables at all, but instead names for values—for expressions. SSA is used a lot in compilers. I’m making this page to catalog the papers I have found interesting and leave a couple of comments on them.
Nocc – A Distributed C++ Compiler (github.com/VKCOM)
nocc propagates a compiler invocation to a remote machine: nocc g++ 1.cpp calls g++ remotely, not locally.
Compiling Array Languages for SIMD [pdf] (vmchale.com)
GCC 15 Compiler Showing Off Nice Performance Improvements on AMD Zen 5 (phoronix.com)
There were a number of other applications with small but consistent performance improvements when built by GCC 15.
The inevitability of the borrow checker (yorickpeterse.com)
When defining a type in Inko, it's allocated on the heap by default.
Java JIT Compiler and Runtime in Common Lisp (github.com/atgreen)
OpenLDK is a Just-In-Time (JIT) compiler and runtime environment for Java, implemented entirely in Common Lisp.
OpenLDK: A Java JIT compiler and runtime in Common Lisp (github.com/atgreen)
OpenLDK is a Just-In-Time (JIT) compiler and runtime environment for Java, implemented entirely in Common Lisp.
From recursive descent to LR via Pratt parsing (2021) (abubalay.com)
Amsterdam Compiler Kit for Cray X-MP (github.com/kej715)
This fork of the Amsterdam Compiler Kit supports the Cray X-MP supercomputer and the COS operating system platform.
Tilde, My LLVM Alternative (yasserarg.com)
I'm Yasser and I've made it my mission to produce an alternative to LLVM, the current king of compiler backend libraries. I'm calling it Tilde (or TB for tilde backend) and the reasons are pretty simple, i believe it's far too slow at compiling and far too big to be fixed from the inside. It's been 20 years and cruft has built up, time for a "redo".
Clang now more aggressively uses undefined behavior on pointer addition overflow (github.com/llvm)
Clang will now more aggressively use undefined behavior on pointer addition overflow for optimization purposes.
Porting the GNAT Ada compiler to macOS/aarch64 (briancallahan.net)
After getting a port of GDC working on my new MacBook Pro, there are still two languages left in the GCC suite that I don't have: Ada and Go.
Porting the GNAT Ada compiler to macOS/aarch64 (briancallahan.net)
After getting a port of GDC working on my new MacBook Pro, there are still two languages left in the GCC suite that I don't have: Ada and Go.
Sony Proposes Changing LLVM Clang Default to C++20 Mode (phoronix.com)
Sony engineers are proposing that the LLVM Clang compiler changes its default C++ mode from C++17 to C++20.
Finding Missed Code Size Optimizations in Compilers Using LLMs (arxiv.org)
Compilers are complex, and significant effort has been expended on testing them. Techniques such as random program generation and differential testing have proved highly effective and have uncovered thousands of bugs in production compilers. The majority of effort has been expended on validating that a compiler produces correct code for a given input, while less attention has been paid to ensuring that the compiler produces performant code.
Lightstorm: Minimalistic Ruby Compiler (llvm.org)
Some time ago I was talking about an ahead-of-time Ruby compiler. We started the project with certain goals and hypotheses in mind, and while the original compiler is at nearly 90% completion, there are still those other 90% that needs to be done.
Show HN: Onramp Can Compile Doom (ludocode.com)
After two years of late nights and weekends, Onramp can finally compile Doom. Check it out:
Show HN: Simple live calculator in Tree-sitter and cranelift JIT (github.com/jasonjmcghee)
A basic working example of tree-sitter + cranelift jit.
Into CPS, Never to Return (bernsteinbear.com)
CPS, or continuation-passing style, is an intermediate representation for programs, particularly functional programs. It’s used in compilers for languages such as SML and Scheme.
Murder Mystery: GCC builds failing after sbuild refactoring (linux.it)
Official Debian GCC builds start failing on multiple architectures in late November.
5 Years of CompilerJobs (mgaudet.ca)
Turns out I missed the 5 year anniversary of my CompilerJobs page by a little more than a week.
MoonBit compiler is available on GitHub (moonbitlang.com)
We’re excited to announce that the MoonBit compiler, complete with a Wasm backend, is now open source and available on GitHub!
Crunch – a Scheme compiler with a minimal runtime (more-magic.net)
Hi! This post is about a new project of mine, called "CRUNCH", a compiler for a statically typed subset of the programming language Scheme, specifically, the R7RS (small) standard.
Why GCC 1.42 on the Tektronix 4404 – with a C compiler from 1979 (medium.com)
I came across a blog describing building an early version of the GNU C Compiler (gcc) using a modern compiler: (https://miyuki.github.io/2017/10/04/gcc-archaeology-1.html)
Patches Posted for Review Adding COBOL Front End to GCC Compiler (phoronix.com)
The COBOL programming language may be 65 years old since its original release but the mainline GNU Compiler Collection (GCC) in 2025 might finally see upstream support for it.