A:
David Mitchell answered:
TextStyle changeDefaultFontSizeBy: 1.
See TextStyle class>>changeDefaultFontSizeBy:
"This sample method recreates the default textStyle, with font 1 being a size larger than the smallest. It then initializes most references in the system as well, although most windows will have to be closed and reopened to get the effect."
Note The technique discussed in this post applies to all
versions of Squeak on all platforms. Tested on Windows 95, Linux, and the Mac.
-cap 11/23/98
A:
Answer(s):
Follow this link to: Changing fonts
A:
Open up a "System Browser", select "Kernel-Objects", select class Object, pop up the class context menu and select "hierarchy". This will create exactly what you want. To get it out to a file, scroll to the end of the text, place mouse pointer after all the text and double-click. This selects all the hierarchy text, which you can then copy-and-paste to your favorite text editor.
If you want to do this in a more direct fashion, evaluate:
(FileStream newFileNamed: 'hierarchySqueak2.2.txt') nextPutAll: Object printHierarchy; close
A:
Smallest version runs in under 1 megabyte (for PDAs). The standard version can go up to 511 megabytes now, and this will rise to 1.5 gigs (of memory!) as of version 2.3. Ted Kaehler
A:
You don't have to worry about this. It's fast enough. Message sends (calling a subroutine) are a lot cheaper than other languages.
N-squared loops are slow, just like other systems. Floating point is a little slow, but version 2.3 has improvements. There are array operations for floating point that go faster. 'Become' is slow (swapping the references to two objects), but you won't use this in normal code. Ted Kaehler
A:
It is very stable. Ted Kaehler
A:
Yes. After you add a class, you may want to choose "update" from the upper left hand pane menu of each Browser. We know it should update by itself, but have not gotten around to doing it. Redrilling is fine also. Ted Kaehler
A:
See http://minnow.cc.gatech.edu/squeak.30 for a page on Morphic, including a tutorial. See http://minnow.cc.gatech.edu/SqueakDoc.11 See the "Play with me" windows in Squeak. Ted Kaehler
A:
400 MHz Pentium:
550,000 message sends/sec
9,000,000 bytecodes/sec
[Ummm, sorta -- actually I'm seeing higher numbers with 2.3beta on Andreas' standard 2.3beta VM
(assuming you're using the normal #benchmark and #benchFib in Squeak) -- Dwight Hughes]
A:
i) You don't. Some bits is this Squeak are descended from Smalltalk-76. They have been loaded and saved in a 'core image' many times. It is, theoretically possible to start from nothing (since it has been done in the past, back before the earth cooled), but t'ain't easy.
ii) Use the SystemTracer. A SystemTracer reads every object in the system, and constructs a new '.image' file byte-by-byte. Transformations can be done along the way. TK estimates that the main line Squeak has been through the SystemTracer only 16 times since 1977.
Look at the code in the standard system for the basics, and consider looking at my ( Tim Rowledge) code for converting the compiled method format using the tracer. Go to http://sumeru.stanford.edu/tim/pooters/squeak.html to see more. Basically you can do just about anything using the tracer if you're careful, patient and precise.
iii) In general, the complete source code of a Smalltalk system is not a complete definition of the contents of the image (even for Squeak), though arguably it should be. There are usually a number of pools and dictionaries and such whose contents were defined interactively as needed back in the depths of time. However, these could be hunted down and proper initialization code written for them. Basking in the ignorance of never having actually bootstrapped an image, this is what I would do (I think :-b): first define a special compiler outside of the image you are creating (duh, since you don't have an image to begin with), then give the compiled code (and all related source and information) to a special image creator/interpreter to package everything up, do the initializations, and create all the oops and object structures and such - it would also need to link each CompiledMethod to the sources file and lots of other little details (as Tim said - t'ain't easy). Budd's "Little Smalltalk" has this capability I believe (for a greatly simplified implementation). All this assumes you have a VM that understands your image format and compiled code to run the image on when you get through - if not,.... The more I think about it the uglier it gets, but you get the idea. -- Dwight Hughes
A:
A:
A:
A:
img |
A:
Do you have an HTTP proxy server available? If so, you can set it up like this:
HTTPSocket useProxyServerNamed: 'my.server.name.com' port: 8080
A: See CrLfFileStream. It lets you transparently
deal with text files on systems that don't use carriage returns
to denote line endings. In particular, Unix uses line feeds, and
DOS/Windows uses both a carriage return and a line feed.
A: Yes. The Squeak mailing list archives can be searched at http://macos.tuwien.ac.at:9009/Server.home. For example, if you're looking for information on the Gtk widget toolkit related to Squeak, a search on "gtk" will bring up a few dozen relevant messages.
Also, a nice hierarchical (but not searchable) view of the Squeak mailing list archive is available at http://squeak.cs.uiuc.edu/mail/squeak/.