Turbo Pascal 3's entire compiler and IDE fit in 39,731 bytes
Things That Turbo Pascal Is Smaller Than (2011)
Released in September 1986, Turbo Pascal 3 for MS-DOS packed a full Pascal compiler, commercial-grade extensions, and an editor into a single 39,731-byte executable — and built projects orders of magnitude faster than Microsoft's compilers. By 2011 standards, that whole toolchain was smaller than minified jQuery 1.6, the yahoo.com homepage, a white iPhone 4S product image, and even the touch command in OS X Lion.
The entire Turbo Pascal 3.02 executable--the compiler and IDE--was 39,731 bytes.
- jbellis
Anders Heljsberg GOAT. Turbo Pascal, Delphi, C#, TypeScript, just a phenomenal career marked with better taste than any other language designer I can think of, certainly any designer whose work is so mainstream.
- pron
Just keep in mind that the amount of RAM in an average PC in 1986 was about 30,000x smaller than the average amount of RAM in today's laptops, so Turbo Pascal actually consumed much more of the machine's resources than a lot of today's software.
- jll29
While some comparisons may look silly, the fact that the touch command's binary should exceed Turbo Pascal is insane: the command basically creates an empty file or updates the file change date if the file already exists, not more.
There's no reason (other than laziness) why that should take more than 2k.
On the other hand, a lot of boilerplace code is repeated in each and every command. When I first learned as a kid about UNIX commands being ordinary programs, I was intrigued (there is nothing "special" about them, you can also write your own!) but also shocked about the overhead compared to an architecture in which e.g. the shell contained all (at least core) commands compiled into a single binary, which could share all the error handing, startup code, command line parsing code and so on.
- hawkice
Given development speed is way up, I'd be interested to see what a from-basic-principles simple and efficient OS and programming system might look like. Or people trying radically different versions of efficiency and simplicity, like an OS that uses an existing battle-tested sandboxed execution environment like v8 for userspace safety/isolation.
Fundamentally, many inefficiencies were justified for developer productivity, and I'm not sure that makes sense anymore, and the cost of larger projects with clear abstraction boundaries has plummetted.
- sroerick
Why did Pascal basically die completely? It seems like a hugely influential language and was very loved, but there are plenty of other languages which still seem to have a lot of legacy code. Where is Pascal?
- ttoinou
I’m tired of those senseless comparisons
Bytes have history, meaning, context of creation, different utilities and different cost associated with creation/transfer/storage/manipulation
We could also use those comparisons to praise how complicated our current world has become and how good we are at managing such complexity
- oldjohnnylane
The wall of defensive, hostile replies to this simple post is expected. Today’s programmers need to feel like they are an elite class above the rabble and programming is their identity. When someone shows them an example of what talented programming really looks like, they have to pile on and dismiss it from a thousand cuts. The guy who wrote Pascal understood the system top to bottom, and understood computer science. There are maybe a few thousand programmers alive today with that kind of skill, and it hurts the egos of the average HN typescript scrum jockey to see something they just don’t comprehend so they lash out at it.
- ilaksh
This is only slightly related but I just made a Turbo Vision UI for Claude Code sessions.