No description or website provided.
Smalltalk HTML Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
repository
tests
.filetree
.travis.yml
LICENSE
README.md

README.md

Babelsberg/S

Build Status

A Squeak/Smalltalk implementation of Babelsberg licensed under MIT

See also Babelsberg/R and Babelsberg/JS

Work in progress.

How to Install

Download prebuilt image

Prebuilt images are published when the tests are green. You probably want the Image, Changes, and Sources. You can also try it online through SqueakJS (but note that this runs very slowly, and does not support Z3).

Install into your own image

  1. Get Squeak 4.5 or later with a recent CogVM for your operating system. Make sure that the SqueakSSL plugin is included (should be true for all official distributions.)
  2. Load Babelsberg/S into your image
"Get the Metacello configuration (for Squeak users)"
Installer swasource
  project: 'SwaUtilities';
  addPackage: 'ConfigurationOfMetacello';
  install.

"Bootstrap Metacello Preview, using mcz files (#'previewBootstrap' symbolic version"
((Smalltalk at: #ConfigurationOfMetacello) project version: #'previewBootstrap') load.

(Smalltalk at: #Metacello) new
  baseline: 'BabelsbergS';
  repository: 'github://babelsberg/babelsberg-s/repository';
  load.

If you want to commit to Github directly from Squeak, you can try Metacello-Git

((MCGitHubRepository location: 'github://timfel/metacello-git/repository')
  highestNumberedVersionForPackageNamed: 'Metacello-Git') load.

This will allow you to add a Git (remote) repository to the packages in this project. It will use your system's git command. You can configure the path in the GitHub section of the Squeak Preferences tool. Note that Metacello-Git does not handle authentication - it's easiest if you use an SSH url and setup your system to automatically supply the correct public key (usually just works on Unix, you can use e.g. Pageant on Windows.)

How to develop

If you want to forward development, there are a number of areas that need work. In general, the system needs to be refactored so other constraint solvers (e.g. DeltaBlue) can be added more easily. There are also a number of things that this implementation does not do, yet, that are desirable, such as identity constraints, constraint priorities at time of definition, proper readonly variables, or automatic recalculation of constraints when a complex object involved in the constraint changes identity (the latter is an optimization found in the Babelsberg/R and Babelsberg/JS implementations). Further down the road, the constraints from different constraint solvers should be able to interact (as implemented in Babelsberg/JS).

The repository includes a package, Babelsberg-Tests, that includes the conformance tests generated from the executable semantics. These may be a little outdated if they have not been regenerated in some time, but in any case, a goal for further development should be to improve pass rates on these tests. As a guideline, Babelsberg/JS currently passes 39 of these tests using a combination of Z3 and DeltaBlue (the latter for identity constraints). Getting the number for Babelsberg/S up to mid-30 would be worthwhile.