Things That Turbo Pascal Is Smaller Than (2011)

239 points · 143 comments on HN · read original →

Points and comments are a snapshot, not live.

Turbo Pascal 3.02 (39,731 bytes) is smaller than jQuery, the Yahoo home page, and OS X's touch command.

Turbo Pascal 3.02 for MS-DOS, released in September 1986, was a full Pascal compiler and IDE in a single 39,731-byte executable. As of October 30, 2011, that is smaller than the minified jQuery 1.6 (90,518 bytes), the yahoo.com home page (219,583 bytes), the white iPhone 4S product image on apple.com (190,157 bytes), the zlib.h header in Mac OS X Lion SDK (80,504 bytes), the OS X Lion `touch` command (44,016 bytes), various Vim quick reference PDFs, the Erlang R14B02 parser (286,324 bytes), and the Wikipedia page for C++ (214,251 bytes).

What commenters are saying

Commenters largely agreed that Turbo Pascal's small size reflects constraints of 1980s hardware, not superior engineering per se. One camp noted that developer productivity trade-offs justified growth, but another argued that modern software's bloat has become excessive, citing John Carmack's 2005 observation that text editing on a 3.6 GHz processor should be instantaneous. A top commenter corrected a common misconception: V8 is not a battle-tested sandbox, it lacks kernel-level sandboxing when embedded outside Chrome, calling GraalJS a genuinely memory-safe alternative.