Giter Site home page Giter Site logo

aranega / csom Goto Github PK

View Code? Open in Web Editor NEW

This project forked from som-st/csom

1.0 1.0 0.0 278 KB

CSOM - C implementation of the Simple Object Machine Smalltalk

Home Page: http://som-st.github.io/

License: Other

Makefile 2.95% C 86.63% Shell 0.04% C++ 2.35% Objective-C 5.94% Ruby 2.09%

csom's Introduction

CSOM - The Simple Object Machine implemented in C

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 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 C implementation of SOM, including an implementation of the SOM standard library and a number of examples. Please see the main project page for links to the VM implementations.

CSOM can be built with Make:

$ make

Afterwards, the 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.som

The debug version of CSOM can be built using the debug target:

$ make debug

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. Additional documentation, detailing for instance the object model and how to implement primitives, is available in the doc folder.

WebAssembly CSOM

CSOM can be compiled using GCC, Clang, but also emscripten. With emscripten, it can run on Node.js as follows:

  • install emscripten and set it up for compilation. One easy way is using Docker, as in the .travis.yml. Another is with emsdk
  • build with: make emscripten
  • run with: node CSOM.js -cp Smalltalk Examples/Hello.som

Build Status

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

csom's People

Contributors

aranega avatar charliegracie avatar maenu avatar smarr avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.