Carl Gundel | 19 Oct 1999 21:53
Picon
Favicon

Improved chat for Squeak PWS?

Hi all!

Has anyone here done anything to improve the chat that comes with the 
pluggable web server?  I've done a little tinkering to improve the space 
utilization.

Also, whenever the automatic refresh occurs the client browser (IE4) 
displays the message "Repost Form Data?".  How can I fix this?

If I manage to consolidate any substantial improvement, I'll resubmit it to 
the community.

Thanks,

Carl

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

Ryan Davis | 19 Oct 1999 19:24

Re:Stripping out unused sources from Squeak [was: RE: [ANN] SqueakOS ]

At 15:59 -0400 on 1999-10-18, you wrote:
0D

>While reading Tim's thoughts on creating a very tiny VM, I was reminded of
>another line of thought I have had several times over my ST career.  In my
>quest to reduce the installation requirements for customer copies of
>Smalltalk programs I have written, I have often wished I had a source
>stripper tool that could read my application code and could suggest what
>other "base" code could be stripped out of my image.  I've dreamt of a tool
>that would, given a set of application specific classes, create a proposed
>list of other classes that can be discarded from your image.  You would then
>have the option of approving or disproving the removal of all specific
>classes, which the tool could automatically discard.  The tool would have be
>powerful enough to ensure you didn't remove any required classes after
>you've overridden its default choices for removal.  The tool would also have
>to be smart enough to keep classes around for any global instances/class
>variables that are defined in your image.

SmallTalkAgents had something like this. Basically you'd point it to 
your project (a project is basically a named change-set if I remember 
correctly) and it would use that as the roots for it's garbage 
collector. Then it would run a multiple pass forced garbage 
collection until pass N+1 resulted in the same image as pass N. It 
wasn't perfect, but it stripped a very large image (2.5 meg?) down to 
about 700 Kb for me. The place where it started to lose is in the 
arena of polymorphism. If you project called method xyz, then ALL 
methods xyz were kept. Dan touched on this with his email about the 
type inference engine.

             Ryan Davis         -=-    Zen Spider Software
(Continue reading)

Lex Spoon | 10 Oct 1999 21:08
Picon
Favicon

[FIX] out of scope access to block args

Squeak allocates block argument the same way it allocates method
temporary variables.  In fact, it allocates them in a similar enough way
that you can do things like this:

	bogoMethod
		self foo: [ :x | x + 1 ].
		^x + 2.

Note that the last access to x corresponds to the argument of the block,
even though that x was defined in an inner scope.

Do people think this construct is a good idea?  And isn't this construct
at odds with the goal of re-entrant blocks which have fresh argument
variables with each call?

Well, if you agree with me that it's a bad thing to do, you can try the
below changeset.  It rewrites each occurrence of the above pattern that
I could find in the Squeak system, in a way that uses only in-scope
variables.  It was easy to find such occurrences--I ran a hand-written
parser that uses regular scoped names, and noted the places where the
parser complains :)

Lex

'From Squeak 2.5 of August 6, 1999 [latest update: #1514] on 10 October
1999 at 2:17:57 pm'!
"Change Set:		BlockArgAccess
Date:			10 October 1999
Author:			Lex Spoon

(Continue reading)

agree | 26 Oct 1999 17:11

RE: Reference counting

> This looks like the situation addressed in Java by a variation of
> weak references called "soft references".  They are like weak refs
> in that they don't prevent garbage collection but the collector will
> not clear them unless there is memory pressure.  We use them for
> the kind of caching you describe.  I don't know enough about the
> Squeak VM to determine their feasibility in Squeak.  They are
> very handy in Java.

I would appreciate an explanation of their utility.  I'm sure I'm simply being dull, but I don't understand
why this would be necessary or helpful.

Jarvis, Robert P. | 18 Oct 1999 14:56

RE: [bug, linuxVM] shift-tab not captured

Alt-Tab and Shift-Alt-Tab can be used to switch between apps on Windows, but
I don't think Shift-Tab has any special meaning.

Bob Jarvis
The Timken Company

> -----Original Message-----
> From:	Dino [SMTP:gte949e <at> prism.gatech.edu]
> Sent:	Sunday, October 17, 1999 1:27 PM
> To:	squeak <at> cs.uiuc.edu
> Subject:	Re: [bug, linuxVM] shift-tab not captured
> 
> Maybe we want to ignore that one since many windoze users like that key
> sequence
> for switching applications...
> 
> Dino
> 
> 
> michalstarke wrote:
> > 
> > to nux VM explorers:
> > 
> > On my linux VM (2.5), the 'shift-tab' keyboard combination is not
> reported by InputSensor.keyboardPressed, while the other shift-*
> combinations are reported, and tab by itself is reported too.
> > (Other VMs do report 'shift-tab').
> > 
> > michal

(Continue reading)

Dan Ingalls | 20 Oct 1999 19:44
Picon

