Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    M

    Matt Godbolt

    xania.org · Personal blog · on HN since 2012

    Matt Godbolt, creator of Compiler Explorer, writes about compiler optimizations, assembly, emulation, and software performance.

    Visit blogRSSHN submissions
    Languages & CompilersSystems & Performance
    What HN says

    HN commenters say they learned a lot from it, and cite his posts on SIMD floating point and compiler optimization.

    Stats for nerds
    45HN people shared it
    88linked in comments
    3.4Kstory points
    Dec 2025last shared
    2015people per year2025

    Top posts on HN

    1. 1
      Why xor eax, eax?
      1 person · 576 points · first shared 2025 · 215 comments on HN
    2. 2
      Advent of Compiler Optimisations 2025
      4 people · 392 points · first shared 2025 · 68 comments on HN
    3. 3
      Compiler Explorer and the promise of URLs that last forever
      1 person · 357 points · first shared 2025 · 189 comments on HN
    4. 4
      Addressing the adding situation
      1 person · 272 points · first shared 2025 · 99 comments on HN
    5. 5
      You can't fool the optimizer
      1 person · 267 points · first shared 2025 · 189 comments on HN
    6. 6
      How Compiler Explorer Works in 2025
      3 people · 243 points · first shared 2025 · 46 comments on HN
    7. 7
      Happy 10th Birthday Compiler Explorer
      2 people · 216 points · first shared 2022 · 20 comments on HN
    8. 8
      GCC Explorer
      1 person · 126 points · first shared 2012 · 16 comments on HN
    9. 9
      How it works: Compiler Explorer
      4 people · 109 points · first shared 2016 · 25 comments on HN
    10. 10
      Forcing code out of line in GCC and C++11
      1 person · 96 points · first shared 2015 · 24 comments on HN

    What HN people wrote when they linked it

    • SomeoneJun 2017

      Case in point:

      https://xania.org/201405/jsbeeb-getting-the-timings-right-cpu:

      "So far so good - it seems unusual to our modern “memory is slow” mindset that the processor touches RAM every cycle, but this is from an age where processors and RAM were clocked at the same speed."

      This page also shows that the 6502 happily did extra memory reads.

      In fact, the memory had bandwidth to spare. http://www.6502.org/users/andre/osa/oa1.html#hw-io:

      "The memory access is twice as fast as the CPU access, so that during Phi2 low the video readout is done and at Phi2 high the usual CPU access takes place"

      I remember reading about a setup with two 6502s both running from the same single-ported RAM at full speed, but cannot find it.

    • david-givenJul 2016

      Here's a description of the file format used by BBC Basic:

      http://xania.org/200711/bbc-basic-v-format

      That's Basic V, which was the variant used on the ARM-based Archimedes, but it's the same file format as the 6502 machine Basics.

      Note that the line numbers used by GOTO and GOSUB were specially flagged --- this was so the RENUMBER command could find them. It also meant that computed gotos weren't renumbered...

      (Of course, BBC Basic had proper named procedures and functions with local variables, but all self-respecting Basics had to support GOTO and GOSUB.)

    • necubiAug 2020

      Godbolt is such an amazing tool, and amazing that it's free.

      For a random example from a few days ago, I wanted to understand how Rust compiles various approaches to doing pairwise addition between a f64 vector and a f32 vector: https://godbolt.org/z/9envsT. Profiling can tell me which is fastest, but godbolt is really helpful for understanding why.

      (Fun fact I learned recently, after years of using it: Godbolt is named after its creator, Matt Godbolt [0]).

      [0] https://xania.org/MattGodbolt

    • Earw0rmDec 2025

      That's very much an issue with SIMD, especially where floating point numbers are concerned.

      Matt Godbolt wrote about it recently.

      https://xania.org/202512/21-vectorising-floats

      TLDR, math notation and language specify particular orders in which floating point operations happen, and precision limits of IEEE float representation mean those have to be honoured by default.

      Allowing compilers to reorder things in breach of that contract is an option, but it comes with risks.

    • mattgodboltJul 2015

      Weird and wonderful it was, but also amazingly hackable. Using similar tricks to the allocator, I was able to "ROM patch" RISC OS 3.1 to look like 3.5 [1] using only a few bytes of module space. I do miss those days :)

      [1]: http://xania.org/201212/finallook-a-risc-os-3.1-hack

    • samlittlewoodDec 2016

      Also, look at Matt's write up of how this works:

      http://xania.org/201609/how-compiler-explorer-runs-on-amazon

      as a pragmatic example (incl. all tools & configs) of how to build an auto scaling & deploying site, without overdosing on kool-aid.

    Related

    Daniel Lemirelemire.me500 people

    Xor Filters: Faster and Smaller Than Bloom Filters

    Daniel Lemire
    Personal · last shared 2026
    Random ASCIIrandomascii.wordpress.com274 people

    There are only four billion floats, so test them all (2014)

    Random ASCII
    Personal · last shared 2026
    Herb Suttergotw.ca84 people

    Ritchie, Stroustrup, and Gosling interview

    Herb Sutter
    Personal · last shared 2026
    LLVM Blogblog.llvm.org226 people

    Clang Is Now Used to Build Chrome for Windows

    LLVM Blog
    Company · last shared 2026
    Wingologwingolog.org237 people

    FFS SSL

    Wingolog
    Personal · last shared 2026
    John Regehrblog.regehr.org401 people

    Teaching C

    John Regehr
    Personal · last shared 2026
    Dougall Johnsondougallj.wordpress.com48 people

    Why is Rosetta 2 fast?

    Dougall Johnson
    Personal · last shared 2026
    Arm Community Blogcommunity.arm.com147 people

    An update on GNU performance

    Arm Community Blog
    Company · last shared 2025