Sorry Andy! CC'ing to the rest of -cafe in case anybody notices (I need to stop haskelling so early in the morning...)
On Fri, Jul 16, 2010 at 8:59 AM, austin seipp <a...@0xff.ath.cx> wrote: > You also may like one project I wrote, an IRC bot that used hs-plugins > to do hot code reloading (only works on GHC 6.8.) Inspired by > lambdabot, it could swap the entire running program as well as its own > plugins, on the fly and maintain state pretty successfully. I haven't > touched the source code in a long time - it was one of my first bigger > Haskell projects after reading Dons paper about yi. I tried a bunch of > things with various versions of it. > > If I wrote the code again today (providing plugins worked) it would > likely be 1/10th the size and more manageable as I have become much > better at Haskell, but oh well. Looking over it now though, most of > the code is pretty simple. :) > > http://code.haskell.org/infinity/src/ > > On Fri, Jul 16, 2010 at 8:04 AM, Andy Stewart <lazycat.mana...@gmail.com> > wrote: >> Bartek Ćwikłowski <paczesi...@gmail.com> writes: >> >>> Hello Andy, >>> >>> 2010/7/16 Andy Stewart <lazycat.mana...@gmail.com>: >>> >>>> There are some problems with re-compile solution: >>>> >>>> 1) You can't save *all* state with some FFI code, such as gtk2hs, you >>>> can't save state of GTK+ widget. You will lost some state after >>>> re-launch new entry. >>> >>> For my 2008 GSOC application I wrote a demo app that used hot code >>> reloading and it maintained gtk state just fine. The code (and video) >>> is available at http://paczesiowa.dw.pl/ , it worked in ghc 6.8 and >>> needed hs-plugins, so it won't work now, but the approach should work. >> Wow, thanks for your hint, i will wait dons fix hs-plugins then try this >> cool feature.. >> >> Thanks, >> >> -- Andy >> _______________________________________________ >> Haskell-Cafe mailing list >> Haskell-Cafe@haskell.org >> http://www.haskell.org/mailman/listinfo/haskell-cafe >> > > > > -- > - Austin > -- - Austin _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe