frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Zig's Incremental Compilation Internals

https://mlugg.co.uk/posts/incremental-compilation-internals/
51•garyhtou•1h ago

Comments

remywang•51m ago
Does this work for release builds or just debug builds now?
minraws•39m ago
I don't think it will work with llvm/release yet but it might some day maybe.

Getting incremental linker to work with llvm is kinda hard atm. Maybe the zig team has a plan dunno.

mlugg•10m ago
It only works with our self-hosted code generation backends (the main one being for x86_64), which right now don't have any optimisation passes. It's planned that they will in future, but that's a long-term goal. Also, any optimisations which propagate information between functions (the most obvious and important one is inlining) are more-or-less incompatible with incremental compilation (I touch on this in the post IIRC), so once this does work it'll probably still be limited to a subset of optimisations.

TL;DR: only debug builds for now, could extend to release builds once we have our own optimisation passes one day, but some optimisations will still be inapplicable.

hoppp•39m ago
The zig compiler can compile C so will it work with C also?
applfanboysbgon•28m ago
It disappoints me how unseriously the industry has taken compilation speed for so long. I'm glad to see Zig doing incredibly valuable, high-impact work here.
steveklabnik•15m ago
Zig's toolchain work is continually impressive. While I still don't plan to write software in it, given that I believe memory safety is table stakes, all of this stuff is very, very good. Before the incremental work, it was the toolchain and cross-compiler work. The toolchain stuff has continually been fantastic. I'm very curious to see what they come up with next!

> Semantic analysis is the most difficult part of the compiler to handle incrementally. Perhaps unsurprisingly then, this is where language design starts to matter a lot: while I am pretty confident that most modern languages could support incremental compilation similar to how we do, certain design decisions can make that much more difficult. Zig has had its design tweaked over the years (sometimes controversially) specifically so that it is easier to support fast incremental compilation.

This is something I wish that we had done with Rust. It is impossible to do all of the things at once, though, and we already had a tremendous amount of things to do. This is also part of the "when do you ship 1.0" tradeoff; for our goals with the language, 2015 was the right moment to launch, but if had a few more years to bake things, maybe we could have made compile times way faster. Software engineering is hard.

hoppp•12m ago
The thing with rust is that you get safety with slow compilation, it's a tradeoff.

Zig doesn't have the same safety guarantees, it's on the dev to use safe coding patterns, so the tradeoff for safety is discipline or experience.

steveklabnik•11m ago
Rust's safety checks have basically nothing to do with its slow compile times. This is something that sounds intuitive but is just completely incorrect.

In particular, Rust made several good design decisions around this stuff that keeps those checks fast, like keeping checks local rather than being global.

You Could Have Come Up with Kimi Delta Attention

https://blog.doubleword.ai/you-could-have-come-up-with-kimi-delta-attention
103•AnhTho_FR•1h ago•21 comments

Delayed Gratification – Proud to Be 'Last to Breaking News'

https://www.slow-journalism.com/
57•speerer•1h ago•20 comments

How Do I Profile eBPF Code?

https://naveensrinivasan.com/posts/2026-07-22-how-do-i-profile-ebpf-code/
44•snaveen•1h ago•1 comments

Zig's Incremental Compilation Internals

https://mlugg.co.uk/posts/incremental-compilation-internals/
56•garyhtou•1h ago•8 comments

7.1 Earthquake in Japan

https://www.data.jma.go.jp/multi/quake/quake_detail.html?eventID=20260728163528&lang=en
689•krembo•9h ago•159 comments

Show HN: XY – Fast, composable, GPU-accelerated Python charting library

https://github.com/reflex-dev/xy
36•apetuskey•1h ago•15 comments

Kimi K3 Architecture Overview and Notes

https://sebastianraschka.com/blog/2026/kimi-k3-architecture-notes.html
42•ModelForge•1h ago•2 comments

Harmony Explained: Progress Towards a Scientific Theory of Music (2012)

