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
    G

    Gautham Venkatasubramanian

    ahgamut.github.io · Personal blog · on HN since 2021

    Gautham Venkatasubramanian writes about building portable executables with Cosmopolitan libc, including Python and Rust examples and patching GCC.

    Visit blogHN submissions
    Systems & PerformanceLanguages & CompilersOpen Source & Linux
    What HN says

    HN links it as proof that Python and Rust can be built into single portable binaries with Cosmopolitan, answering questions about packaging without a rewrite.

    Stats for nerds
    17HN people shared it
    11linked in comments
    1.7Kstory points
    Jul 2025last shared
    2021people per year2025

    Top posts on HN

    1. 1
      Actually Portable Executables
      3 people · 683 points · first shared 2021 · 154 comments on HN
    2. 2
      Python is Actually Portable
      6 people · 444 points · first shared 2022 · 120 comments on HN
    3. 3
      Rust is actually portable
      5 people · 358 points · first shared 2022 · 103 comments on HN
    4. 4
      Debugging C with Cosmopolitan Libc
      1 person · 191 points · first shared 2022 · 50 comments on HN
    5. 5
      Patching GCC to Build Portable Executables
      2 people · 17 points · first shared 2023 · 2 comments on HN
    6. 6
      Python Is Actually Portable
      1 person · 2 points · first shared 2021 · Discussion on HN
    7. 7
      Ape datasette.gif
      1 person · first shared 2024

    What HN people wrote when they linked it

    • csdvrxJan 2023

      > Still not a single binary but as you note with it being written in python and based on cdparanoia, etc how would that work?

      Cosmopolitan python is a good starting point: https://ahgamut.github.io/2021/07/13/ape-python/

      > IMO Docker is one of the "best" and most straightforward ways to package up all of this

      No. Using containers has its place. But would you use containers on hello world?

      Likewise, if you've got to use a container for cd ripping tool, you've failed somewhere.

    • still_grokkingDec 2021

      > The cool thing would be multi-host static binaries

      My first thought was someone is thinking about something like:

      https://ahgamut.github.io/c/2021/02/27/ape-cosmo/

      There is also something similar that can make binaries that run even bare metal or as EFI apps. But I can't find at the moment. (Maybe someone else has the link?)

    • ingenieroarielApr 2024

      Thanks for updating the blog post too with the datasette screen recording, the speed difference is quite noticeable.

      Adding it here since a few people were wondering about it in the comments, but feel free to check the original article for the 2024 update:

      https://ahgamut.github.io/images/ape-datasette.gif

    • pritambarhateJul 2022

      The python article mentions those: https://ahgamut.github.io/2021/07/13/ape-python/

      > This post describes a proof-of-concept Python executable (2.7.18 and 3.6.14) built on Cosmopolitan Libc, which allows it to run on six different operating systems (Linux, Mac, Windows, NetBSD, FreeBSD, OpenBSD)

    • 9029Jul 2025

      I wonder if cosmopolitan libc[0] could be leveraged to create an actually portable executable™ without a rewrite, looks like someone has figured out compiling python 3.11.4 with it[1]

      [0] https://github.com/jart/cosmopolitan

      [1] https://ahgamut.github.io/2021/07/13/ape-python/

    • f_devdSep 2022

      I think that should be possible with Cosmopolitan Rust (https://ahgamut.github.io/2022/07/27/ape-rust-example/). It would create a Baremetal runnable ELF binary with just cosmopolitan libc statically linked, not sure about driver support though.

    Related

    Justine Tunneyjustine.lol251 people

    Show HN: Redbean – Single-file distributable web server

    Justine Tunney
    Personal · last shared 2026
    Collabora Blogcollabora.com129 people

    Matt Godbolt sold me on Rust by showing me C++

    Collabora Blog
    Company · last shared 2026
    Federico Mena-Quinteropeople.gnome.org/~federico46 people

    Rust things I miss in C

    Federico Mena-Quintero
    Personal · last shared 2021
    Andrew Godwinaeracode.org68 people

    Hello, This Is London Rising: 3D Printing Maps from LIDAR Data

    Andrew Godwin
    Personal · last shared 2025
    AdaCore Blogblog.adacore.com106 people

    Nvidia Security Team: “What if we just stopped using C?” (2022)

    AdaCore Blog
    Company · last shared 2025
    ScyllaDB Blogscylladb.com167 people

    How io_uring and eBPF Will Revolutionize Programming in Linux

    ScyllaDB Blog
    Company · last shared 2026
    Andrew Gallantblog.burntsushi.net141 people

    My FOSS Story

    Andrew Gallant
    Personal · last shared 2026
    Graham Jenkinsdarkcoding.net44 people

    Facebook’s code quality problem (2015)

    Graham Jenkins
    Personal · last shared 2025