Lurker News
Hey HN, I didn't want my Gateway 4DX2-66 from 1993 to be left out of the AI revolution, so I built an AI Assistant for Windows 3.1, based on the OpenAI API.

The most interesting parts of building this were:
- Getting TLS 1.2 and 1.3 working on Windows 3.1 so that WinGPT could directly connect to OpenAI's server without relying on a modern machine for TLS termination.
- Learning about the memory segmentation architecture on 16-bit Windows, including the difference between far and near pointers.
- Building the UI in plain C code with the Windows API and limited selection of controls in Windows 3.1.
You can check it out here and learn more about what it was like to build it: https://www.dialup.net/wingpt/

Comments (90) 29 threads

Earlier comments
2h3 replies#
> It will not work on 64-bit versions of Windows

ouch

grishka#
Same reason why DOS programs don't run there.
Narishma1 reply#
But it will probably work fine on Linux with Wine.
2h#
I am not installing Linux and Wine just to run a Windows program. 64-bit CPUs have been available for PCs for at least 20 years. while this is a neat idea, omitting 64-bit support makes this nothing more than a fun experiment.
hoofedear2 replies#
Now we just need one for System 6.0.8!
CharlesW#
Talking Moose 2023?
sailingdarter#
There is a similar Client for System 7 called LegacyAI that has been making waves in VintageApple circles
RobotToaster#
Shame microsoft agent (clippy) is 98 or later only, could be pretty fun integrated into that.
SergeAx#
> difference between far and near pointers

Remembrance unlocked! There are really near (offset only) and far (segment + offset) pointers in x86 16 bit architecture. Also near and far jumps. Gods, how long ago was that...

Load more comments