https://arxiv.org/abs/1202.4212
46•surprisetalk•1h ago•34 comments

New HIV vaccine shows unprecedented success in preclinical study

https://www.lji.org/news-events/news/post/new-hiv-vaccine-shows-unprecedented-success-in-preclini...
340•codebyaditya•3h ago•163 comments

Kimi Linear: An Expressive, Efficient Attention Architecture

https://arxiv.org/abs/2510.26692
192•ronfriedhaber•6h ago•71 comments

So, you want to make a game engine (2023)

https://lisyarus.github.io/blog/posts/so-you-want-to-make-a-game-engine.html#part-3
15•kugurerdem•1h ago•9 comments

DMARC Has Been Public Since 2012. 68.4% of Domains Still Don't Enforce It

https://ciphercue.com/blog/dmarc-enforcement-gap-rua-fragmentation-2026
108•adulion•6h ago•79 comments

How to Survive Boiling Water

https://taxa.substack.com/p/how-to-survive-boiling-water
305•cainxinth•4d ago•56 comments

Show HN: Formally verified 3D CSG: Trust 93 lines spec, not 1000 lines AI code

https://github.com/schildep/verified-3d-mesh-intersection
85•permute•4h ago•37 comments

Italy Blocks Reproductive Health Websites Women on Web and Women Help Women

https://ooni.org/post/2026-italy-blocks-wow-and-whw
87•miniBill•3h ago•74 comments

Google's Beyond Zero: Enterprise Security for the AI Era

https://spawn-queue.acm.org/doi/10.1145/3819083
107•jordigg•7h ago•61 comments

Xenharmlib (music theory library) adds support for Just Intonation

https://xenharmlib.readthedocs.io/en/latest/whats_new_0_4_0.html
5•retooth•58m ago•0 comments

Anthropeum

https://anthropeum.com/
22•bookofjoe•2h ago•3 comments

Solving Fermat: Andrew Wiles

https://www.pbs.org/wgbh/nova/proof/wiles.html
44•1970-01-01•20h ago•19 comments

VMs can't boot with Network Mode set to Bridged on Apple M5 Pro machines

https://github.com/utmapp/UTM/issues/7658
34•IndySun•3h ago•18 comments

Show HN: Flashpaper – Self-destructing secret sharing with no database

https://flashpaper.app/
8•minpym•1h ago•2 comments

Stop Killing the Internet: No Digital ID and No Age Verification

https://citizens-initiative.europa.eu/initiatives/details/2026/000011_en
70•doener•2h ago•22 comments

Setup Script Should Support Git Worktrees

https://piechowski.io/post/setup-script-git-worktrees/
13•speckx•1h ago•2 comments

Show HN: Scala Tutorials – interactive Scala 3 lessons in the browser

https://scalatutorials.com
63•eranation•3d ago•26 comments

Dolmenwood: Fantasy RPG built around the acclaimed Old-School Essentials rules

https://necroticgnome.com/collections/dolmenwood
53•doener•3d ago•17 comments

Fast Remediation Is the New Trust Model (JFrog and OpenAI Zero-Day Findings)

https://jfrog.com/blog/jfrog-and-openai-collaboration-on-zero-day-security-findings/
50•882542F3884314B•5h ago•32 comments

Now Is the Time to Give LLMs Access to the ACM Digital Library

https://cacm.acm.org/opinion/now-is-the-time-to-give-llms-access-to-the-acm-digital-library/
9•rbanffy•2h ago•2 comments

A $500 RL fine-tune of a 9B open model beat frontier models on catalog review

https://fermisense.com/when-machines-take-the-wheel/
290•ilreb•14h ago•100 comments

About the security content of macOS Tahoe 26.6

https://support.apple.com/en-us/128067
175•andor•7h ago•118 comments

Rear center fuel tank adds roughly 20k liters and extends range by 1k NM

https://www.airbus.com/en/newsroom/press-releases/2026-06-worlds-longest-range-aircraft-the-airbu...
6•r2sk5t•1h ago•3 comments