Hacker News new | ask | show | jobs
by detaro 2705 days ago
There's literally a command-line example (although it doesn't print Hello world, but the factorial of 42) on their front page.

That said, Smalltalk isn't something you use from the commandline typically, or only during deployment or for applying external automation. The GUI environment is fairly key.

1 comments

No.

The website front page does not show a Pharo program being invoked from the OS command-line and using stdio.

Yes it does. The below is copied from the 'A glimpse of Pharo' section.

""" $ curl https://get.pharo.org | bash $ ./pharo Pharo.image eval "42 factorial" """

Are we to understand that:

— nobody hit the Enter key?

— the program does nothing?

— the program does something but there was no output?

— there was output but not to stdout?

etc etc

From the home page, in the A glimpse of Pharo section:

  $ curl https://get.pharo.org | bash 
  $ ./pharo Pharo.image eval "42 factorial"
Which apparently does nothing.
I got 1405006117752879898543142606244511569936384000000000 on my command line after running those commands.
How many of the programmers you know would be able to glance at the first ten of those digits and be able to say the result was correct?

How many would be able to say that `Hello, world` was correct?

Is that what the website home page shows?
You're really intent on splitting those hairs.