Skip to content

Smalltalk Hello World (2006)

wiki.c2.com
3 pointsggcr2 comments
On HN

Comments

With a previous Pharo version:

    $ bin/pharo --headless Pharo10-SNAPSHOT-64bit-502addc.image hello.st
pharo is the unchanged VM (like the JVM).

Pharo10-SNAPSHOT-64bit-502addc.image is the unchanged distro image file.

hello.st is a plain text file, the hello world program.

    $ cat hello.st
    Stdio stdout 
        nextPutAll: 'hello world'; 
        nextPut: Character lf.!
    SmalltalkImage current snapshot: false andQuit: true!

@ggcr The wiki page shows about 80 long lines of comment.

What in particular do you think we should look-at and what would you like us to learn from that?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.