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
pjmlp#
Cool project, but as the author quickly found out there was a good reason why non masochists were already using C++ frameworks, TPW, VB, Delphi, VF, VO,...instead of raw C.
scrutinizer80#
So cool! Can it run on Windows NT 3.51? Would doing so solve some of the memory limitations?
1970-01-01#
If you got TLS 1.3 to work in Win 3.11, you deserve an award from Microsoft.
kjs3#
Now all they need to do is get ChatGPT integrated with AOL and Compuserv.

Load more comments