Matt Campbell on Nostr: npub1sg4rc…7xslc > Also event loops are good, use them Pretty much all GUIs use ...
npub1sg4rcvkxkp3sx7f0ex8rtdd9ylcdd2fchtfm22fy45h4w02p306qq7xslc (npub1sg4…xslc)
> Also event loops are good, use them
Pretty much all GUIs use event loops already, right? If you're saying to rely more on non-blocking I/O as opposed to threads, I don't think I agree. The only practical thing I can take away from the "Virtual Memory" section of the article is to do more stuff away from the main event-loop thread, since you never know what might cause a page fault.
> Also event loops are good, use them
Pretty much all GUIs use event loops already, right? If you're saying to rely more on non-blocking I/O as opposed to threads, I don't think I agree. The only practical thing I can take away from the "Virtual Memory" section of the article is to do more stuff away from the main event-loop thread, since you never know what might cause a page fault.