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
coolgoose#
I maybe feel nostalgic, but the old ui is so much... Better :)
solarkraft#
Have you considered building it into Clippy?
nXqd#
the UI is screaming speed. Actually most of the apps I use in Windows now, have that kind of UI, I hate that with the kind of hardware we have currently, we need to wait for a window to appear.

Apps I use daily: totalcmd, clipx, far, sublime text ( only for edit text, code with intellij )

philluminati#
> Another fun part of building WinGPT was designing the icon in Borland's Image Editor, which is really just a clone of Microsoft Paint that happens to make ICO files instead.

Wow! 40yo me forgot how much time I used to spend creating icons for my apps back in 1999. After trying a million times to create C++ programs Visual Studio 6, I would often fall into just drawing icons in the icon editor as it was the only thing left to do once I introduced a compiler error and couldn't resolve it.

Load more comments