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 A335F200BC9 for ; Sat, 26 Nov 2016 10:23:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A1C1F160B14; Sat, 26 Nov 2016 09:23:01 +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 EB360160B00 for ; Sat, 26 Nov 2016 10:23:00 +0100 (CET) Received: (qmail 76496 invoked by uid 500); 26 Nov 2016 09:23:00 -0000 Mailing-List: contact dev-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list dev@groovy.apache.org Received: (qmail 76483 invoked by uid 99); 26 Nov 2016 09:22:59 -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; Sat, 26 Nov 2016 09:22:59 +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 6A6EE1A069C for ; Sat, 26 Nov 2016 09:22:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.148 X-Spam-Level: ** X-Spam-Status: No, score=2.148 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ZVWVPb67S4yJ for ; Sat, 26 Nov 2016 09:22:58 +0000 (UTC) Received: from mail-ua0-f175.google.com (mail-ua0-f175.google.com [209.85.217.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 460D75FC51 for ; Sat, 26 Nov 2016 09:22:58 +0000 (UTC) Received: by mail-ua0-f175.google.com with SMTP id b35so97839742uaa.3 for ; Sat, 26 Nov 2016 01:22:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to; bh=0DmquZRQAOQBpu60pqrXfZjT8DzVM0S4/REDSjgQbO8=; b=KFjxdOt+iAbZZx7xnC/Be5I2VN+CjfhucnoQ6tZQ6ahP8Ek5Uze7/ElCkr3ZWV+rw3 TVeFDMCCbrvJOVNex888l/3oq3YDZ4NvrBzIscPdYlNof4xBRc3ZWKvIw73viJYOFM+R QKtQ+MW31kXYyoIqm7g3MjeFcSOSouUWO2HOJGYr01iRhrWxqI5mVdVSACDbRv+rPPBY BlU2HfonKbBd0pMazSSDU5EFlExRiRaB5uoBqDegb7VRE5swOCV1IX1x7KygCk2H1PQg b0hmUVejNYJTMgjo2NamTNYuVts90136nU+Iq4qaxasfuobv+fLp7UA1iqc2HSgm58zx RfiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=0DmquZRQAOQBpu60pqrXfZjT8DzVM0S4/REDSjgQbO8=; b=lbd//eN468Fy4hQR9QvQdKT2VZedvf1Cz9+BKHkr8eY054GiiqhLrYSBmZaPOonR1o seiNTGGKWqLJ6kkehQtAvYgzUpGJp5KoyJCMZKdUJPO/6AcWqBH/GOgLnXKd1awrOwtC 6wB4dZirTARQQGue3UwiZDbp+sQpnRrHzdtoiOiYbiYvCWC86XpiMj2ULvbevn6KtHeV CkZUbIXkyG2YDwnjZnAwVgom41aUQReK1h8STthTNpWP9u56fZvn2G6wV8afFblCeuxF 96C9HLraAycyHXkOhT4Xi+Bltx5mzbequK2LQrTMY3/Cpr/SQh05F4wC4t4c5Xr+jwiF U4DA== X-Gm-Message-State: AKaTC01Jtpm8ZQWSMibC7Mr4cH3lNfc8d5SZYrllycpH1sG85c/df3zSYgsrtmHBIipMFixwMP/FJd0Ez1C1vw== X-Received: by 10.176.0.147 with SMTP id 19mr6986364uaj.20.1480152171531; Sat, 26 Nov 2016 01:22:51 -0800 (PST) MIME-Version: 1.0 Sender: rykes42@gmail.com Received: by 10.159.39.195 with HTTP; Sat, 26 Nov 2016 01:22:51 -0800 (PST) From: =?UTF-8?Q?Tatai_M=C3=A1rton?= Date: Sat, 26 Nov 2016 10:22:51 +0100 X-Google-Sender-Auth: _jyIfo2j9NOkNKAEQ6wZqzf-AMA Message-ID: Subject: Separating the Groovy compiler and runtime? To: dev@groovy.apache.org Content-Type: multipart/alternative; boundary=001a113dda6065d201054230c848 archived-at: Sat, 26 Nov 2016 09:23:01 -0000 --001a113dda6065d201054230c848 Content-Type: text/plain; charset=UTF-8 Hello! I am trying to understand the Groovy language, and something keeps bugging me. I thought I'd ask a question to maybe help my investigation along. I was surprised to see that the "lightest" distribution of Groovy still contains an embedded version of antlr, asm (I suppose it's embedded to ensure these classes are not overridden). I can see that this is necessary to be able to compile and add Groovy code to the JVM at runtime. My question is: Is it possible to separate the compiler from the other classes which are responsible for running the compiled Groovy code? In my hypothetical scenario there would be a groovy-runtime jar, and a groovy-compiler jar, and only if my application needed dynamic compilation of Groovy scripts would I include the groovy-compiler. The groovy-runtime would be sufficient to run already compiled Groovy programs. I'm guessing the runtime system must have some inherent dependency on the compiler that I have not figured out yet. Thank you very much for your help Marton --001a113dda6065d201054230c848 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello!

I am trying to understand the Gr= oovy language, and something keeps bugging me. I thought I'd ask a ques= tion to maybe help my investigation along.

I was s= urprised to see that the "lightest" distribution of Groovy still = contains an embedded version of antlr, asm (I suppose it's embedded to = ensure these classes are not overridden).=C2=A0
I can see that th= is is necessary to be able to compile and add Groovy code to the JVM at run= time.
My question is: Is it possible to separate the compiler fro= m the other classes which are responsible for running the compiled Groovy c= ode?
In my hypothetical scenario there would be a groovy-runtime = jar, and a groovy-compiler jar, and only if my application needed dynamic c= ompilation of Groovy scripts would I include the groovy-compiler. The groov= y-runtime would be sufficient to run already compiled Groovy programs.
I'm guessing the runtime system must have some inherent dependenc= y on the compiler that I have not figured out yet.

Thank you very much for your help
Marton
--001a113dda6065d201054230c848--