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

  • SEARCH
  • Home
  • 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

How can I launch an event that has accessors like this : public event
How can I launch the Safari browser or the user's default browser pointing it
I would like to know if I can launch a program via incoming MMS/SMS?
I know that you can launch hbase in non-distributed mode. It's not clear from
Does anyone have an example AUTORUN.INF which can launch an MSI installer automatically when
How can I launch an application using C#? Requirements: Must work on Windows XP and
In Silverlight how can I launch / navigate to another page?
Can you cast a List<int> to List<string> somehow? I know I could loop through
I can launch a camera capture with UIImagePicker but capture process is done in
I can launch debug session only once with VS2010 and ASP.NET MVC2. When I

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.