Skip to content

A variant of RPySOM, combining ideas from Truffle and TruffleSOM with RPython's metatracing

License

Notifications You must be signed in to change notification settings

charig/RTruffleMate

This branch is 62 commits behind SOM-st/RTruffleSOM:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dd06afa · May 28, 2016
May 28, 2016
May 28, 2016
May 28, 2016
Oct 27, 2014
Nov 18, 2013
Mar 22, 2014
Nov 21, 2013
May 27, 2016
Apr 29, 2015
Sep 23, 2013
Sep 14, 2013
Nov 28, 2014
May 27, 2016
Sep 23, 2013
Sep 23, 2013
Jan 13, 2016
Sep 29, 2014
Oct 26, 2014

Repository files navigation

RTruffleSOM - The Simple Object Machine Smalltalk combining Self-Optimizing Interpreters with Meta-Tracing

Introduction

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 used for teaching and as the foundation for Resilient Smalltalk.

In addition to RTruffleSOM, other implementations exist for Java (SOM, TruffleSOM), C (CSOM), C++ (SOM++), Python (PySOM), and Squeak/Pharo Smalltalk (AweSOM).

A simple Hello World looks like:

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

This repository contains a RPython-based implementation of SOM, including SOM's standard library and a number of examples. Please see the main project page for links to other VM implementations.

To checkout the code:

git clone https://github.com/SOM-st/RTruffleSOM.git

RTruffleSOM's tests can be executed with:

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

A simple Hello World program is executed with:

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

To compile RTruffleSOM, a recent PyPy is recommended and the RPython source code is required. The source distribution of PyPy 5.1 can be used like this:

wget https://bitbucket.org/pypy/pypy/downloads/pypy-5.1.1-src.tar.bz2
tar xvf pypy-5.1.1-src.tar.bz2
export PYPY_DIR=`pwd`/pypy-5.1.1-src/

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

About

A variant of RPySOM, combining ideas from Truffle and TruffleSOM with RPython's metatracing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.6%
  • Other 0.4%