The copilot-core package

[Tags:bsd3, library]

Intermediate representation for Copilot.

Copilot is a stream (i.e., infinite lists) domain-specific language (DSL) in Haskell that compiles into embedded C. Copilot contains an interpreter, multiple back-end compilers, and other verification tools. A tutorial, bug reports, and todos are available at https://github.com/leepike/copilot-discussion.

Examples are available at https://github.com/leepike/Copilot/tree/master/Examples.


[Skip to Readme]

Properties

Versions 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 2.1.1, 2.1.2, 2.2.0
Dependencies base (>=4.0 && <5), containers (>=0.4), dlist, mtl (>=2.0), pretty (>=1.0), pretty-ncols (>=0.1), random (>1.0) [details]
License BSD3
Author Lee Pike, Robin Morisset, Alwyn Goodloe, Sebastian Niller, Nis Nordbyop Wegmann
Maintainer leepike@gmail.com
Stability Experimental
Category Language, Embedded
Source repository head: git clone git://github.com/leepike/copilot-core.git
Uploaded Fri Oct 23 20:35:18 UTC 2015 by LeePike
Distributions NixOS:2.2.0
Downloads 1862 total (24 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2015-11-12 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for copilot-core

Readme for copilot-core-2.2.0

Build Status

Overview

copilot-core The core language, which efficiently represents Copilot expressions. The core is only of interest to implementers wishing to add a new back-end to Copilot.

Copilot is a stream (i.e., infinite lists) domain-specific language (DSL) in Haskell that compiles into embedded C. Copilot is similar in spirit to languages like Lustre. Copilot contains an interpreter, multiple back-end compilers, and other verification tools.

Installation

The Copilot library is cabalized. Assuming you have cabal and the GHC compiler installed (the Haskell Platform is the easiest way to obtain these), it should merely be a matter of running

     cabal install copilot-core

However, we strongly recommend you install Copilot, which installs copilot-c99 and other packages automatically. Execute

     cabal install copilot

Resources

To understand our use of Dynamic typing, please consult the following, particularly the last document:

  • Carette, Jacques and Kiselyov, Oleg and Shan, Chung-chieh, "Finally tagless, partially evaluated: Tagless staged interpreters for simpler typed languages", Journal of Functional Programming vol. 19, p. 509-543, 2009.

  • Guillemette, Louis-Julien and Monnier, Stefan, "Type-Safe Code Transformations in Haskell", Electronic Notes in Theoretical Computer Science vol. 174, p. 23-39, 2007.

  • Baars, Arthur I. and Swierstra, S. Doaitse, "Typing dynamic typing", ACM SIGPLAN Notices vol. 37, p. 157-166, 2002

Resources

copilot-core is available on Hackage.

Sources for each package are available on Github as well. Just go to Github and search for the package of interest. Feel free to fork!

Copyright, License

Copilot is distributed with the BSD3 license. The license file contains the BSD3 verbiage.

Thanks

We are grateful for NASA Contract NNL08AD13T to Galois, Inc and the National Institute of Aerospace, which partially supported this work.