Dirk Deridder - Smalltalk Corner
Home News Research Trivia

Dirk Deridder - Smalltalk Corner

byte_smalltalk.jpeg

I use Smalltalk as a medium to do my research (C3 website). This was not an ad hoc choice. I have looked into several other languages, but in the end Smalltalk was the one which was the most suited for the kind of research I am involved in.

Smalltalk is a pure object-oriented, dynamically typed, reflective programming language. Even though it is a class-based language, the statement ‘everything is an object’ still holds through the existence of metaclasses. Classes, methods, and user interface specifications (to name a few) are also accessible as objects. As a result it is possible to create a class for example by sending a message to the class Class. This is similar to the way you would create an instance of a Person class.

One of the inherent properties of the Smalltalk philosophy is that everything in the environment can be adapted (this is taken to the extreme in Squeak and Croquet). This means that you can alter the behavior of the language-core or the development environment from within Smalltalk itself. This is one of the main reasons why it is a great medium to perform research that is strongly biased towards programming language and software engineering.

Another important aspect of Smalltalk is that you can inspect and manipulate objects in real time. Together with the fact that you can alter the language-core as if it was a normal Smalltalk program, this results in a highly intuitive and interactive way of programming which is especially suited for agile development.

If you want to get to know Smalltalk, you should take a look at the following great resources:

An interesting read is The Early History of Smalltalk by Alan Kay, which provides some historical background.

The particular Smalltalk environment I currently use is VisualWorks Smalltalk (free non-commercial version available for download).

Some (VisualWorks) Smalltalk How-To's

Here are a number of how-to's that I found useful. Note that most of these will only work for VisualWorks Smalltalk.


Bigger Fonts for Demonstrations

The standard font size of the VisualWorks environment is too small for demonstrations in a big room using a beamer. Somehow I always forget how to change this setting (out of experience I know that I am not the only one ;-)). So here is how to do it.

Evaluate the following code snippet:

NamedFontSelector open

This will open the Named Font Selector window.

smalltalknamedfontselector.jpg

Select 'large' in the left list box, assign a new font size, and press the 'Assign to Named Font' button.

Next open the VisualWorks system settings.

smalltalkfontsettings.jpg

Select the 'Tools' item in the left tree view, and select 'large' in the Text Size dropdown list. After pushing the Apply button you will get … bigger fonts!

smalltalkbiggerfonts.jpg

 
about/members/dirkderidder/research/smalltalkcorner.txt · Last modified: 01/09/2008 19:10 by dderidde
 

© 2003-2010 • System and Software Engineering Lab • Submit comments and bugs to our Bugzilla or to the webmaster