Re: ThingLab installation problem

>Dear Dan
>I tried to install ThingLab V2 on my Squeak 2.6 (windows-version), for
>developing a process simulation. When I try to file in "fileInAll.st" the
>"ThingLab_PreDefs" are filed in properly (?), but afterwards, when in-filing
>"ThingLab.cs" an error occurs:
>"Error: You may not create any more undefined objects-use nil".
>As I'm quite new to Squeak my efforts to trace back the error did not
>succeed in debugging.
>Is there any trivial fault? Could you help me?
>Thanks in advance
>Thomas J.

Thomas -

Thanks for the alert.  This occurs due to a change in Squeak's class definition facility.  I found I was able to
get it all to fileIn and work in 2.6 by including the following definition before filing in ThingLab.cs:

---------------------
!UndefinedObject methodsFor: 'ThingLab' stamp: 'di 10/20/1999 09:30'!
isPrototype
	"message defined here to prevent error of asking for the prototype when the
	definition hasn't been filed in yet"

	^ false! !
---------------------

I would set about doing a new release of these files, except I really want to wait until we integrate this with
Morphic.  ThingLab is just crying to have all its things (points, lines, midpointLines, etc) be morphs. 
This will take it out of the bounds of the browser, add color and let us throw away all the double-buffered
display code that is already supported in Morphic (student project waiting to happen ;-).  It would also be
(Continue reading)

JArchibald | 9 Oct 1999 07:32
Picon
Favicon

Re: Halo icons

--> 10/8/99 6:44:08 PM EDT, dnsmith <at> watson.ibm.com -->
<< I've taped a copy of the halo button definitions to the front of my Mac, 
but there is no place to do it on my laptop. Besides, it'd be nice if the 
buttons had some kind of picture, like the close button does, indicating what 
they do. >>

The picture is great; I'm forever groping around to remember which button 
does what.

Is there inexpensive way to do "hover help" for this kind of information. 
Squeak morphers, hover help?

Jerry Archibald
systemObjectivesIncorporated

Andres Valloud | 24 Oct 1999 22:50
Picon

Re: Old code?

Hi David.

> I just happened to look at the comment for class Cursor in 2.6:
> 
>     I am a 16 x 16 dot matrix suitable for use as the Alto hardware cursor.
> 
> It's nice when old code still works after almost 20 years, or its comments do!

Perhaps it would also be nice to have those comments signed by the one
who wrote them, together with some kind of date indication...

Andres.

Georg Gollmann | 13 Oct 1999 17:47
Picon
Favicon

RE: 2.5 image/changes problem

At 10:03 Uhr -0500 13.10.1999, Michael Donegan wrote:
>I got my copy of Squeak using this link off the Squeak home page.
>
>ftp://st.cs.uiuc.edu/pub/Smalltalk/Squeak/2.5/Squeak2.5-mac.sea.bin
>
>The problem seems to be something with the handling of the Changes file.
>Every method in the Changes file starting with B3DRotation has an offset of
>8 or more. At various places the offset goes up, but it remains constant
>until the next jump. I don't know what the mechanism is for computing these
>offsets, but it seems that some error is accumulating error whenever the
>bad condition occurs. It is interesting that the comment for B3DRotation is
>OK, but the first method is bad. I don't see anything unusual with the
>comment in the changes file except that it has tabs in it. Don't know if
>that is unusual or not.
>
>To answer another question. Squeak seems great on the iBook. There is some
>hesitation when rotating a browser window, but overall it is pretty cool. I
>haven't tried it on batteries yet.
>
>	mkd
>

I guess Stuffit Expander 5 did the decoding. It is broken. Double 
click the sea file and all should be fine.

Georg
----
Dipl.Ing. Georg Gollmann                TU-Wien, Zentraler Informatikdienst
                                         Wiedner Hauptstr. 8-10
phon:(+43-1) 58801 - 42022              A-1040 Wien
(Continue reading)

Alan Kay | 29 Oct 1999 14:23
Picon

Re: license

Marcus --

Does "donate" mean more than the fonts can be used in Squeak? -- does it
also mean that they can be "passed along" from app builders to app builders
and to users?

When we were looking for fonts before, we found many that were "free" to
use, but had license restrictions for propagation ...

Cheers,

Alan

------

At 11:30 PM -0800 10/28/99, Marcus Denker wrote:
>On Thu, Oct 28, 1999 at 09:21:36PM -0400, agree <at> carltonfields.com wrote:
>> And we can always ask Adobe to throw us a bone, at least with the
>> Postscript standard fonts  :-)
>
>The 35 Postscript 1 standard-fonts were donated to the the GNU-Project
>by URW (http://www.urw.de).
>
>  http://www.gimp.org/urw-fonts.tar.gz
>
>
>  Marcus
>
>--
>Marcus Denker marcus <at> ira.uka.de phone <at> home:(0721)614235  <at> work:(0721)608-2749
(Continue reading)


Gmane