Advice on squeaklets needed

Stephen Pair spair at advantive.com
Mon Dec 18 16:28:38 UTC 2000


Has any progress been made on getting a standard Squeaklet host image put
together?  IIRC, there was some discussion a long time ago about creating a
small image that would exist primarily for hosting web based Squeaklets.

- Stephen

> > I have a squeak application that I want to turn into a squeaklet.  The
> > app consists of:
> ...
> > Now, my question is what is the best way to deliver this so as to keep
> > the download size and the compilation time smallest?
> >
> ...
> > My current thinking was that the squeaklet would load and compile a
> > short script which would download the other components, unzip and
> > compile them, then start the application.  Does anyone know any better
> > way?
>
> The parameter tag "src" in the embed statement of the Squeaklet web page
> points to the script that will be executed at startup (see
> PluginLauncher), so your current thinking is correct :-)
>
> To store code into an ImageSegment have a look at the
> CodeLoader>>utilities category and to load it at the other Squeaklet
> examples, e.g.
> http://www.squeaklet.com/NPSqueak/examples/hangman/simple/hangman.sts
>
> The utility code in CodeLoader currently only supports complete
> categories or classes, so you would need to fileIn other code snippets
> via source fileIn. (or extend the CodeLoader methods ;-) )
>
> For loading the other resources (bmps and data files) you should make
> use of the HTTPLoader.
>
> Michael
>
>
> --
>  "To improve is to change, to be perfect is to change often."
>                                             Winston Churchill
> +------------------------------------------------------------+
> | Michael Rueger    m.rueger at acm.org      ++1 (310) 937 7196 |
> +------------------------------------------------------------+





More information about the Squeak-dev mailing list