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

    Miguel Young de la Sota

    mcyoung.xyz · Personal blog · on HN since 2021

    Miguel Young de la Sota writes in-depth technical posts on Rust, Go, C++, LLVM IR, linkers, and compiler internals.

    Visit blogRSSHN submissions
    Languages & CompilersProgrammingSystems & Performance
    What HN says

    HN commenters call it a fantastic source of information. They recommend its posts on linker scripts, LLVM IR, move constructors in Rust, and a Go protobuf parser.

    Stats for nerds
    37HN people shared it
    64linked in comments
    1.8Kstory points
    Apr 2026last shared
    2021people per year2026

    Top posts on HN

    1. 1
      The Rust calling convention we deserve
      3 people · 300 points · first shared 2024 · 137 comments on HN
    2. 2
      Parsing Protobuf like never before
      3 people · 248 points · first shared 2025 · 93 comments on HN
    3. 3
      Why SSA?
      4 people · 244 points · first shared 2025 · 103 comments on HN
    4. 4
      3Hz Computer, Hold the Transistors
      1 person · 199 points · first shared 2022 · 39 comments on HN
    5. 5
      Cheating the Reaper in Go
      2 people · 188 points · first shared 2025 · 32 comments on HN
    6. 6
      What the hell is a target triple?
      2 people · 174 points · first shared 2025 · 133 comments on HN
    7. 7
      Everything You Never Wanted to Know About Linker Script (2021)
      4 people · 126 points · first shared 2021 · 27 comments on HN
    8. 8
      Nobody gets fired for picking JSON, but maybe they should?
      2 people · 54 points · first shared 2024 · 57 comments on HN
    9. 9
      C++ Library
      4 people · 52 points · first shared 2025 · 1 comments on HN
    10. 10
      The Alkyne GC
      1 person · 43 points · first shared 2022 · 8 comments on HN

    What HN people wrote when they linked it

    • mananaysiempreApr 2026

      > It doesn't make sense to me that an embedded VM/interpreter could ever outperform direct code. You're adding a layer of abstraction and indirection, so how is it possible that a more indirect solution can have better performance?

      It is funny, but (like I’ve already mentioned[1] a few months ago) for serialization(-adjacent) formats in particular the preferential position of bytecode interpreters has been rediscovered again and again.

      The earliest example I know about is Microsoft’s MIDL, which started off generating C code for NDR un/marshalling but very soon (ca. 1995) switched to bytecode programs (which Microsoft for some reason called “format strings”; these days there’s also typelib marshalling and WinRT metadata-driven marshalling, the latter completely undocumented, but both data-driven). Bellard’s nonfree ffasn1 also (seemingly) uses bytecode, unlike the main FOSS implementations of ASN.1. Protocol Buffers started off with codegen (burying Google user in de/serialization code) but UPB uses “table-driven”, i.e. bytecode, parsing[2].

      The most interesting chapter in this long history is in my opinion Swift’s bytecode-based value witnesses[3,4]. Swift (uniquely) has support for ABI compatibility with polymorphic value types, so e.g. you can have a field in the middle of your struct whose size and alignment only become known at dynamic linking time. It does this in pretty much the way you expect[5]: each type has a vtable (“value witness”) full of compiler-generated…

    • Ygg2Sep 2022

      Well, that's partially true and partially false. Operators are syntax sugar for trait methods. Indeed, some operators can't be overloaded[1]. However, in that case, it's possible to make procedural macros that can handle such cases.

      SQL builder programmers, for example, wanted assignment operator overload.

      However, I'd argue that it's the wrong kind of overload to enable. The more code can do behind the scenes, the harder it is to reason about it, e.g. :

      c = b;

      Is this an assignment? Will it start the DB connection? In Rust, it can be just one thing. By sticking that code in proc macro and translating code, you signal your intent that something funny is happening here and that you should consult docs for more info:

      sql!(a = b)

      > It is easy to insist you have never needed any of that stuff for your library,

      I didn't say it was easy. I didn't say it was impossible either https://mcyoung.xyz/2021/04/26/move-ctors/.

      > Then there are the things the borrow checker will not let you do, that would be correct, but it can't see that.

      Sure, but that's the Rice theorem at work (https://en.wikipedia.org/wiki/Rice%27s_theorem). Any non-trivial property of code is undecidable. That's why you have the unsafe escape hatch where you reason about why it's safe.

      [1] which isn't that different C++ which prohibits some operator overload, but in C++ the list of operator not overloaded is small

    • aktauDec 2025

      (I agree with other commenters' assessment about the importance of the authors complaints, and recommend others checkout the Go memory regions proposal.)

      For those interested, here's an article where Miguel Young implements a Go arena: https://mcyoung.xyz/2025/04/21/go-arenas/. I couldn't find references to Go's own experimental arena API in this article. Which is a shame since it'd be if this knowledgeable author traded them off. IIUC, Miguels version and the Go experimental version do have some important differences even apart from the API. IIRC, the Go experimental version doesn't avoid garbage collection. It's main performance benefit is that the Go runtimes' view on allocated memory is decreased as soon as `arena.Free` is called. This delays triggering the garbage collector (meaning it will run less frequently, saving cycles).

    • f1shyNov 2025

      IMHO absolutely. The basics of lexer and parser are still there. Some of the optimizations are also relevant. You just cannot expect to read the book and be able to write GCC or LLVM from scratch(1).

      For learning deeper about other advanced topics there is:

      https://www.cs.cornell.edu/courses/cs6120/2025fa/

      and

      https://mcyoung.xyz/2025/10/21/ssa-1/

      So maybe writing a compiler with exactly one FE (for a simple language) and one BE (for a simple architecture), with say 80% of the optimizations could be a doable project.

      (1) We should define what we mean by that, because there are thousands of front-ends and back-ends.

    • zozbot234May 2021

      > If you were to use a pointer to a field, you'd need to correct that pointer during copies and moves.

      The "transfer" crate allows for this, though not in a way that's directly compatible with C++ move. (The latter has been discussed somewhat in https://mcyoung.xyz/2021/04/26/move-ctors/ but that's only a first look at the problem area, not aiming for 100% accuracy just yet.)

    • ashleynJul 2024

      Knew it'd be SIMD. Such an underrated feature of modern CPUs. Hopefully with cross-platform SIMD in Rust and Golang, it'll be more commonly used.

      Thinking parallel gets you enormous speed benefits for any number of arbitrary algorithms: https://mcyoung.xyz/2023/11/27/simd-base64/

    Related

    Rust Blogblog.rust-lang.org533 people

    Announcing Rust 1.0

    Rust Blog
    Company · last shared 2026
    Sabrina Jewsonsabrinajewson.org15 people

    Async destructors, async genericity and completion futures

    Sabrina Jewson
    Personal · last shared 2025
    purplesyringapurplesyringa.moe39 people

    WebP: The WebPage Compression Format

    purplesyringa
    Personal · last shared 2026
    Philippe Gaultiergaultier.github.io23 people

    You've just inherited a legacy C++ codebase, now what?

    Philippe Gaultier
    Personal · last shared 2026
    Niko Matsakissmallcultfollowing.com221 people

    Towards a Rust Foundation

    Niko Matsakis
    Personal · last shared 2026
    Aria Beingessnerfaultlore.com92 people

    C isn't a programming language anymore

    Aria Beingessner
    Personal · last shared 2026
    without.boatswithout.boats80 people

    Pin

    without.boats
    Personal · last shared 2026
    Llogiqllogiq.github.io43 people

    Rust Performance Pitfalls

    Llogiq
    Personal · last shared 2026