Skip to content

Spheres - A set of tools and libraries for practical Scheme. Multiplatform and Mobile.

License

Notifications You must be signed in to change notification settings

udem-dlteam/spheres

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spheres

A set of tools and libraries for real-life Scheme. Multiplatform and mobile.

Join the chat at https://gitter.im/fourthbit/spheres

Installation

The libraries are implemented in R7RS style. Support and installation depends on the Scheme implementation used. Spheres is mainly developed for Gambit, but nothing stops other implementations to use and adapt these libraries.

Installation for Gambit Scheme

Gambit Version Build Status

In order to use these libraries, we need to provide Gambit with R7RS libraries and syntax-rules support. See below for current limitations. The following process will set up Gambit for use with Spheres in Linux, OSX or Windows:

  1. Compile the syntax expander: go to /spheres/gambit and run ./compile-scsc.sh. This file provides improved syntax-rules support for Gambit.
  2. Copy the .gambini file to your HOME directory. This is Gambit's initialization file, and it is configured to load the syntax expander and a minimal R7RS layer.
  3. (optional) Copy the spheres/ directory into your Gambit's installation library directory (i.e. /usr/local/Gambit/lib).
  4. Update all .gambini paths to where your Spheres files are located (either Gambit's library directory, if you copied the files there, or any other path where you choose to leave Spheres' files).

Basic usage

In order to make a library available within the REPL, the extended load form is used:

(load (spheres/core base))

Spheres also brings automated compilation and multiplatform/mobile build scripts. In order to make this functionality available, you need to install Ssrun. Once you do this, you can download the project template if you want to create a project based on Spheres. Additionally, with Ssrun, you can call the compilation tasks within the REPL:

(load (spheres/core base) compile: #t)

Notes

Spheres supports syntax-rules and define-macro syntax. While Gambit will natively support R7RS in the future, at the moment we provide asubset of the functionality for practical usage:

  • Macro systems supported: syntax-rules and define-macro (syntax-case is also supported, but not used).
  • Procedures in each library are within their own namespace (imports/exports are handled).
  • Not supported from R7RS: except, only, rename, include-ci, include-library-declarations. Syntax is always in the global namespace (imports/exports and not handled).

Contribute

Please, write to the project contributors if you are interested. Any help is welcome!

About

Spheres - A set of tools and libraries for practical Scheme. Multiplatform and Mobile.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scheme 79.2%
  • Pascal 20.3%
  • Objective-C 0.2%
  • GAP 0.2%
  • Erlang 0.1%
  • KiCad Layout 0.0%