Immediately after switching the page, it will work with CSR.
Please reload your browser to see how it works.

Source:https://github.com/SoraKumo001/next-streaming

⬅️ Show HN: Resurrecting Infocom's Unix Z-Machine with Cosmopolitan
wyldfire 2 daysReload
Funny coincidental timing - I just played HHGTTG a couple of times last night for the first time in thirty+ years or so.

I first played the game, way back - prior to having read the novel. It was mind-blowing. I had no idea what was going on but I got a real sense that it could be pretty funny if I did. So I read the novel eventually, and it was as good as I expected. I don't think I'd gone back to play the game until this week, though.


gamache 2 daysReload
Cool project! But one nitpick.

K&R C has no concept of THEN. That's a peculiarity of the ZIP source code, defined as a pure no-op:

    #define THEN
https://github.com/ChristopherDrum/pez/blob/main/zip/infocom...

o11c 2 daysReload
In case anyone needs to do the sort of "fix up scattered declarations and move them to headers", you really want to use:

  gcc -Werror=missing-declarations -Werror=redundant-decls
(last I checked, Clang's implementation of this was buggy and half-useless, but I'll admit I stopped using Clang)

I recommend this for well-maintained code too, just as another way to keep the code smells away. For a lot of projects this will only require adding a bit of `static` that you were too lazy to write.


bruce511 2 daysReload
Its interesting to see how developers get into a mindset, based on their life experience.

What we're seeing here is 40 year old code compile and run with minimal effort. Largely because the C language has respected backwards compatibility.

Yes, there were breaking changes along the way, but they were trivial to resolve in hours. And (more interesting) the author believed that to be true and so persevered.

I saw this recently as well. I run a lot of programs on Windows. Many are 32 bit, written in the 90s for Windows 95, or 98. They all still run. Microsoft bends over backwards to keep things compatible.

I also get to write a lot of web API clients. I tell customers that it won't work forever. Web APIs are constantly changing. The service (especially Google) will change something soon to break it.

The people building those APIs are expecting only currently-maintained apps to run. They have no concept (or experience) of 40 or 30 year old code "just running". Crumbs, if you get 5 years out an API client you're doing well.


joshu 2 daysReload
i think ucsd p-system vm predates z-machine by a couple of years (re OP's origin of vm use comment)