Live data from Hacker News

How to fit a large program into a small machine (1980)

mud.co.uk

11–20 of 43 posts

Re: How to fit a large program into a small machine (1980)

#11
post #6

I've always been fascinated by Zork despite coming of age decades after its release. Reminded of it a few years back through The Digital Antiquarian, I wrote a C# implementation of the Z-Machine ( https://github.com/raegwolf/zmachine ). Seeing how so much could be achieved with so little memory was eye opening.

I wrote one in Haskell [1], ostensibly as a uni class project but also as a way to teach myself Haskell and have fun; I had the infrastructure in place and was trying to run Zork, implementing opcodes, one by one, when finally I saw the familiar message "You are standing in an open field west of a white house, with a boarded front door. There is a small mailbox here." The sense of accomplishment was rewarding and elating.

2004. Good times.

[1]: https://github.com/nathell/haze

Re: How to fit a large program into a small machine (1980)

#15

I'm pretty sure the year for this article should be 1980, not 1999. According to Jimmy Maher, this was an article that was written for Byte magazine around the time of Zork's release.

Not Byte but Creative Computing, July 1980

https://archive.org/stream/creativecomputing-1980-07/Creativ...

Re: How to fit a large program into a small machine (1980)

#20
An instance of compiling the program to a bespoke bytecode and then interpreting the bytecode. This is one of my favourite programming tricks - high effort and high effectiveness, rarely used.

Dwarf does this as one of the size optimisation tricks. I used to know another example but it isn't coming to mind.

Post reply on HN