My question is not listed here!

Tagged:

Write it in a comment to this question.

How do i install Smalltalk on Windows?

I would like to be able to compile GST into a C program then use that VM to execute either smalltalk source or bytecode, like one is able to do with Lua and Python. I can do this with both Lua and Python, so if it's not much different I'll probably take off with it, but I don't know what headers to include, what to initialize, whatever... Is it possible to do this with GST like one does with the aforementioned languages, and could someone provide me with a sort of bare-minumum example of how?

I think it is best to ask such questions on our mailinglist.

Hello Paolo!
Thank you for your previous answer :) - Here's another one. I just did a fresh "git clone" and a following "autoreconf -fvi". All went well and I noticed, that the GTK-tree and VisualGST where allready in the branch and compiled well too.

Now, how do I start the GTK browser?

I have tried:
PackageLoader fileInPackage: 'VisualGST'.

But, all I get, is the same console prompt.

What's the clue?

Many thanks in advance...
Thomas

I updated this FAQ, thanks.

The gst-browser command is equivalent to gst-load --start --dry-run VisualGST. Since this is not very intuitive, there is a handy alias. :-)

Paolo

Thanks Paolo!

BTW: gnu-smalltalk 3.1 is a fantastic Smalltalk! - Scripting a Smalltalk-VM from files is quite amazing after coming from image based workflow and reduces the fuzz about creating OS conform standalone apps a lot. Switching from "image based" to "file based" workflow works like a charm and is IMO a big step in the right direction ;)

Thomas

Hello,
I've just started with gst doing some text output to the console. How do i suppress the transcript output of the PackageLoader, so I can reuse the script's output without cutting off those messages first? Also, how do i return a String without surrounding quotes?

Cheers...

PackageLoader: use the -f option to launch the script, for example gst -f script.st arg1 arg2 arg3

String: #printNl is a programmer-oriented output. To remove quotes use #displayNl.

How do I change the font size that BLOX uses to something larger???

What is "The Smalltalk for those who can type" supposed to mean?

Hi!

One of the reasons that I'm using Perl is CPAN. Is there something like what in SmallTalk? Can we find or download extra modules (or classes) easily?

Thanks.

There are now hosted projects. The next release of GNU Smalltalk will be able to download them automatically.

Squeak has SqueakSource; some of the modules there are ported easily to GNU Smalltalk.

GNU Smalltalk does not have a CPAN-like repository yet, but you can register projects right here on this site. Downloads in .star format can be installed easily just by doing gst-package /path/to/Package.star (see this FAQ, which could be augmented really).

Squeak has SqueakSource; some of the modules there are ported easily to GNU Smalltalk.

GNU Smalltalk does not have a CPAN-like repository yet, but you can register projects right here on this site. Downloads in .star format can be installed easily just by doing gst-package /path/to/Package.star (see this FAQ, which could be augmented really).

Hi there

I have read and re-read every piece of documentation I can lay my hands on, and just can not get gst to start a GUI based browser. It seems to me that your docs are hopelessly outdated. I must say I am very disappointed that a language as simple and beautiful as Smalltalk has been so completely obfuscated in this implementation. I have been programming in Smalltalk for 20 years, and have developed GTK apps for 5 in C, and I can't get the GUI to come up. No wonder people don't want to use Smalltalk !

Sigh

Comments about your disappointment are probably best sent to the mailing list so that we can fix the problems you felt. BTW, it is nice to sign yourself if you type your comment as anonymous.

However, indeed the FAQ was outdated. What you have to do is just type gst-blox.

I wish I could get syntax similar to the "how does smalltalk look like" section to work, but I get:

stdin:1: parse error, expected '!'

The snippet in question is:

   Object subclass: Person [
       | name age |
       Person class >> name: aString age: anInteger [
           ^self new name: aString; age: anInteger; yourself
       ]
   
       name [ ^name ]
       name: aString [ name := aString ]
       age [ ^age ]
       age: anInteger [ age := anInteger ]
   
       printOn: aStream [
           aStream << ('%1 (%2)' % {name. age})
       ]
   ]

thanks.

I added a note to the FAQ, saying that the syntax works only in the current development branch.

Paolo

Looks like I need to poke a Debian maintainer or (gasp) do the unthinkable and compile from source myself...

sam@sol:~$ gst -v
GNU Smalltalk version 2.3.2
Copyright 2006 Free Software Foundation, Inc.
Written by Steve Byrne (sbb@gnu.org) and Paolo Bonzini (bonzini@gnu.org)

GNU Smalltalk comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Smalltalk under the terms of the
GNU General Public License. For more information, see the file named
COPYING.

Using default kernel path: /usr/local/share/smalltalk/kernel
Using default image path: /usr/local/share/smalltalk

... this or this for instruction on how to compile it. Note that development versions are good but still not release-quality (though they have so many new features that they are worth using anyway!) which is why Debian's maintainers haven't packaged them yet.

Paolo

User login