Headless images (eas Re: [ANN] SqueakMap RC2 and SM Loader 0.96 out)

PhiHo Hoang squeak-dev at lists.squeakfoundation.org
Sun Oct 27 22:25:32 UTC 2002


Hi Jon,

>> Who knows, that may cut another half a million bytes ;-)
> Actually, yeah, something like 500-700 KB more.

    Hooray.

<QUOTE>
I've also got a first cut of a simple command-line interface that works
over the serial port. I have tested it and it seems to work okay.
Basically, you connect two computers with a null-modem cable, run a
terminal program on one, and Sqeuak (either headless or headful) on the
other.

Once you start the listener in Squeak, you get a prompt on the terminal
program on the second computer, and you can type in Smalltalk expressions
and see the results.

The general point of that piece is to see that a headless image is running
and responding to user input -- I'm going to have it running on my Axis
image so I can see that the VM port is actually working.
</QUOTE>

SqueakScript has a nice little ConsolePlugin (5120 bytes).
I had a lot of fun playing with it, a nice little gem. Thanks, Andreas.

MobVM now runs SqueakScript _without_ loading WindowPlugin and
BrowserPlugin,
(and of course does not show the squeak Window ;-).

MobVM detects the headlessness via 'savedWindowSize'.

The SqueakScript image was tweaked so that 'savedWindowSize' is set 0.

Is there yet a signature for a headless image ?

Followings are the plugins loaded to run SqueakScript:

E:\Program Files\Squeak\Plugin\SqMOM>ls -l
total 250
-rwxr-xr-x    1 PhiHo Ho None         5120 Oct 27 16:50 ConsolePlugin.dll
-rwxr-xr-x    1 PhiHo Ho None       142336 Oct 27 16:50
MegaInterpreterPlugin.dll
-rwxr-xr-x    1 PhiHo Ho None        11776 Oct 27 16:50 ModManPlugin.dll
-rwxr-xr-x    1 PhiHo Ho None        26112 Oct 27 16:50 PlatformPlugin.dll
-rwxr-xr-x    1 PhiHo Ho None         7680 Oct 27 16:50 PlugManPlugin.dll
-rwxr-xr-x    1 PhiHo Ho None        60928 Oct 27 16:50 ZlibPlugin.dll

If the plugins are available locally, ZlibPlugin is not needed to be there.
(and yes, 'MegaInterpreterPlugin' is a Big Mac combo of
ObjectMemoryPlugin, InterpreterPlugin, and PrimitivesPlugin.
Separate pieces are still available on order ;-)

I am looking forward to try your shrinking script and headless image with
MobVM.

Cheers,

PhiHo.

----- Original Message -----
From: "Jon Hylands" <jon at huv.com>
To: <squeak-dev at lists.squeakfoundation.org>
Sent: Sunday, October 27, 2002 11:47 AM
Subject: Re: [ANN] SqueakMap RC2 and SM Loader 0.96 out


On Sun, 27 Oct 2002 01:44:13 -0400, "PhiHo Hoang" <phiho.hoang at rogers.com>
wrote:

>     Who knows, that may cut another half a million bytes ;-)

Actually, yeah, something like 500-700 KB more. The major-shrunk image my
changeset produces has something like 100 obsolete classes in it, that are
referenced from methods in base classes.

> > I wrote a tool that lets you specify a set of classes and globals,
> > and it will print a report of every method in those classes that
> > reference a class or global not in that set.
>
>     That's cool. I guess that tool will be included in the next release.
:-)

Yeah. Its actually part of my headless image stripper, but it can be put
pretty much anywhere.

I've also got a first cut of a simple command-line interface that works
over the serial port. I have tested it and it seems to work okay.
Basically, you connect two computers with a null-modem cable, run a
terminal program on one, and Sqeuak (either headless or headful) on the
other.

Once you start the listener in Squeak, you get a prompt on the terminal
program on the second computer, and you can type in Smalltalk expressions
and see the results.

The general point of that piece is to see that a headless image is running
and responding to user input -- I'm going to have it running on my Axis
image so I can see that the VM port is actually working.

Later,
Jon

--------------------------------------------------------------
   Jon Hylands      Jon at huv.com      http://www.huv.com/jon

  Project: Micro Seeker (Micro Autonomous Underwater Vehicle)
           http://www.huv.com






More information about the Squeak-dev mailing list