Dumping Grounds

From Gambit wiki

Revision as of 01:57, 19 April 2011 by Bjlucier (talk | contribs) (→‎SRFI: Added SRFI-1 implementation)

Here you will find packages of Gambit code contributed by users. This page is meant as a simple repository where random code snippets as well as complex systems can easily be stored so that other users can get to them. This is not a substitute for a repository that is closely coupled with the Gambit system's module system (which is under development). It is meant to foster the sharing of code by making it extremely easy to publish code in a publicly accessible place. Sharing a piece of code that is incomplete, undocumented, and unreliable is better than not sharing it, because others can correct the deficiencies, learn from the code, or avoid the bugs. Hence the name Dumping Grounds for this page.

The code need not follow a specific structure. It could simply be a Scheme source file (with a .scm extension). However, if you are packaging your code specifically for storing it here, it is best if the name of the package contains a revision number (so that many revisions can be stored) and is a gzip compressed tar file (.tgz extension) containing the code and documentation (for example file Sort-r1.tgz containing the files Sort-r1/Sort.scm and possibly Sort-r1/Sort.html and other related files). For some reason the wiki insists on the package name starting with an upper-case letter. The code is assumed to be in the public domain unless you add licensing information in the package itself or the documentation.

To add a new package you must add an entry for it to this page (copy-paste an existing entry), update the file name in the [[media:Sort-r1.tgz|Sort-r1.tgz]] link, save the page and click on the link to upload your file. If you upload a new revision don't forget to change the revision number, and keep the link to the old revisions.

A list of the packages and other files with statistics is available here: Special:Imagelist



  1. SRFI-pack: Many SRFIs ported to Gambit
    Author: Guillaume Germain
    Package: Srfi-pack-0.1.tar.gz
    README: Srfi-pack-0.1-README.txt
  2. SRFI-1: SRFI-1 ported to Gambit
    Author: Olin Shivers; ported by Bradley Lucier
    Package Srfi1.scm
    Note: I did not extend map to allow list arguments of different lengths


  1. Ising: Computer simulations of the Ising model of spins using the Metropolis algorithm or the Wolff algorithm.
    Author: Marijn Schouten
    Package: media:ising-20090315.scm


  1. Pi: Compute pi to arbitrary precision.
    Author: Marc Feeley
    Package: Pi-r3.tgz (old: Pi-r2.tgz) (old: Pi-r1.tgz)
  2. BLAS: Thin wrapper for level 1, 2 and 3 BLAS linear algebra routines for the Gambit Scheme system.
    Author: Pierre-Alexandre Fournier
    Package: (web page)
  3. LAPACK: Thin wrapper for higher-level linear algebra routines for the Gambit Scheme system.
    Author: Pierre-Alexandre Fournier
    Package: (web page)
  4. FFTW3: A wrapper for some FFTW3 functions for the Gambit Scheme system. (real, complex, multi-dimensional FFT functions)
    Author: Pierre-Alexandre Fournier
    Package: (web page)

