← All projects
Project record1 mention
Originally shared on Hacker News

PostScript interpreter in Rust

A PostScript interpreter written in Rust as a retirement project, aiming to stay as close as possible to the original Apple LaserWriter's Level 1 PostScript. The interpreter is complete with all 125 programming operators, core types, and error handlers; graphics operators are the next stage, with PDF targeted for output since its drawing model matches PostScript. Development is aided by running the LaserWriter's ROMs in the MAME emulator to debug 68000 code and reverse-engineer internals such as the random number generator and the internaldict password. Currently about 14,000 lines of Rust with 650 unit tests.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. PostScript interpreter in Rust

    A PostScript interpreter written in Rust as a retirement project, aiming to stay as close as possible to the original Apple LaserWriter's Level 1 PostScript. The interpreter is complete with all 125 programming operators, core types, and error handlers; graphics operators are the next stage, with PDF targeted for output since its drawing model matches PostScript. Development is aided by running the LaserWriter's ROMs in the MAME emulator to debug 68000 code and reverse-engineer internals such as the random number generator and the internaldict password. Currently about 14,000 lines of Rust with 650 unit tests.

    Posted by @tonyedgecombe · Original source ↗

    Source text · @tonyedgecombe · · Source ↗

    I'm working on a PostScript interpreter. This is a retirement project.