🌀 A brand-new compiler that allows practical application development using R7RS Scheme. We provide modern features and a stable system capable of generating fast native binaries.
Find a file
2016-02-02 23:24:30 -05:00
debug Moving around test files 2016-02-02 23:10:05 -05:00
docs Revised 2016-01-28 23:02:46 -05:00
examples Cleanup 2016-01-16 23:47:31 -05:00
include/cyclone Added square and expt as well as a macro to unbox numbers. 2016-01-28 22:54:33 -05:00
scheme Issue #40 - Splice begin definitions into enclosing body 2016-02-02 23:01:56 -05:00
srfi Include scheme base 2016-02-02 23:09:34 -05:00
test-lib New test file 2015-08-14 01:48:14 -04:00
tests Added test cases 2015-08-25 22:01:06 -04:00
.gitignore Initial file 2015-02-21 22:25:06 -05:00
cyclone.scm Replacing begin 2016-01-30 22:35:50 -05:00
gc-notes.txt Removed finished 2016-01-17 22:54:20 -05:00
gc.c Added function comment for gc_mark_gray2 2016-01-20 22:44:30 -05:00
generate-c.scm Added thread data argument 2015-11-02 22:44:32 -05:00
icyc.scm Added inexact module 2016-01-22 21:34:19 -05:00
kons.scm Moving around test files 2016-02-02 23:10:05 -05:00
LICENSE Updated year 2015-07-22 21:30:15 -04:00
Makefile Added srfi 9 to bootstrap 2016-02-02 23:24:30 -05:00
Makefile.config Use separate configs for X86 / ARM (pi 2) 2015-12-29 23:14:09 -05:00
Makefile.config.raspberry-pi-2 Use separate configs for X86 / ARM (pi 2) 2015-12-29 23:14:09 -05:00
README.md Link to GC paper 2016-01-29 23:09:26 -05:00
runtime.c Correct format specifier for float 2016-01-24 21:41:35 -05:00
sync.sh Initial file 2016-01-30 22:35:20 -05:00
TODO Added notes 2015-10-13 22:32:17 -04:00

cyclone-scheme

Cyclone is an experimental Scheme-to-C compiler that uses a variant of the Cheney on the MTA technique to implement full tail recursion, continuations, and generational garbage collection. Unlike previous Cheney on the MTA compilers, Cyclone also allows execution of multiple native threads. A tracing garbage collector is used to manage the second-generation heap and perform major collections without "stopping the world".

Getting Started

  1. To install Cyclone on your machine for the first time use cyclone-bootstrap to build a set of binaries.

  2. After installing you can run the cyclone command to compile a single Scheme file:

     $ cyclone examples/fac.scm
     $ examples/fac
     3628800
    

    And the icyc command to start an interactive interpreter:

     $ icyc
    
                   :@
                 @@@
               @@@@:
             `@@@@@+
            .@@@+@@@      Cyclone
            @@     @@     An experimental Scheme compiler
           ,@             https://github.com/justinethier/cyclone
           '@
           .@
            @@     #@     (c) 2014 Justin Ethier
            `@@@#@@@.     Version 0.0.1 (Pre-release)
             #@@@@@
             +@@@+
             @@#
           `@.
    
     cyclone> (write 'hello-world)
     hello-world
    

    You can use rlwrap to make the interpreter more friendly, EG: rlwrap icyc.

  3. Read the documentation below for more information on how to use Cyclone.

Documentation

The User Manual covers in detail how to use Cyclone, and provides information and API documentation on the Scheme language features implemented by Cyclone.

Writing the Cyclone Scheme Compiler provides high-level details on how the compiler was written and how it works.

Cyclone's Garbage Collector is documented at a high-level. This document includes details on extending Cheney on the MTA to support multiple stacks and fusing that approach with a tri-color marking collector.

Finally, if you need another resource to start learning the Scheme language please try a classic textbook such as Structure and Interpretation of Computer Programs.

License

Copyright (C) 2014 Justin Ethier.

Cyclone is available under the MIT license.