Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 63871200C1B for ; Tue, 14 Feb 2017 08:27:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 62164160B5F; Tue, 14 Feb 2017 07:27:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AD0D3160B52 for ; Tue, 14 Feb 2017 08:27:46 +0100 (CET) Received: (qmail 95371 invoked by uid 500); 14 Feb 2017 07:27:46 -0000 Mailing-List: contact commits-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@buildr.apache.org Delivered-To: mailing list commits@buildr.apache.org Received: (qmail 95362 invoked by uid 500); 14 Feb 2017 07:27:45 -0000 Delivered-To: apmail-incubator-buildr-commits@incubator.apache.org Received: (qmail 95359 invoked by uid 99); 14 Feb 2017 07:27:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2017 07:27:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 666CB1A0151 for ; Tue, 14 Feb 2017 07:27:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.998 X-Spam-Level: X-Spam-Status: No, score=-1.998 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id BTINqcQIRiFB for ; Tue, 14 Feb 2017 07:27:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 038B15F659 for ; Tue, 14 Feb 2017 07:27:44 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 39AE2E0657 for ; Tue, 14 Feb 2017 07:27:43 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id E492721D65 for ; Tue, 14 Feb 2017 07:27:42 +0000 (UTC) Date: Tue, 14 Feb 2017 07:27:42 +0000 (UTC) From: "Antoine Toulme (JIRA)" To: buildr-commits@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (BUILDR-259) Support for the Clojure AOT Compiler MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 14 Feb 2017 07:27:47 -0000 [ https://issues.apache.org/jira/browse/BUILDR-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Antoine Toulme reassigned BUILDR-259: ------------------------------------- Assignee: Antoine Toulme (was: Alex Boisvert) > 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: Antoine Toulme > Priority: Minor > Labels: patch > Fix For: Wish List > > 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 was sent by Atlassian JIRA (v6.3.15#6346)