PWS dies on save?

Mats Nygren nygren at sics.se
Thu May 18 17:17:30 UTC 2000


Bijan Parsia <bparsia at email.unc.edu> wrote:
> On Thu, 18 May 2000, Bert Freudenberg wrote:
> 
> > On Thu, 18 May 2000, Mats Nygren wrote:
> > 
> > > Could it be that PWS stops working when I make 'save' on the image.
> > 
> > Yes.
> 
> No. It stops serving. Trying to serve through a snapshot is a *very* bad
> idea.

Another thing that doesnt fare well with saving is the ScorePlayer. Shuld there be a #startUp there also?

I have no idea how much work this entails but it seems nice if everthing
that was
going on when a save was done will be restarted (if possible) when the svae is ready.
Whether there was an intervening "end process, start another process, reload image" or not.

This kind of things needs to be working for mobile net-agents I think.
This could be fun, when the security issues are reasonably solved. Morphs in cyberspace.

> It doesn't automatically resume serving, but you can restart it manually,
> or automatically (see Bert's advice below). That should also start the
> server up when you launch an image.
> 
> > > Do you recommend that I switch to Comanche?
> > 
> > Yes.
> 
> It depends on what you're trying to do.
> 
> While working on the Squeak Networking chapter, I'm finding a lot to
> appriciate about PWS. Comanche is *a* future, no doubt. And, I'd bet on
> Comanche for medium to large scale production work.
> 
> But PWS works just dandy for prototyping and it's fun to explore.

I think thats my current focus.

> 
> Comanche is still beta, but doesn't seem to be too much in flux, but it's
> not (yet) bundled in the main distribution. ComSwiki, otoh, is in the
> midst of a rather large rewrite (from what I hear ;)).
> 
> So, it really depends what you want to do *at this time*. The  Networking
> chapter will (I hope) contain a conceptual path from PWS to Comanche
> (after all, I think it's correct to say that Comanche, while rewritten
> from the ground up, is a descendant of PWS), so what you learn from PWS
> won't be totally lost.

Thanks, I have recently read (the existing parts of) your chapter, well written and informative, looking forward to the rest of it.

> 
> > -- Bert
> > 
> > PS: You can automatically restart PWS if you add a method #startUp on it's
> >     class side (where shutDown is) in which you start the server like 
> >     PWS serveOnPort: 8080 loggingTo: 'whatever'

I tried this, it doesnt seem to work, but now I know enough to work it out. Thanks for the help.

/Mats Nygren





More information about the Squeak-dev mailing list