From dev-return-4565-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Sun Apr 8 20:46:31 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id AEC13180638 for ; Sun, 8 Apr 2018 20:46:30 +0200 (CEST) Received: (qmail 72231 invoked by uid 500); 8 Apr 2018 18:46:29 -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 72217 invoked by uid 99); 8 Apr 2018 18:46:29 -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; Sun, 08 Apr 2018 18:46:29 +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 AA6AE1A1728 for ; Sun, 8 Apr 2018 18:46:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.898 X-Spam-Level: * X-Spam-Status: No, score=1.898 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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 SShxVbXGpbO4 for ; Sun, 8 Apr 2018 18:46:27 +0000 (UTC) Received: from mail-io0-f179.google.com (mail-io0-f179.google.com [209.85.223.179]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 73DF05F18F for ; Sun, 8 Apr 2018 18:46:27 +0000 (UTC) Received: by mail-io0-f179.google.com with SMTP id q84so7113796iod.10 for ; Sun, 08 Apr 2018 11:46:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=GSgVOdv6n86fnb9keiedxd69Ts5RX1IYA8s4/HPZ9YQ=; b=viGeZc+6dNYP3M/WNXo71Asuy3kSeqWgUZCx71+e/Nz3QW27cLvHZE+4Wsk9ivAHXF gO35tCDvaYE02HjOgym13PCZUzEWDFRB3Y4lBFr0ZhcjHzjLSXd/lzlxDprMv+joYVdW Rx81p1rBxNbuu2YLZ1uHU7LBqQ4b078LeTnCuTCwwWTamr8L0FHLchcQVulDtYymNltI PDx1C7ZntyZKa4ooLFAMYzGkK/R8WvNMpr2S9lj4q8Ha8xc5PeOifgIlBnUoTrhvB16i sirzgeEQPRO4y356HqAsjKgIHD2TckTyYGJaBl/OrLDESqKQI2XhoWLuIdLPa9u06dlg Duig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=GSgVOdv6n86fnb9keiedxd69Ts5RX1IYA8s4/HPZ9YQ=; b=qfpl3oLXK7WG1sC74aSK+C/wmNPU0F3J3eIeyXdI27UNfJNyVf8jTl78v8n5LhcBoQ jF3KZv0lsrqB/2bh47fcL4sH/xyb4OBHKRPgvdbcGDVYAbTMNbLScw/kOMBTeivQtZkn QXDm7u7k44ldwf4WH8bg98GiqsYJmYP1DUPKLxWSU99N3gMoQ4BRvLGR5hRZ49pUyvBt Lti/akREEwKvGbG9Uz8EIACNrGXIcD2w33LZ3mewMYm0OgTqtBcWdWg2/eIrs2EE4KIE 3hiw47MkBRbZBCWnae3t9Fe6eoQ5Vry6WHBL1M4dDlHkX7OhhHfSB5W0I1p4IOwnw2UG cMHg== X-Gm-Message-State: ALQs6tABkUu/+y9XyL1aFWiz6jqJdXRyzCysmJ/cR+y5nFuhRaqMA5iI ISxXSjhBS+2SZwL17+qCB7lVFCSoZFlH0pP7K6YhIw== X-Google-Smtp-Source: AIpwx481erfMbLtDRHcyYBDzSgORmqiyfbzLHPHB5St+beYjxe18QiXWHCPkM8fc3jfcVYDRPttyAn9//ATBIwbFv7o= X-Received: by 10.107.173.225 with SMTP id m94mr33266272ioo.32.1523213180899; Sun, 08 Apr 2018 11:46:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.176.202 with HTTP; Sun, 8 Apr 2018 11:46:20 -0700 (PDT) In-Reply-To: <1523208689784-0.post@n5.nabble.com> References: <1523152702836-0.post@n5.nabble.com> <1523208689784-0.post@n5.nabble.com> From: =?UTF-8?Q?C=C3=A9dric_Champeau?= Date: Sun, 8 Apr 2018 20:46:20 +0200 Message-ID: Subject: Re: About the Phoenix plan for Groovy To: dev@groovy.apache.org Content-Type: multipart/alternative; boundary="001a11448e5490946105695ab4d0" --001a11448e5490946105695ab4d0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2018-04-08 19:31 GMT+02:00 Daniel.Sun : > Hi C=C3=A9dric, > > At first we all admit your effort on STC is great :-) > > I usually try to use STC for better performance, but sadly I have = to > turn to dynamic mode sometimes. Recently I wrote a hadoop example in Java= , > then copied the Java code as Groovy code and tried to compile with STC, > failed to compile because of generics issue. So I believe STC had been > tested for many scenario as you said, but it had not been tested with the > code in some real projects, e.g. Spring, Hibernate, etc. The Phoenix plan > tries to find a way to polish the STC and not to re-invent the wheels. > It was tested on real code too, I can assure you :) > > Finally we wish you could set aside some time to fix some existing > bugs, some of which are hard for us to fix but may be not that hard for y= ou > - the creator of STC ;-) > Honestly I don't have much time to work on Groovy. And if I had, the generics STC bugs would be the last thing I'd like to get my hands into. The ClassNode infrastructure was retrofitted to introduce generics back in 1.5, but since it was for dynamic world, it wasn't really designed for what we do now. So, every bugfix you make is likely to introduce another bug somewhere else. That makes the process very painful. More so when type inference enters the game. Jochen and I spent a lot of time writing, rewriting helper methods to make this easier, but it's just too hard for the little time I can afford. off topic: why is incubator always in CC of the emails you write? Looks like your email client is misconfigured somehow. --001a11448e5490946105695ab4d0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


2018-04-08 19:31 GMT+02:00 Daniel.Sun <sunlan@apache.org>:
Hi C=C3=A9dric,

=C2=A0 =C2=A0 =C2=A0 =C2=A0At first we all admit your effort on STC is grea= t :-)

=C2=A0 =C2=A0 =C2=A0 =C2=A0I usually try to use STC for better performance,= but sadly I have to
turn to dynamic mode sometimes. Recently I wrote a hadoop example in Java,<= br> then copied the Java code as Groovy code and tried to compile with STC,
failed to compile because of generics issue. So I believe STC had been
tested for many scenario as you said, but it had not been tested with the code in some real projects, e.g. Spring, Hibernate, etc. The Phoenix plan tries to find a way to polish the STC and not to re-invent the wheels.
<= /blockquote>

It was tested on real code too, I can assur= e you :)

=C2=A0 =C2=A0 =C2=A0 =C2=A0Finally we wish you could set aside some time to= fix some existing
bugs, some of which are hard for us to fix but may be not that hard for you=
- the creator of STC ;-)

Honestly I don= 't have much time to work on Groovy. And if I had, the generics STC bug= s would be the last thing I'd like to get my hands into. The ClassNode = infrastructure was retrofitted to introduce generics back in 1.5, but since= it was for dynamic world, it wasn't really designed for what we do now= . So, every bugfix you make is likely to introduce another bug somewhere el= se. That makes the process very painful. More so when type inference enters= the game. Jochen and I spent a lot of time writing, rewriting helper metho= ds to make this easier, but it's just too hard for the little time I ca= n afford.

off topic: why is incubator always in CC of the= emails you write? Looks like your email client is misconfigured somehow.

--001a11448e5490946105695ab4d0--