Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> also retain the "scripting" (light) commandline approach

Smalltalk developers preferred to do their scripting within the Smalltalk IDE, so they could use their familiar tools.

And then save their "scripting" as a text file ("fact.st").

    $ cat fact.st
    Stdio stdout 
        nextPutAll: 100 factorial printString; 
        nextPut: Character lf.!
    SmalltalkImage current snapshot: false andQuit: true!

And then "run" that text file ("fact.st") from the commandline.

    $ bin/pharo --headless Pharo10-SNAPSHOT-64bit-502addc.image fact.st
93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: