On Thu, Aug 11, 2011 at 01:19:05PM +0200, Pavel Krivanek wrote:
On Thu, Aug 11, 2011 at 1:06 PM, David T. Lewis <lewis@mail.msen.com> wrote:
On Thu, Aug 11, 2011 at 12:23:51PM +0200, Pavel Krivanek wrote:
Hi,
the main task of this build is to ensure that we can load OSProcess and provide a pattern for the user jobs that want to use OSProcess.
https://gitorious.org/pharo-build/pharo-build/blobs/master/scripts/pharo/Ker...
The next purpose of this image is to enable an interactive communication with the image and make the development of headless images easier. What you get is something similar to irb or interactive python interpreter.
And of course it may be used for simple Smalltalk scripts. For example the command:
squeakvm -headless PharoKernel-OSProcessEvaluator.image < script > out.txt
where the script file looks like this:
20000 factorial Smalltalk snapshot: false andQuit: true
(ending with lf)
Cheers, -- Pavel
Cool :))
Here is another read-eval interpreter that you may want to look at just for fun:
?http://wiki.squeak.org/squeak/6023
I think your simple interpreter is better for what what you are doing here, but it's interesting to experiment with Squeak/Pharo as a /bin/sh replacement too.
Dave
Hi Dave,
I know about it and I looked at it to see if it could be used for Pharo Kernel. Currently it has many Morphic dependencies and it was easier to write the simple evaluator loop ;-)
Hi Pavel, Yes, you did the right thing :) Dave