You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Chris Dean (JIRA)" <ji...@apache.org> on 2010/08/07 02:08:17 UTC

[jira] Updated: (BUILDR-259) Support for the Clojure AOT Compiler

     [ https://issues.apache.org/jira/browse/BUILDR-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Dean updated BUILDR-259:
------------------------------

    Attachment: clojure-buildr-21967485.patch

This is a patch to add clojure support to buildr.   This adds:

- Compiling clojure
- Running clojure tests
- A clojure shell/repl
- A running swank server (Swank is part of an Emacs dev environment)
- Some docs


> Support for the Clojure AOT Compiler
> ------------------------------------
>
>                 Key: BUILDR-259
>                 URL: https://issues.apache.org/jira/browse/BUILDR-259
>             Project: Buildr
>          Issue Type: New Feature
>          Components: Compilers
>    Affects Versions: 1.4
>            Reporter: Daniel Spiewak
>            Assignee: Daniel Spiewak
>            Priority: Minor
>         Attachments: clojure-buildr-21967485.patch
>
>
> Clojure is a JVM-hosted Lisp which strongly emphasizes interop with Java.  As with most Lisps, Clojure is designed to run primarily as an interpreter.  However, it is possible to use the Clojure ahead-of-time compiler to produce .class files which can then be separated from the original source.
> I think it would be very nice if Buildr had some support for Clojure as a buildable language.  At the moment, any Clojure-using projects have to resort to things like storing the .clj scripts in the src/main/resources directory, etc.  This works, but it's ugly and it doesn't mesh well with AOT compilation.  A better solution is to allow the storage of scripts in the src/main/clojure directory.  These scripts would then be compiled by default to target/classes.  It should also be possible to specify a finite set of libraries to compile, in which case the remaining (uncompiled) scripts should be copied to the appropriate sub-directory of target/classes.
> An essentially-functional implementation of this feature is available at git://github.com/djspiewak/buildr.git / clojure.  The / master branch also contains support for the clojure shell in context with this new language support.  Specs and documentation are presently absent, but could easily be added.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.