🌀 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
Justin Ethier a889d6fb6f Refactoring
Renamed cyc_start_thread to cyc_start_trampoline to be more clear about what the function actually does.
2016-01-03 22:56:34 -05:00
debug Initial file 2015-02-21 22:15:18 -05:00
docs Adding sleep function 2015-12-19 00:08:36 -05:00
examples WIP 2015-08-12 22:51:20 -04:00
include/cyclone Refactoring 2016-01-03 22:56:34 -05:00
scheme Refactoring 2016-01-03 22:56:34 -05:00
srfi Mutex stubs 2016-01-02 22:13:45 -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 Use ck hashset to speed up our symbol table 2015-12-11 22:27:21 -05:00
gc-notes.txt Cleanup 2016-01-03 22:17:47 -05:00
gc.c More cleanup 2016-01-03 22:30:30 -05:00
generate-c.scm Added thread data argument 2015-11-02 22:44:32 -05:00
icyc.scm Self-hosted version compiles now, but is very broken... 2015-07-01 22:58:36 -04:00
LICENSE Updated year 2015-07-22 21:30:15 -04:00
Makefile Added cflags for building on raspberry pi 2015-12-30 03:54:31 +00: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 Added second GC paper 2015-12-10 02:10:21 -05:00
runtime.c Refactoring 2016-01-03 22:56:34 -05:00
test-ck.c Prevent being overwritten by test.scm compilation 2015-12-24 02:21:48 -05:00
test.scm Finalize mutex prior to sweeping 2016-01-03 21:59:09 -05:00
test2.scm Added ER renaming example 2015-08-26 19:15:45 -04:00
TODO Added notes 2015-10-13 22:32:17 -04:00

cyclone-scheme

Cyclone is an experimental Scheme-to-C compiler that uses the Cheney on the MTA technique to implement full tail recursion, continuations, and generational garbage collection.

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. If you need help learning the Scheme language try a classic textbook such as Structure and Interpretation of Computer Programs.

    Also, check out the features page for a list of language features currently implemented.

Documentation

Features is a list of the language features implemented so far. For more information about the Scheme language implemented by Cyclone, see the R7RS Scheme Specification.

The Development Guide contains instructions for hacking on Cyclone.

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

References

License

Copyright (C) 2014 Justin Ethier.

Cyclone is available under the MIT license.