The problem with snapshotting the state of the UI with all open windows and gadgets is that it gets really tricky for gadgets with associated native resources, like fonts, vertex buffers, textures, and so on. Squeak doesn't run into this difficulty because it renders to a framebuffer and implements everything itself...
Slava 2011/3/20 tgkuo <[email protected]>: > IMOH, it woud be good to snapshot the whole image as Smalltalk does. > But Factor is more like what scripting languages, ruby, python... are, > not so GUI oriented and dynamic as Smalltalk does currently, Factor does > not depend upon an all-mighty image to resume for every reboot, it has > no GUI-based code browsers, no package loaders, no canvas for > morphic/widgets to draw.... , there is no practical need to snapshot the > image. > > > Best regards, > > > On 2011/3/21 上午 12:46, Joe Groff wrote: >> On Mar 19, 2011, at 9:40 PM, Aaron Olson wrote: >> >>> Hi folks, >>> >>> A couple of weeks ago I came across this tweet from notable >>> Smalltalker Avi Bryant: >>> >>> https://twitter.com/#!/avibryant/status/43543305820180480 >>> >>> Apparently some people replied that Factor does, because soon after he >>> said this: >>> >>> https://twitter.com/#!/avibryant/status/43556586542727168 >>> >>> Was this a deliberate decision in Factor's design? Is it simply a >>> limitation or are there trade-offs involved? What would it take to >>> support such snapshots in Factor? Is it desirable? >> Resuming an entire program is tricky. While the Factor VM knows how to >> freeze the Factor heaps and thaw and revive them, on its own, it doesn't >> know how to recreate the UI resources, network connections, and other >> externalities a real program depends on. Programs can register startup hooks >> to perform these sorts of (re)initialization tasks, but it's not automatic. >> A program in Factor could potentially support a full resume, if all its >> libraries properly register startup hooks to recreate their external >> dependencies, and the program saved a continuation object to be resumed from >> the saved image. >> >> -Joe >> ------------------------------------------------------------------------------ >> Colocation vs. Managed Hosting >> A question and answer guide to determining the best fit >> for your organization - today and in the future. >> http://p.sf.net/sfu/internap-sfd2d >> _______________________________________________ >> Factor-talk mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
