Kyma Forum
  Kyma Support
  Smalltalk

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   Smalltalk
MartinStehl
Member
posted 02 May 2011 07:01         Edit/Delete Message   Reply w/Quote
Hi!
Is there a program available (for Mac) where i can try and experiment with Smalltalk codes on the way on my Laptop, like iīm evaluating right now my codes in the Kyma Text Editor?

Greetings from Frankfurt/Germany,
Martin

IP: Logged

bfelton
Member
posted 02 May 2011 07:15         Edit/Delete Message   Reply w/Quote
There are a couple of choices. You can get the VisualWorks 'non-commercial' distribution from Cincom. VW is a descendant of the Smalltalk used in Kyma. Hit the http://www.cincomsmalltalk.com/main/
and browse around. You used to be able to download the NC distro, but when I went after it a couple months ago you had to request it to be shipped. Took a while, but it showed up.
Note that you should be going for VW, not ObjectStudio, at least for help in grasping Kyma.
The other free alternative I know of is Squeak. Lots of people like it and use it, but there are a few caveats. It's a work 'in process' and so has various niggling little bugs that sometimes are very annoying. Its graphics/gui model is quite different, and very poorly documented.
But at its core, it's another Smalltalk-80 descendant and would let you try out Smalltalk coding for free. Do a google search for Squeak to find the latest release and the various on-line docs and resources.

cheers,
Bill

IP: Logged

bar|none
Member
posted 02 May 2011 12:28         Edit/Delete Message   Reply w/Quote
I downloaded "Squeak" for OS X. It's excellent and perfect for learning smalltalk. Google it.

IP: Logged

Roman Weingardt
Member
posted 02 May 2011 15:51         Edit/Delete Message   Reply w/Quote
I'm on Squeak too. Its driven by the original developer members who wrote Smalltalk. Great environment.

Greetz from Bonn, neighbor !

IP: Logged

MartinStehl
Member
posted 03 May 2011 03:20         Edit/Delete Message   Reply w/Quote
Hello again!

Thank you all for your suggestions! I tried to get along with Squeak. Very different GUI as i never had any contact with such a kind of program. Could some of you guide me shortly which kind of tool or window i have to open to get a similar text window like in Kyma to quickly evaluate some codings? Thank you very much for helping me!

Greetings,
Martin

IP: Logged

bfelton
Member
posted 03 May 2011 07:34         Edit/Delete Message   Reply w/Quote
You need a Workspace window.
The basic tools are:
Browser
Workspace
Transcript
File List

A browser is your access to the source code of the system.
A workspace is a general text editing area in which you can select (highlight) snippets of code and execute them. You have three options for execution:
do it, which will evaluate the code 'silently', that is, will not show the resulting object
print it, which will evaluate the code and show the result. Note that the result is the 'printString' of the object returned by the final expression. Typically you specify the return value using the cara ( ^ ). So if you have a Person object with firstName and lastName instance variables, create a new instance (named myPerson for this example), set the firstName and lastName instance variables, and want to see the result, you would make your final statement
^myPerson firstName, ' ', myPerson lastName
inspect it, which opens an object inspector on the object returned by the last expression in the code you evaluate. So if your code ended with
myPerson
or ^myPerson
inspect it would open an inspector on the person instance held by the myPerson variable.
This allows you to look at the "guts" of the object by seeing the names and values of the instance variables of the object.
The Transcript can be used as the equivalent of standard i/o, so you might have your code do something like
Transcript show: myPerson firstName, ' ', myPerson lastName
On evaluation the resulting string will be displayed in the Transcript window.
If you use 'do it', that's all. If you use 'show it', the returned value will be
aTranscriptStream ''
which is the print representation of the Transcript object.
If you use inspect it, you get an object inspector on the Transcript object.

Hope this helps!

cheers,
Bill

IP: Logged

MartinStehl
Member
posted 03 May 2011 14:12         Edit/Delete Message   Reply w/Quote
Hi Bill!

Thank you for your detailed instruction, it works! Thatīs exactly what i needed ;-)

Greetings,
Martin

IP: Logged

bfelton
Member
posted 03 May 2011 14:45         Edit/Delete Message   Reply w/Quote
Hi Martin,
Glad it helped!
I used to teach Smalltalk and just can't break completely away ;-)

cheers,
Bill

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c