Git Product home page Git Product logo

spheres's Introduction

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

Visit the project web page.

Installation

  1. Compile the syntax expander: go to /spheres/gambit/scsc and run ./compile
  2. Copy the .gambcini file to your HOME directory. This is Gambit's initialization file.
  3. (optional) Copy the spheres/ directory into your Gambit's installation library directory (i.e. /usr/local/Gambit/lib)
  4. Update all .gambcini 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).

Spheres requires the Gambit Scheme compiler. However, some libraries in Spheres are already compatible with r7rs implementations such as Chibi.

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. The implementation is an R7RS Library Syntax subset. Current support is practical:

  • 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!

spheres's People

Contributors

alvatar avatar

Watchers

James Cloos avatar Daniel Sanchez 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.