Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5939477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:50:02+00:00 2026-05-22T15:50:02+00:00

Can I launch Squeak as a REPL (no GUI), where I can enter and

  • 0

Can I launch Squeak as a REPL (no GUI), where I can enter and evaluate Smalltalk expressions? I know the default image don’t allow this. Is there any documentation on how to build a minimum image that can be accessed from a command-line shell?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:50:03+00:00Added an answer on May 22, 2026 at 3:50 pm

    Here is a (hackish) solution:
    First, you need OSProcess, so run this in a Workspace:

    Gofer new squeaksource:'OSProcess'; package:'OSProcess';load.
    

    Next, put this in the file repl.st:

    OSProcess thisOSProcess stdOut 
      nextPutAll: 'Welcome to the simple Smalltalk REPL'; 
      nextPut: Character lf; nextPut: $>; flush.
    [ |input|
      [ input := OSProcess readFromStdIn.
        input size > 0 ifTrue: [
          OSProcess thisOSProcess stdOut 
            nextPutAll: ((Compiler evaluate: input) asString; 
            nextPut: Character lf; nextPut: $>; flush 
        ]
      ] repeat.
    ]forkAt: (Processor userBackgroundPriority)
    

    And last, run this command:

    squeak -headless path/to/squeak.image /absolute/path/to/repl.st
    

    You can now have fun with a Smalltalk REPL. Dont forget to type in the command:

    Smalltalk snapshot:true andQuit:true
    

    if you want to save your changes.

    Now, onto the explanation of this solution:
    OSProcess is a package that allows to run other processes, read from stdin, and write to stdout and stderr. You can access the stdout AttachableFileStream with OSProcess thisOSProcess (the current process, aka squeak).

    Next, you run an infinite loop at userBackgroundPriority (to let other processes run). In this infinite loop, you use Compiler evaluate: to execute the input.

    And you run this in a script with a headless image.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know if I can launch a program via incoming MMS/SMS?
I know that using the URL with tel:// I can launch the phone app
After making some research, I now know that I can launch an iphone app
We know that we can launch an apk file, we can also listen the
I know how to open a tel:// URL so that I can launch a
I know that you can launch hbase in non-distributed mode. It's not clear from
I just installed Cygwin and can launch a bash shell from windows, do ls
I have a c program which I can launch at command prompt. Is it
I have an application where I can launch a modal dialog box over a
We have an application that has a primary window, it can launch multiple other

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.