Skip to content
/ som-java Public

SOM - Simple Object Machine (plain Java implementation)

License

Notifications You must be signed in to change notification settings

smarr/som-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e4f4b11 · Feb 13, 2025
Feb 13, 2025
Jun 7, 2017
Feb 13, 2025
Apr 4, 2024
Apr 8, 2021
Mar 31, 2013
Jun 7, 2017
Apr 8, 2021
Jun 7, 2017
Apr 3, 2013
Mar 31, 2013
Apr 11, 2021
Nov 14, 2013
Apr 8, 2021
Mar 31, 2013
Sep 23, 2013
Mar 31, 2013
Nov 7, 2013
Jun 16, 2020
Sep 23, 2013
Sep 23, 2013
Apr 22, 2021
Apr 8, 2021
Jun 16, 2024
Jan 17, 2019

Repository files navigation

SOM - Simple Object Machine

SOM is a minimal Smalltalk dialect used to teach VM construction at the Hasso Plattner Institute. It was originally built at the University of Århus (Denmark) where it was also used for teaching.

Currently, implementations exist for Java (SOM), C (CSOM), C++ (SOM++), and Squeak/Pharo Smalltalk (AweSOM).

A simple SOM Hello World looks like:

Hello = (
  run = (
    'Hello World!' println.
  )
)

This repository contains a plain Java implementation of SOM, including an implementation of the SOM standard library. Please see the main project page for links to the VM implementation.

Make sure to initialize the shared Smalltalk standard library, tests, and examples by importing the git submodule:

$ git submodule update --init

To build and run SOM, Java 8 or newer is required.

SOM can be built with Ant:

$ ant jar

Afterwards, the tests can be executed with:

$ ./som.sh -cp Smalltalk TestSuite/TestHarness.som

or with:

$ ant test

A simple Hello World program is executed with:

$ ./som.sh -cp Smalltalk Examples/Hello.som

Information on previous authors are included in the AUTHORS file. This code is distributed under the MIT License. Please see the LICENSE file for details.

Build Status

Thanks to Travis CI, all commits of this repository are tested. The current build status is: Build Status