Hacker News with Generative AI: Compilers

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.
Rust’s Incremental Compiler Architecture (lwn.net)
The traditional structure of a compiler forms a pipeline — parsing, type-checking, optimization, and code-generation, usually in that order. But modern programming languages have requirements that are ill-suited to such a design. Increasingly, compilers are moving toward other designs in order to support incremental compilation and low-latency responses for uses like integration into IDEs.
The GNU C-Compiler with Binutils and other useful tools for Amiga (github.com/bebbo)
The GNU C Compiler with binutils and other useful tools for cross compiling software for the Commodore Amiga.
Fujitsu Monaka CPU Target Added to GCC 15 Compiler (phoronix.com)
Fujitsu has upstreamed support for their next-gen "Monaka" Armv9 processor into the GNU Compiler Collection codebase in time for the GCC 15 release coming out early next year.
Common misconceptions about compilers (sbaziotis.com)
Compilers have always been surrounded by an air of mystery and magic. This has led many of us to believe that they do things (well) that they don't, or that they don't do things (well) that they do.
State of Clang as a C and C++ Compiler – Aaron Ballman, 2024 LLVM Dev Meeting [video] (youtube.com)
Show HN: My C compiler compiled itself (github.com/keyvank)
30cc (Pronounced as CCC, because in the Persian language, the number 30 is pronounced as C) is a toy C compiler written in C, which is strong enough to compile itself 🤝 This was my first attempt in writing a self-hosting software!
Jank is now running on LLVM IR (jank-lang.org)
Hi everyone! It's been a very busy couple of months as I've been developing jank's LLVM IR generation, improving jank's semantic analysis, and furthering jank's module loading system.
Ask HN: What's the state of Common LISPs on ARM64-Linux? (ycombinator.com)
Was trying to compile and run something on Gentoo that required virtual/commonlisp. None of the provider packages I unmasked worked. sbcl installed but crashed at runtime with an mmap failed message about ASLR.
Everything You Never Wanted to Know About Linker Script (2021) (mcyoung.xyz)
The linker script, provided to Clang as -Wl,-T,foo.ld1, is like a template for the final executable. It tells the linker how to organize code from the input objects. This permits extremely precise control over the toolchain’s output.
Dear sir, you have built a compiler (2022) (rachit.pl)
Flattening ASTs and other compiler data structures (2023) (cs.cornell.edu)
Arenas, a.k.a. regions, are everywhere in modern language implementations.
C Compiler to SPIR-V (github.com/heroseh)
HCC is a C compiler that allows you to compile your C codebase (with limitations) to SPIR-V for the Vulkan graphics API. This means you can share struct's, enum's and functions between your CPU & GPU code. HCC targets the future of GPU programming so is designed around features such as bindless resources and scalar alignment. This makes it easier to interop with the GPU and focus on writing shader code without writing your own shader build system.
AMD Developing Next-Gen Fortran Compiler Based on Flang, Optimized for AMD GPUs (phoronix.com)
AMD today went public with details on the "AMD Next-Gen Fortran Compiler" as a new Fortran compiler they are working on based on LLVM's Flang.
TinyCC Memory and Bounds Checks (bellard.org)
TinyCC (aka TCC) is a small but hyper fast C compiler.
Show HN: Jaws – a JavaScript to WASM ahead-of-time compiler (github.com/drogus)
Jaws is a JavaScript to WebAssembly compiler written in Rust. It is similar to porffor in a way it also results in a standalone WASM binary that can be executed without an interpreter, but it takes a different implementation approach.
Gccrs: An Alternative Compiler for Rust (rust-lang.org)
gccrs is a work-in-progress alternative compiler for Rust being developed as part of the GCC project. GCC is a collection of compilers for various programming languages that all share a common compilation framework. You may have heard about gccgo, gfortran, or g++, which are all binaries within that project, the GNU Compiler Collection. The aim of gccrs is to add support for the Rust programming language to that collection, with the goal of having the exact same behavior as rustc.
Why are ML compilers so hard? (2021) (petewarden.com)
Even before the first version of TensorFlow was released, the XLA project was integrated as a “domain-specific compiler” for its machine learning graphs.