[Seaside-dev] Context Initialization was: Fwd: [Seaside] Seaside and Exupery patch

Esteban A. Maringolo emaringolo at gmail.com
Tue Dec 4 17:09:05 UTC 2007


Hi,

The same goes for Dolphin, the Continuation implementation is done
copying a process in suspended state, and then resuming a copy of the
already copied process.

Regards,

On Dec 4, 2007 2:07 PM, Dale Henrichs <dale.henrichs at gemstone.com> wrote:
> Not a problem for GemStone ... our implementaion of Continuation is very
> different anyway...
>
> Dale
>
>
> Philippe Marschall wrote:
>
> >Hi
> >
> >Bryce Kampjes is working on Seaside on Exupery and suggested the
> >following changes:
> >
> >Currently we have
> >
> >Continuation >> #initializeFromContext: aContext
> >       | valueStream context |
> >       valueStream := WriteStream on: (Array new: 20).
> >       context := aContext.
> >       [context notNil] whileTrue:
> >               [valueStream nextPut: context.
> >               1 to: context class instSize do: [:i | valueStream nextPut: (context
> >instVarAt: i)].
> >               1 to: context localSize do: [:i | valueStream nextPut: (context localAt: i)].
> >               context := context sender].
> >       values := valueStream contents
> >
> >With this change we would have
> >
> >Continuation >> #initializeFromContext: aContext
> >       | valueStream context |
> >       valueStream := WriteStream on: (Array new: 20).
> >       context := aContext.
> >       [context notNil] whileTrue:
> >               [context serialiseOn: valueStream.
> >               context := context sender].
> >       values := valueStream contents
> >
> >and
> >
> >ContextPart >> #serialiseOn: aStream
> >       aStream nextPut: self.
> >               1 to: self class instSize do: [:i | aStream nextPut: (self instVarAt: i)].
> >               1 to: self localSize do: [:i | aStream nextPut: (self localAt: i)].
> >
> >Does anybody see any problems with this? Would ContextPart >>
> >#serialiseOn: better be moved to Squeak*?
> >
> >Cheers
> >Philippe
> >
> >---------- Forwarded message ----------
> >From: bryce at kampjes.demon.co.uk <bryce at kampjes.demon.co.uk>
> >Date: 03.12.2007 21:47
> >Subject: [Seaside] Seaside and Exupery patch
> >To: seaside at lists.squeakfoundation.org
> >Cc: exupery at lists.squeakfoundation.org
> >
> >
> >
> >I've placed Seaside2.8a1-wbk.523 on to the Seaside SqueakSource
> >repository. This is a patch that moves the serialisation of
> >contexts from Continuation into ContextPart. This is to allow
> >Seaside to work with Exupery.
> >
> >Is it possible to get this merged into the development branch of
> >Seaside?
> >
> >Yes, the latest development versions of Exupery will run Seaside, no,
> >it's not yet practical. Expect bugs and don't expect a performance
> >improvement yet.
> >
> >Bryce
> >_______________________________________________
> >seaside mailing list
> >seaside at lists.squeakfoundation.org
> >http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >_______________________________________________
> >seaside-dev mailing list
> >seaside-dev at lists.squeakfoundation.org
> >http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
> >
> >
>
> _______________________________________________
> seaside-dev mailing list
> seaside-dev at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
>



-- 
Esteban A. Maringolo
eMaringolo at gmail.com


More information about the seaside-dev mailing list