Re: toward a more efficient event loop
tim Rowledge <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.general |
|---|---|
| Message-ID | <[email protected]> |
Decades ago (!) we had discussions on making a truly event driven main loop. I think one of the problems back then was that Mac & Windows were still utterly useless for that approach and required constant polling. I suspect that *might* be required any more. The obvious starting point is handling input events/interrupts but that would leave the Morphic animation stuff dead. So one would need to set timers that get treated as events when they fire. And probably other moderately complex things. When everything is dealt with one could simply make the event loop code get to a point where nothing needed to be done, go to sleep and wait for the next event to reawaken it. This would have big benefits for headless server situations. Likely also for small portable devices - remember how the old Palm Pilots used to go to sleep about 100 times a second? Who knows, maybe I’ll even live long enough for someone to work out to do this. tim -- tim Rowledge; [email protected]; http://www.rowledge.org/tim Klingon Code Warrior:- 9) "A TRUE Klingon warrior does not comment his code!" Squeak-dev mailing list -- [email protected] To unsubscribe send an email to [email protected]