News for hackers. Stuff that matters.
Re:Building a new Windows 3.1 app in 2019: A Slack Client by cesarb on Thursday December 19, 2019 @05:41AM (#21833682)
Windows (not only the 16-bit 3.x, but going as far as the newest 64-bit ones) uses an event loop for the GUI: your program runs a loop calling the GetMessage function, which blocks until the next window message is available. As long as you don't take too much time processing each window message, you don't have to even think about cooperative task scheduling, since Windows will do it for you while waiting on GetMessage.

(In fact, AFAIK even in modern Windows you should avoid taking too much time to process each window message, since blocking the event loop thread makes the UI for your program unresponsive.)

Re:Building a new Windows 3.1 app in 2019: A Slack Client by loa_in_ on Friday December 20, 2019 @01:36PM (#21846389)
I remember the user experience, I was wondering about design decisions during development.

You are guaranteed no context switches unless you explicitly request one - did it simplify some parts, or alternatively made it more complex? It's an asynchronous application.