News for hackers. Stuff that matters.
Re:Write Libraries, Not Frameworks by dTal on Saturday May 09, 2020 @09:35AM (#23124570)
Good luck using any sort of GUI toolkit then. Virtually every single one requires you to sacrifice the very top level of your program to some sort of "MainLoop()" function.

(I agree with your main point, and the above fact causes a quasi-allergic reaction in me which causes me to avoid GUI programming - despite graphics being one of my favorite topics.)

Re:Write Libraries, Not Frameworks by traverseda on Saturday May 09, 2020 @10:10AM (#23124819)
Try the "imgui" library?
Re:Write Libraries, Not Frameworks by eliasnaur on Saturday May 09, 2020 @11:14AM (#23125334)
Sadly even imgui cannot get around the fact that many operating systems (macOS/iOS/Android) force you to give up your main thread. Linux and, perhaps surprisingly, Windows are good guys in this regard.
Re:Write Libraries, Not Frameworks by OJFord on Saturday May 09, 2020 @10:02AM (#23124757)
Instead of using something you're quasi-allergic to, you could work on one you're not?
Re:Write Libraries, Not Frameworks by p_l on Saturday May 09, 2020 @03:52PM (#23127778)
Rhw issue is that it's not exactly possible, especially on Mac, where your initial thread is sacred and for OS use only. Windows and Linux UI libs need a main loop somewhere, but it can live on any thread and in fact doesn't need to be structured the same.