spacer spacer spacer meaningless logo

(moved to nv)

See also Seaside scrapbook.

General

a := 'concat', "comments ignored" 'inate' "' Useful for documenting regexes?"

Not sure whether that works reliably in Squeak / Pharo though.

Pharo

My goodness. Pharo has had a terminal REPL since forever, but for years and years I haven't realised that. See https://stackoverflow.com/questions/3067563/using-squeak-from-a-shell

A big gotcha here is that the files (at least the final script file) has to be referenced using a full path. So I use, for example:

rlwrap /Volumes/bing/main/programming/Pharo/Pharo.app/Contents/MacOS/Pharo --headless /Volumes/bing/main/programming/Pharo/latest/Pharo-40437.image /Volumes/bing/main/programming/Pharo/REPL.st

Pharo Keyboard Shortcuts

[1 = 0] assert. "awesome"

To get the morphic halo on a Mac, use shift-option-click.


Visual Works

scripting with Visual Works Smalltalk
useful Visual Works packages

ExternalProcess fork:'ls' 

'Source code definitions, for methods, classes, shared variables, and namespaces, are organized into packages, and packages are collected into bundles. … Parcel files are an external representation of the packages and bundles'

Visual Works is still working on Web Services (despite Seaside)

SIMPLE WRITE TO A FILE:
tf := '/Users/jason/Desktop/test File txt' as Filename write Stream.
tf nextPutAll: 'sthsnth'; close.

SIMPLE WIKI:
http://www.cincomsmalltalk.com/blog/blogView?showComments=true&printTitle=Smalltalk_Daily_11/04/09:_Using_WikiWorks&entry=3434776071

—-

GNU Smalltalk:

#!/opt/local/bin/gst -f 
Smalltalk at: #x put: 0 !