Object Systems

  1. Oops: Object Oriented Programming for Scheme -- Dylan/Clos-like but different
    Author: Ken Dickey
    Package: oops34.tgz
  2. TinyTalk: Self-like object system with selector [Smalltalk like] dispatch.
    Author: Ken Dickey
    Package: gambitTT.tgz
  3. class.scm: A simple CLOS-like object system written with a balance of performance, usability and runtime heap consumption. Comes bundled with a test suite which shows exemple of how the system can be used. Also can be used easily in a repl with (include "class.scm").
    Author: David St-Hilaire
    Package: (web page/git repo)
  4. Meroon: CLOS-like object system for Scheme.
    Author: Christian Queinnec, now semi-maintained by Brad Lucier. Licensed under the Lisp Lesser General Public Licence. Differs from CLOS in (among many other things) having single inheritance instead of multiple inheritance and a compile-time, not a run-time, MOP. Can be compiled to be relatively fast code. Would benefit from being reorganized in a "layered" style more appropriate for current ideas of Scheme modules.
    Package: MeroonV3-2008Mar01.tar.bz2


  1. mpg123: A wrapper for the libmpg123 mpeg decoding library
    Author: Fred LeMaster
    Package: mpg.tar.gz
  2. OpenAL: A wrapper for the OpenAL audio output library
    Author: Fred LeMaster
    Package: openAL.tar.gz


  1. Octave: A simple plotting interface using octave (2.x) and gnuplot.
    Author: Pierre-Alexandre Fournier
    Package: (web page)
  2. Schemeray: A simple (and as of yet, unoptimized) raytracer
    Author: James Long
    Package: schemeray-0.2.tgz
  3. Opengl FFI: A simple opengl, glu and glut ffi which supports opengl up to version 1.1.
    Author: David St-Hilaire
    Package: Opengl-ffi-r1.tgz
  4. Perlin Noise: A simple opengl demonstration of a sub-optimal 2d Perlin noise implementation.
    Author: David St-Hilaire
    Package: Perlin-noise-2d-r1.tgz
  5. Cairo: Bindings for cairo graphics.
    Author: Marco Benelli
    Package: Cairo-r3.tgz (old: Cairo-r2.tgz)
  6. GLEW: A wrapper for GLEW which provides all OpenGL functionality through version 2.1 and manages access to vendor extensions
    Author: Fred LeMaster
    Package: glew.tar.gz


  1. MySQL FFI: FFI for mysql. Unsure about thread-safety, and needs more work
    Author: Jonathan Arkell
    Package: (svn repository)
  2. MySQL: Socket level client for mysql. Supports dynamic SQL and now prepared statements. Also includes a SQL abstraction layer. This blog post has more information.
    Author: Andrew Whaley
  3. SQLite3: a minimalistic interface to SQLite3.
    Author: Marco Benelli
    Package: SQLite3-r1.tgz
  4. Postgresql: A socket level client for Postgresql
    Author: Francesco Bracchi
    Package: Postgresql-r1.tgz


  1. SSAX-SXML: SSAX-SXML library packaged for Gambit-C
    Author: Kirill Lisovsky (updated by Dominique Boucher)
    Package: (web page) ssax-sxml-gambit-20080402.tgz
  2. Mparser: A combinatorial parser (added expression parser) (parser language rewrite)
    Author: Francesco Bracchi
    Package: Mparser-r3.tgz (old: Mparser-r1.tgz, Mparser-r2.tgz)


  1. Gambit on LLVM: Experimental partial back-end for Gambit using LLVM
    Authors: Arnaud Bergeron and Mathieu Larose
    Package: Gambit-LLVM.tgz
  2. Jss: JavaScriptScheme: a multithreaded Scheme to JavaScript compiler
    Author: Marc Feeley and Catherine Gaudron
    Package: Jss-r2.tgz (old: Jss-r1.tgz)
  3. R6RS on Gambit:Allows R6RS programs to be run on Gambit.
    Maintainer: Arthur Smyles
    Package: (web page)
  4. PICOBIT: Very compact Scheme compiler and virtual machine suitable for microcontrollers.
    Author: Marc Feeley and Vincent St-Amour
    Package: (web page)
  5. Alexpander: A syntax-rules expander with support for DSSSL #!optional #!key and #!rest arguments.
    Author: Marco Benelli
    Package: Alexpander-r1.tgz


  1. ffi-related-modules: various modules dealing with the FFI, and their dependencies (chjmodules, but someone might turn them to using bare namespaces or so; read the Readme file at the below URL)
    Author: Christian Jaeger
    Package: (web page/git repo)


  1. Sort: Provides a simple sorting procedure for lists and vectors. The mergesort algorithm is used.
    Author: Marc Feeley
    Package: Sort-r1.tgz
  2. Bunny Test: A simple unit testing framework.
    Author: Jonathan Arkell
    Package: (svn repository)
  3. GetOpts: A syntactic form (let-opts) to parse command line options
    Author: Marco Benelli
    Package: GetOpts-r1.tgz
  4. Etags: Script that generates Emacs TAGS files from Scheme files, and recognizes nested definitions.
    Author: Vincent St-Amour
  5. Win-control: Library for controlling Internet Explorer and other Windows applications for scripting or automating testing.
    Author: Andrew Whaley
  6. repltest: Small example which embeds a remotely accessible REPL into a standalone C program.
    Package: Repltest-20100604.tgz‎
  7. objc-utility-macros: Utility macros to help wrap Objective-C methods.
    Author: Jeffrey T. Read
    Package: objc-utility-macros.scm

Full Applications

  1. Space-Invaders: Space Invaders classical arcade game remake in scheme over either glut or SDL.
    Author: David St-Hilaire
    Package: Space-invaders-src-v1.0.tgz
  2. Web Server: a web server with sessions cookies and server pages.
    Author: Francesco Bracchi
    Package: WebServer-r2.tgz (old: WebServer-r1.tgz)
  3. GUI-Toy: Simple Direct Media Layer prototype code with examples in the raw and using TinyTalk and Oops object systems.
    Author: Ken Dickey
    Package: GUI-Toy.tgz
  4. Intelligent WTF: Intelligent acronym decoder based on wtf from BSD Games
    Author: Joel J. Adamson
    Package: (web page)
  5. Genetic Canvas: A polygon-based image renderer using genetic algorithms.
    Author: James Long