Story Details

  • Show HN: Resurrecting Infocom's Unix Z-Machine with Cosmopolitan

    Posted: 2025-04-14 03:51:55

    Christopher Drum has ported Infocom's Z-machine, specifically the Unix version 1.1, to a single executable using Cosmopolitan Libc. This allows classic Infocom text adventures, which were originally designed for various platforms, to run natively on modern operating systems (Windows, macOS, Linux, FreeBSD, OpenBSD, NetBSD) without emulation or VMs. The porting process involved minimal code changes, primarily focused on resolving system call discrepancies between the original Unix environment and Cosmopolitan's compatibility layer. This approach leverages Cosmopolitan's ability to build statically linked, universally compatible executables, effectively "resurrecting" these classic games for contemporary systems while preserving their original codebase.

    Summary of Comments ( 39 )
    https://news.ycombinator.com/item?id=43677909

    Hacker News users generally praised the project for its clever use of Cosmopolitan Libc to create truly portable Z-machine binaries. Several commenters expressed nostalgia for Infocom games and appreciated the effort to preserve them. Some discussed the technical aspects, like the benefits of static linking and the challenges of porting old code. A few users offered suggestions, such as adding features like save/restore functionality and improving the command-line interface. One commenter pointed out the potential for running these games on embedded systems thanks to Cosmopolitan's small footprint. The overall sentiment was positive, with many excited about the possibility of playing classic text adventures on modern and diverse platforms.