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
    S

    sunfishcode

    blog.sunfishcode.online · Personal blog · on HN since 2021

    Dan Gohman, who works on WebAssembly, WASI and Rust systems libraries, writes about capability-based APIs and low-level correctness.

    Visit blogRSSHN submissions
    Systems & PerformanceLanguages & CompilersProgramming
    What HN says

    HN commenters link it as a source for bugs in hello world, WASI Preview 2 context, and ideas for evolving the WASI filesystem beyond preopens.

    Stats for nerds
    32HN people shared it
    39linked in comments
    1.3Kstory points
    Feb 2025last shared
    2022people per year2025

    Top posts on HN

    1. 1
      Bugs in Hello World
      5 people · 529 points · first shared 2022 · 252 comments on HN
    2. 2
      Porting Rust's Std to Rustix
      1 person · 224 points · first shared 2022 · 51 comments on HN
    3. 3
      Rust programs written entirely in Rust
      2 people · 167 points · first shared 2021 · 56 comments on HN
    4. 4
      Writing into Uninitialized Buffers in Rust
      1 person · 129 points · first shared 2025 · 119 comments on HN
    5. 5
      First-Class I/O
      1 person · 81 points · first shared 2021 · 15 comments on HN
    6. 6
      Errors from `Close`
      4 people · 58 points · first shared 2024 · 21 comments on HN
    7. 7
      WASI Preview 2 Launched
      3 people · 25 points · first shared 2024 · 1 comments on HN
    8. 8
      Cap-std, a capability-based version of the Rust standard library
      4 people · 15 points · first shared 2021 · Discussion on HN
    9. 9
      Guarding Against Broken Encapsulation
      3 people · 12 points · first shared 2021 · 1 comments on HN
    10. 10
      WASI API: Capabilities and Filesystems
      3 people · 9 points · first shared 2024 · 1 comments on HN

    What HN people wrote when they linked it

    • ketzuMar 2022

      I am not sure either follows. But it depends how we even define "older languages", especially considering differences between python 3 and 2, are they the same age (based on the original python release) or are they treated for their respective release version?

      Just taking some simple release dates [1] or wikipedia I found:

      Ages of "Yes" group: 49, 36, 22, 26, 26, 12, 31

      Ages of "No" group: 11, 14, 33, 7, 32, 45, 26, 34, 21

      Averages: Yes 28.85, No 24.78

      With the ambiguity around what "age" even means for the language here (e.g., counting the age of node.js or python) it is probably meaningless, but it seems well mixed independent of age.

      [1] https://blog.sunfishcode.online/bugs-in-hello-world/

    • ddulaneyFeb 2023

      > reading from stdin isn’t challenging, nor writing to stdout.

      Unless you're Kernighan and Ritchie, who semi-famously wrote a buggy hello world program and used it to educate a generation of C programmers: https://blog.sunfishcode.online/bugs-in-hello-world/

      Obviously an exaggeration, but when's the last time you checked the return value of printf? I know I don't. And that's not even a memory safety bug, just basic logic. I hope nobody trusts those guys around malloc and free :)

    • kibwenNov 2023

      Eyra is a new implementation of libc in Rust that addresses this in its default configuration:

      "Eyra solves this by having setenv etc. just leak the old memory. That ensures that it stays valid for as long as any thread needs it. Granted, leaking isn't great, and Eyra makes it configurable with the threadsafe-setenv cargo feature, so it can be disabled in favor of the thread-unsafe implementation. "

      https://blog.sunfishcode.online/eyra-does-the-impossible/

    • ricochetcodeDec 2024

      I'd like to see wasi:filesystem evolve beyond preopens (which would avoid "ghosts" like this) as described in this blog: https://blog.sunfishcode.online/capabilities-and-filesystems/

    • andobandJan 2024

      Another good write-up which gives more context to this release, and it touches on POSIX in relation to the component model.

      https://blog.sunfishcode.online/wasi-preview2/

    • fouronnes3Feb 2025

      Depending on the language, this simple code actually has a bug:

      https://blog.sunfishcode.online/bugs-in-hello-world/

    Related

    Brian Andersonbrson.github.io32 people

    Dave Herman’s contributions to Rust

    Brian Anderson
    Personal · last shared 2025
    Niko Matsakissmallcultfollowing.com221 people

    Towards a Rust Foundation

    Niko Matsakis
    Personal · last shared 2026
    Rust Blogblog.rust-lang.org533 people

    Announcing Rust 1.0

    Rust Blog
    Company · last shared 2026
    PVS-Studio Blogviva64.com135 people

    Criticizing the Rust Language, and Why C/C++ Will Never Die

    PVS-Studio Blog
    Company · last shared 2021
    Kobzolkobzol.github.io40 people

    Rust compiler performance

    Kobzol
    Personal · last shared 2026
    without.boatswithout.boats80 people

    Pin

    without.boats
    Personal · last shared 2026
    Alexis Beingessnercglab.ca/~abeinges61 people

    Rust, Generics, and Collections

    Alexis Beingessner
    Personal · last shared 2024
    Patrick Waltonpcwalton.github.io53 people

    Pathfinder, a fast GPU-based font rasterizer in Rust

    Patrick Walton
    Personal · last shared 2025