husk-scheme

Husk is a dialect of Scheme written in Haskell that implements a superset of the R5RS standard. Advanced features are provided including: First-class continuations of unlimited extent Hygienic macros based on syntax-rules Low-level explicit renaming macros Library syntax from the R7RS standard A foreign function interface (FFI) to Haskell Full numeric tower providing support for real, rational, and complex numbers Proper tail recursion and lexical scoping Read-Eval-Print-Loop (REPL) interpreter, with input driven by Haskeline to provide a rich user experience Standard library of Scheme functions, and support for many popular SRFI's Husk may be used as either a stand-alone interpreter or as an extension language within a larger Haskell application. By closely following the R5RS standard, the intent is to develop a Scheme that is as compatible as possible with other R5RS Schemes. Husk is mature enough for use in production, however it is not optimized for performance-critical applications. Scheme is one of two main dialects of Lisp. Scheme follows a minimalist design philosophy: the core language consists of a small number of fundamental forms which may be used to implement other built-in forms. Scheme is an excellent language for writing small, elegant programs, and may also be used to write scripts or embed scripting functionality within a larger application. For documentation and examples, see http://justinethier.github.io/husk-scheme/documentation.html. For detailed information on each release, see http://justinethier.github.io/husk-scheme/news.html. [Index] [Quick Jump] Include debug trace statements in compiled code. Haskell Foreign Function Interface (FFI). Allows husk to import and call into Haskell code directly from Scheme code. Turn off FFI to decrease build times and minimize executable sizes R7RS-style libraries. Turn off pointers to increase performance at the expense of severely restricting the functionality of mutable variables. Setting this flag to false will revert back to the behavior from older versions of husk. Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info Package maintainers For package maintainers and hackage trustees Candidates Husk is a dialect of Scheme written in Haskell that implements a superset of the R5RS standard and a large portion of the R7RS-small language. Advanced features are provided including continuations, hygienic macros, libraries, and a full numeric tower. Husk may be used as either a stand-alone interpreter or as an extension language within a larger Haskell application. By closely following the R5RS standard, the intent is to develop a Scheme that is as compatible as possible with other R5RS Schemes. Husk is mature enough for use in production applications, however it is not optimized for performance-critical applications. Scheme is one of two main dialects of Lisp. Scheme follows a minimalist design philosophy: the core language consists of a small number of fundamental forms which may be used to implement other built-in forms. Scheme is an excellent language for writing small, elegant programs, and may also be used to write scripts or embed scripting functionality within a larger application. More information is available on the husk website. Prerequisites: You will need the Haskell Platform if you don't already have a recent copy installed. Install Husk using cabal: Adjust your PATH: Before running Husk you may also need to add the cabal executable directory to your path. On Linux this is ~/.cabal/bin. Now you are ready to start up the interpreter: Husk has been tested on Windows, Linux, and FreeBSD. The online user manual provides an overview of the Scheme language as implemented by Husk, including: Directory Structure Copyright (C) 2010 Justin Ethier Husk scheme is available under the MIT license. The interpreter is based on code from the book Write Yourself a Scheme in 48 Hours written by Jonathan Tang and hosted / maintained by Wikibooks.


Keywords
language, library, mit, program, Propose Tags, http://justinethier.github.io/husk-scheme/documentation.html, http://justinethier.github.io/husk-scheme/news.html, Skip to Readme, Index, Quick Jump, Language.Scheme.Compiler, Language.Scheme.Compiler.Libraries, Language.Scheme.Compiler.Types, Language.Scheme.Core, Language.Scheme.Environments, Language.Scheme.Libraries, Language.Scheme.Macro, Language.Scheme.Macro.ExplicitRenaming, Language.Scheme.Macro.Matches, Language.Scheme.Numerical, Language.Scheme.Parser, Language.Scheme.Plugins.CPUTime, Language.Scheme.Primitives, Language.Scheme.Types, Language.Scheme.Util, Language.Scheme.Variables, More info, husk-scheme-3.20.tar.gz, browse, Package description, Package maintainers, JustinEthier, edit package information , 3.13, 3.14, 3.19.3, R5RS standard, R7RS-small, husk website, Haskell Platform, cabal, user manual, getting started, Instructions, Haskell API, Scheme API, gh-pages, examples, extensions, hs-src, lib, scripts, tests, Justin Ethier, MIT license, Write Yourself a Scheme in 48 Hours, haskell, scheme
License
MIT
Install
cabal install husk-scheme-3.5.2

Documentation

husk-scheme

Husk is a dialect of Scheme written in Haskell that implements a superset of the R5RS standard and a large portion of the R7RS-small language. Advanced features are provided including continuations, hygienic macros, libraries, and a full numeric tower.

Husk may be used as either a stand-alone interpreter or as an extension language within a larger Haskell application. By closely following the R5RS standard, the intent is to develop a Scheme that is as compatible as possible with other R5RS Schemes. Husk is mature enough for use in production applications, however it is not optimized for performance-critical applications.

Scheme is one of two main dialects of Lisp. Scheme follows a minimalist design philosophy: the core language consists of a small number of fundamental forms which may be used to implement other built-in forms. Scheme is an excellent language for writing small, elegant programs, and may also be used to write scripts or embed scripting functionality within a larger application.

More information is available on the husk website.

Installation

  1. Prerequisites: You will need the Haskell Platform if you don't already have a recent copy installed.

  2. Install Husk using cabal:

     cabal update
     cabal install husk-scheme
    
  3. Adjust your PATH: Before running Husk you may also need to add the cabal executable directory to your path. On Linux this is ~/.cabal/bin.

  4. Now you are ready to start up the interpreter:

     justin@my-pc$ huski
       _               _        __                 _                          
      | |             | |       \\\               | |                         
      | |__  _   _ ___| | __     \\\      ___  ___| |__   ___ _ __ ___   ___  
      | '_ \| | | / __| |/ /    //\\\    / __|/ __| '_ \ / _ \ '_ ` _ \ / _ \ 
      | | | | |_| \__ \   <    /// \\\   \__ \ (__| | | |  __/ | | | | |  __/ 
      |_| |_|\__,_|___/_|\_\  ///   \\\  |___/\___|_| |_|\___|_| |_| |_|\___| 
                                                                          
      http://justinethier.github.com/husk-scheme                              
      (c) 2010-2014 Justin Ethier                                             
      Version 3.18 
                                                                          
     huski> (define (hello) 'world)
     (lambda () ...)
     huski> (hello)
     world
    

Husk has been tested on Windows, Linux, and FreeBSD.

Documentation

The online user manual provides an overview of the Scheme language as implemented by Husk, including:

Directory Structure

  • docs - Documentation has been moved from here to the gh-pages branch.
  • examples - Example programs, mostly written in Scheme.
  • extensions - Haskell-based extensions to Husk.
  • hs-src - Haskell source code for Husk.
  • lib - Library portions of Husk written in Scheme.
  • scripts - Build scripts for Husk and a basic Emacs integration script.
  • tests - Functional tests for Husk. These can be run automatically by using make test from the main Husk directory.

License

Copyright (C) 2010 Justin Ethier

Husk scheme is available under the MIT license.

The interpreter is based on code from the book Write Yourself a Scheme in 48 Hours written by Jonathan Tang and hosted / maintained by Wikibooks.