Re: GSP generation, Groovy 4 slower than Groovy 3?

2025-09-19 Thread Daniel Sun
1+ times. BTW, Jochen proposed some optimization for current design of indy, the performance for the first runs will be much better when the optimization is done. Cheers, Daniel Sun On 2025/09/16 12:18:41 Gianluca Sartori wrote: > Hi folks, > > we have started porting Dueuno to Gra

Re: [DISCUSS] Minimum version for Groovy 6

2025-08-24 Thread Daniel Sun
trigger performance test for now, it's hard for us to find performance issue in time. Cheers, Daniel Sun On 2025/08/24 10:43:03 Paul King wrote: > Hi folks, > > Now that 5 is out, I created a GROOVY_5_0_X branch, and master has become > Groovy 6. > > We should discuss a mini

Re: [ANNOUNCE] Apache Groovy 5.0.0 Released!

2025-08-23 Thread Daniel Sun
Nice work, Paul. Cheers, Daniel Sun On 2025/08/24 05:10:51 Paul King wrote: > Dear community, > > The Apache Groovy team is pleased to announce version 5.0.0 of Apache Groovy. > Apache Groovy is a multi-faceted programming language for the JVM. > Further details can be fou

Re: [VOTE][LAZY] Create GROOVY_5_0_X branch

2025-08-21 Thread Daniel Sun
+1 Cheers, Daniel Sun On 2025/08/21 02:36:40 Paul King wrote: > Hi folks, > > As we get close to the 5.0.0 release, I plan to create a GROOVY_5_0_X > branch as per our normal conventions and master will become 6.0.0-SNAPSHOT. > > This vote will remain open for 72hrs and sinc

Re: Groovy 5 - Performance / @CompileStatic

2025-08-08 Thread Daniel Sun
Could you please provide some flame graghs to help us address the performance issue you mentioned. Cheers, Daniel Sun On 2025/08/07 19:24:29 MG wrote: > Hi .+, > > since Groovy 5 to my knowledge is the first Groovy which does away with > the old, faster, non-invoke-dynam

Re: [VOTE] Release Apache Groovy 5.0.0-rc-1

2025-08-03 Thread Daniel Sun
I tested some scripts via groovySh and groovyConsole, all work well. +1 (binding) Cheers, Daniel Sun On 2025/08/03 09:54:05 Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 5.0.0-rc-1 release! > > This release inclu

Re: [VOTE] Release Apache Groovy 5.0.0-beta-2 (Take 2)

2025-07-20 Thread Daniel Sun
I tested some scripts in groovyConsole and groovySh, the scripts ran well. +1 (binding) Cheers, Daniel Sun On 2025/07/20 09:44:01 Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 5.0.0-beta-2 release! > > This release includ

Re: [VOTE] Approval of Apache Grails (incubating) 7.0.0-M5 release by Groovy PMC

2025-07-12 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2025/07/12 19:40:25 James Daugherty wrote: > Hi Everyone, > The Apache Grails community has voted to approve the release of Apache > Grails 7.0.0-M5. > > As the incubation host, we now kindly request the Groovy PMC to review & > approve o

Re: [VOTE] Release Apache Grails (incubating) 7.0.0-M4

2025-06-08 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2025/06/07 09:24:06 James Daugherty wrote: > Hi Everyone, > > > The Apache Grails podling has voted to approve the release of Apache Grails > (incubating) 7.0.0-M4. Please note that we "restaged" this release and > redid the vot

Re: [VOTE] Release Apache Groovy 4.0.27

2025-05-24 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2025/05/24 03:05:24 Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 4.0.27 release! > > This release includes 32 bug fixes/improvements as outlined in the > changelog: > https://issues.a

Re: [VOTE] Release Apache Groovy 4.0.27

2025-05-24 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2025/05/24 03:05:24 Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 4.0.27 release! > > This release includes 32 bug fixes/improvements as outlined in the > changelog: > https://issues.a

Re: [VOTE] Release Apache Groovy 5.0.0-beta-1

2025-05-24 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2025/05/24 00:10:38 Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 5.0.0-beta-1 release! > > This release includes 87 bug fixes/improvements as outlined in the > changelog: > https://i

Re: Next releases

2025-05-11 Thread Daniel Sun
Groovy 5 is much like Java 6 and Java 7, it does not introduce many new language features, but existing features have been polished a lot. +1 for releasing Groovy 5 beta. Cheers, Daniel Sun On 2025/05/09 13:24:56 Paul King wrote: > Hi folks, > > We are due for some more releases sh

Re: Type for GroovyClassLoader#sourceCache

2025-01-24 Thread Daniel Sun
AFAIR, deadlock is due to that StampedLock is not re-entrant. We can use ReentrantReadWriteLock to avoid deadlock. Cheers, Daniel Sun On 2025/01/24 04:48:48 Paul King wrote: > Hi folks, I am wondering whether the type for sourceCache in > GroovyClassLoader should be hard-coded as the co

Re: [VOTE] Grails Project proposes to join the ASF

2025-01-21 Thread Daniel Sun
+1 Cheers, Daniel Sun On 2025/01/21 20:44:04 Paul King wrote: > Hi folks, > > The Grails project is keen to join the ASF. The suggested path into > the ASF is for Groovy to act as the incubating project. This means > that we'll have a little work to do to help them become

Re: Using `var` as method return type placeholder

2024-11-21 Thread Daniel Sun
Hi Gianluca, `var` was introduced to Groovy just for the better compatibility of Java. Java just supports declaring variables with `var`, so does Groovy. Cheers, Daniel Sun On 2024/11/21 10:37:23 Gianluca Sartori wrote: > Hello everybody, > > My name is Gianluca Sartori, from It

Re: [VOTE] Bring Geb to ASF as a Groovy subproject

2024-10-23 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2024/10/22 22:10:18 Paul King wrote: > Hi folks, > > The Geb project[1][2] has been a pre-eminent web testing/browser > automation solution in the Groovy ecosystem for some time. Recently it > has become mostly a one-person project with the main

Re: [DISCUSS] Geb code donation to the Groovy project/ASF

2024-10-16 Thread Daniel Sun
+1 for path (3) Cheers, Daniel Sun On 2024/10/15 22:18:45 Paul King wrote: > Hi folks, > > The Geb project[1][2] has been a pre-eminent web testing/browser > automation solution in the Groovy ecosystem for some time. Recently it > has become mostly a one-person project with the

Re: GROOVY-11459 Script hashing algorithm

2024-09-11 Thread Daniel Sun
> An option for Groovy 5 is to make sha256 the default with the ability to swap > back to md5 with a system property. +1 Cheers, Daniel Sun On 2024/09/11 15:22:18 Paul King wrote: > Hi folks, > > We recently had a Jira and PR created around allowing sha256 to be > used inst

Re: [VOTE] EOL for Groovy 2.4.x

2024-07-08 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2024/07/08 06:04:26 Paul King wrote: > Hi folks, > > As per the [DISCUSS] thread[1], there is strong consensus to EOL > 2.4.x. Please vote to formalize this step. > > [1] https://lists.apache.org/thread/ft6l7j331xxnj2sg1c2kz1mwz45mxyn3

Re: [DISCUSS] EOL for Groovy 2.4.x

2024-06-28 Thread Daniel Sun
> I would consider 2.5 for EOL as well Good idea. On 2024/06/28 12:38:54 Jochen Theodorou wrote: > +1 out with it > > I would consider 2.5 for EOL as well > > > Hi folks, > > > > Groovy 2.4.x hasn't been something we have progressed for some time. > > The last "real" commit to the GROOVY_2_4_X

Re: [DISCUSS] EOL for Groovy 2.4.x

2024-06-27 Thread Daniel Sun
+1 Groovy 2.4.x is too old and lacks maintenance. It's strongly recommended to use Groovy 4+. Cheers, Daniel Sun On 2024/06/28 02:08:57 Paul King wrote: > Hi folks, > > Groovy 2.4.x hasn't been something we have progressed for some time. > The last "real" commi

Re: Groovy Poster for Community Over Code EU

2024-05-19 Thread Daniel Sun
Nice work ;-) On 2024/05/14 11:47:40 Paul King wrote: > Hi folks, > > We have a poster that will be displayed at Community Over Code EU in > Bratislava in a few weeks. > > Here is my current draft: > > https://github.com/apache/apachecon-eu/blob/main/static/posters/CoCEU_WhyGroovyToday.pdf > >

RE: [EXT] ClassFile API

2024-01-22 Thread Daniel Sun
There are many bytecode lib in the Java world, an abstract layer for handling bytecode can prevent Groovy from the change of implementation. It is similar to system with data persistence layer which provides unified API to access databases, e.g. MySQL, PostgreSQL, Oracle, etc. If database change

Re: ClassFile API

2024-01-21 Thread Daniel Sun
Hi Jochen, Groovy relies on ASM lib directly, so it would save lots of work if we could have an abstract layer whose API aligns with ASM lib, just change ASM package name(org.objectweb.asm) with Groovy package name, e.g. org.apache.groovy.classfile. Cheers, Daniel Sun On 2024/01/21 13

Re: ClassFile API

2024-01-20 Thread Daniel Sun
for an abstract layer, otherwise use ASM lib. Cheers, Daniel Sun On 2024/01/18 17:19:07 Jochen Theodorou wrote: > Hi all, > > currently the Classfile API (https://openjdk.org/jeps/457) is getting > more and more usage in the newest version of the jdk. Even though the > target is not

Re: [VOTE] Release Apache Groovy 5.0.0-alpha-3

2023-11-27 Thread Daniel Sun
groovyConsole and groovySh work well. +1 (binding) Cheers, Daniel Sun On 2023/11/26 21:54:52 Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 5.0.0-alpha-3 release! > > This release includes 47 bug fixes/improvements as

Re: [VOTE] Release Apache Groovy 4.0.14

2023-08-19 Thread Daniel Sun
I tried some scripts in groovyConsole and groovySh, they all works well. BTW, I like the `list` aggregation function for GINQ very much :-) ```groovy def result = GQ { from n in [1, 2, 3, 4, 5] groupby n % 2 select list(n) as ln } println result ``` +1 (binding) Cheers, Daniel

Re: Upcoming Groovy birthday

2023-06-28 Thread Daniel Sun
midjourney may give a hand;-) Cheers, Daniel Sun On 2023/06/28 06:37:20 Søren Berg Glasius wrote: > Not a bad idea Daniel, and with all the money FoG has, it could even be > financed. > > Med venlig hilsen, > Søren Berg Glasius > > Hedevej 1, Gl. Rye, 8680 Ry >

Re: Upcoming Groovy birthday

2023-06-27 Thread Daniel Sun
As we all know, Java has several logos. How about creating a new Groovy logo based on the original one? Cheers, Daniel Sun On 2023/06/27 22:36:42 Paul King wrote: > Hi folks, > > In just 2 months time, Groovy turns 20. Who has some ideas on how to > celebrate? > > I plan to

Re: [ANNOUNCE] Apache Groovy 4.0.10 Released

2023-03-12 Thread Daniel Sun
Nice work, Paul. Cheers, Daniel Sun On 2023/03/12 10:49:55 Paul King wrote: > Dear community, > > The Apache Groovy team is pleased to announce version 4.0.10 of Apache Groovy. > Apache Groovy is a multi-faceted programming language for the JVM. > Further details can be fou

Re: [VOTE] Release Apache Groovy 4.0.10

2023-03-09 Thread Daniel Sun
groovyConsole and groovySh work well. +1 (binding) Cheers, Daniel Sun On 2023/03/09 07:21:30 Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 4.0.10 release! > > This release includes 18 bug fixes/improvements as outlined in

Re: [VOTE] Release Apache Groovy 4.0.9

2023-02-06 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2023/02/05 23:09:11 Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 4.0.9 release! > > This release includes 8 bug fixes/improvements as outlined in the changelog: > https://issues.apac

Re: [ANNOUNCE] Apache Groovy 4.0.8 Released

2023-01-22 Thread Daniel Sun
Nice work, Paul. Cheers, Daniel Sun On 2023/01/22 08:45:53 Paul King wrote: > Dear community, > > The Apache Groovy team is pleased to announce version 4.0.8 of Apache Groovy. > Apache Groovy is a multi-faceted programming language for the JVM. > Further details can be fou

Re: [VOTE] Release Apache Groovy 4.0.8

2023-01-20 Thread Daniel Sun
groovySh and groovyConsole work well. +1 (binding) Cheers, Daniel Sun On 2023/01/19 06:23:20 Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 4.0.8 release! > > This release includes 13 bug fixes/improvements as outlined in

RE: [EXT] Next releases

2023-01-12 Thread Daniel Sun
AFAIR, quite a lot of changes are required to support Java 16+, ASM update is just one of the changes. Cheers, Daniel Sun On 2023/01/12 18:51:37 "Milles, Eric (TR Technology) via dev" wrote: > I had a developer comment that Java 19 required an update from Groovy 3 to > Groo

Re: [ANNOUNCE] Apache Groovy 4.0.7 Released

2022-12-24 Thread Daniel Sun
Nice work, Paul. Cheers, Daniel Sun On 2022/12/24 11:47:45 Paul King wrote: > Dear community, > > The Apache Groovy team is pleased to announce version 4.0.7 of Apache Groovy. > Apache Groovy is a multi-faceted programming language for the JVM. > Further details can be fou

Re: [VOTE] Release Apache Groovy 2.5.20

2022-12-20 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2022/12/21 03:43:38 Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 2.5.20 release! > > This release includes 9 bug fixes/improvements as outlined in the changelog: > https://issues.apac

Re: [VOTE] Release Apache Groovy 3.0.14

2022-12-20 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2022/12/21 05:04:05 Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 3.0.14 release! > > This release includes 26 bug fixes/improvements as outlined in the > changelog: > https://issues.a

Re: [VOTE] Release Apache Groovy 4.0.7

2022-12-20 Thread Daniel Sun
groovySh and groovyConsole work well. +1 (binding) Cheers, Daniel Sun On 2022/12/21 06:00:15 Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 4.0.7 release! > > This release includes 68 bug fixes/improvements as outlined in

Re: Possible additional DGM collectEntries variants

2022-12-19 Thread Daniel Sun
+1 Cheers, Daniel Sun On 2022/12/19 11:23:19 Paul King wrote: > Hi folks, > > @mrhaki who many of you may know as the author of "Groovy Goodness" also > covers other topics and recently covered Kotlin's associate method: > > https://blog.jdriven.com/2022/12/

Re: next releases ...

2022-12-15 Thread Daniel Sun
I have no major changes for the branches listed. Cheers, Daniel Sun On 2022/11/21 02:26:29 Paul King wrote: > Hi folks, > > I plan to do some more releases soon (2.5, 3.0 and 4.0 branches). Time > to get in any fixes you need or let me know if there is something we > should

Re: Mastodon presence for Apache Groovy

2022-12-15 Thread Daniel Sun
Great. I created my own Mastodon account just now and waiting for the review result. Cheers, Daniel Sun On 2022/12/15 03:48:36 Paul King wrote: > Hi folks, > > A little while back I created a Mastodon account at: > > https://fosstodon.org/@ApacheGroovy > > At the time,

Re: Groovy 4 parser bug?

2022-09-08 Thread Daniel Sun
Add a space between ? and [ p ? [0] : [1] Cheers, Daniel Sun On 2022/09/08 13:39:21 Christopher Smith wrote: > The parser seems to be interpreting what you mean as a ternary as a > null-safe array index. > > On Thu, Sep 8, 2022, 08:37 o...@ocs.cz wrote: > > > Hi the

Re: performance subproject directions

2022-08-12 Thread Daniel Sun
As the proposal received no objection for a long time, so I merged the PR. Cheers, Daniel Sun On 2022/08/10 12:42:20 Paul King wrote: > I should've included a link to the PR: > https://github.com/apache/groovy/pull/1761 > > On Wed, Aug 10, 2022 at 10:30 PM Paul King wrote:

Re: [VOTE] Release Apache Groovy 4.0.4

2022-07-20 Thread Daniel Sun
groovySh and groovyConsole work well. +1 (binding) Cheers, Daniel Sun On 2022/07/20 06:39:48 Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 4.0.4 release! > > This release includes 42 bug fixes/improvements as outlined i

Re: AST Browser GUI tweaks

2022-07-13 Thread Daniel Sun
LGTM ;-) Cheers, Daniel Sun On 2022/07/08 13:31:51 Paul King wrote: > Hi all, > > Thanks to an excellent contribution[1] from @sandipchitale, the Object > Browser was made more interactive. I have plumbed this into the AST > Browser [2] and it opens up the possibility of s

Re: [DISCUSS] Groovy 5 planning

2022-07-03 Thread Daniel Sun
rtant too, e.g. fixing issues and improving performance. Cheers, Daniel Sun On 2022/06/26 21:55:33 Jochen Theodorou wrote: > On 26.06.22 19:39, Daniel Sun wrote: > > AFAIK, quite a lot of Groovy users are still using Java 8 because their > > company have no plan to upgrade systems t

Re: [DISCUSS] Groovy 5 planning

2022-06-26 Thread Daniel Sun
AFAIK, quite a lot of Groovy users are still using Java 8 because their company have no plan to upgrade systems to run on Java 9+. It is especially common for bank systems I have been working on for years, so it's better to continue supporting Java 8 in Groovy 5 releases. Cheers, Danie

Re: [VOTE] Release Apache Groovy 4.0.3 (take 2)

2022-06-01 Thread Daniel Sun
groovySh and groovyConsole work well. +1 (binding) Cheers, Daniel Sun On 2022/06/01 10:48:49 Paul King wrote: > [This fixes the groovysh issue Daniel found.] > > Dear development community, > > I am happy to start the VOTE thread for a Groovy 4.0.3 release! > > This re

Re: Groovy 3 -> 4 Performance Degradation Sample

2022-05-07 Thread Daniel Sun
s we can see, the de-opt storm will result in very very poor performance. In order to solve the de-opt storm issue, the threshold for optimization is introduced and its default value is 10,000. Cheers, Daniel Sun On 2022/05/06 23:55:19 MG wrote: > Hi Groovy devs, > > I have finally

Re: Groovy 4.0.0-rc-2 release

2021-12-21 Thread Daniel Sun
No more changes for Groovy 4.0.0 RC-2. Cheers, Daniel Sun On 2021/12/21 05:51:56 Paul King wrote: > Hi folks, > > I am keen to get rc-2 out. > Anything that folks need sorted for that release? > > Cheers, Paul. >

Re: [VOTE] Release Apache Groovy 4.0.0-rc-1

2021-11-27 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2021/11/27 01:13:24 Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 4.0.0-rc-1 release! > > This release includes 26 bug fixes/improvements as outlined in the changelog: > https://issu

Re: Re: [EXT] Re: Record enhancements

2021-11-10 Thread Daniel Sun
s changed slightly - perhaps we can re-look whether removing that limitation is easier now. Too busy recently... I will try to find some spare time to look into the issue. Cheers, Daniel Sun On 2021/11/10 08:22:35 Paul King wrote: > Comments inline. > > On Wed, Nov 10, 2021 at 1:17 AM

Re: [VOTE] Release Apache Groovy 4.0.0-beta-2

2021-11-05 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2021/11/06 00:29:51 Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 4.0.0-beta-2 release! > > This release includes 104 bug fixes/improvements as outlined in the changelog: > https://issu

Re: Re: Groovy 4.0.0-beta-1 Performance

2021-10-26 Thread Daniel Sun
Cheers, Daniel Sun On 2021/10/24 17:41:22 MG wrote: > Hi Daniel, > > I have updated the ticket with some VisalVM memory sampling screenshots: > For this short test Groovy 4 uses more than 13 million objects of type > java.util.concurrent.atomic.AtomicReference, together wi

Re: Groovy 4.0.0-beta-1 Performance

2021-10-24 Thread Daniel Sun
JVM option "groovy.indy.optimize.threshold", e.g. `-Dgroovy.indy.optimize.threshold=100` Cheers, Daniel Sun On 2021/10/14 11:48:47, Jochen Theodorou wrote: > On 14.10.21 01:24, MG wrote: > [...] > > Alas performance-wise what we surprisingly found was, that the > > performance of our main

Re: [DISCUSS] Next Groovy 4 release should be RC-1

2021-09-19 Thread Daniel Sun
Hi Paul, It is OK for me to move straight to 4.0.0 RC-1. If some critical issues found, we could release 4.0.0 RC-2. Otherwise, 4.0.0 GA will be released much sooner :-) Cheers, Daniel Sun On 2021/09/15 08:58:04, Paul King wrote: > Hi folks, > > We have had mostly good feedback

Re: [VOTE] Release Apache Groovy 4.0.0-beta-1

2021-09-03 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2021/09/03 01:17:28, Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 4.0.0-beta-1 release! > > This release includes 136 bug fixes/improvements as outlined in the > changelog: > http

Re: About the tests failed on JDK16

2021-06-19 Thread Daniel Sun
> In JDK 17 the illegal-access flag is ignored and you can't open the internals > anymore. So you need a long term solution. Thanks for your reminder. JDK 16+ should be supported if the following PR is accepted: https://github.com/apache/groovy/pull/1598 Cheers, Daniel Sun On 2021/

Re: About the tests failed on JDK16

2021-06-13 Thread Daniel Sun
e(true) to those proxy classes prior to this change. On 2021/06/13 09:07:01, Daniel Sun wrote: > Hi all, > >I created a branch[1] to try running tests with JDK16, and I found 39 > tests failed[2]. If somebody have some spare time, let's look into the issues > and try to fix

Re: About the tests failed on JDK16

2021-06-13 Thread Daniel Sun
, existing code that uses most internal classes, methods, or fields of the JDK will fail to run. Such code can be made to run on JDK 16 by specifying --illegal-access=permit. That option will, however, be removed in a future release. On 2021/06/13 09:07:01, Daniel Sun wrote: > Hi all, >

About the tests failed on JDK16

2021-06-13 Thread Daniel Sun
pache/groovy/jobs/513334181 Cheers, Daniel Sun

Re: GDK retrofit for Java functional interfaces

2021-05-01 Thread Daniel Sun
Parrot has to trade off parsing performance against friendly error message... but we have been trying to tweak error messages. Cheers, Daniel Sun On 2021/04/29 15:55:52, OCsite wrote: > Christopher, > > > On 29 Apr 2021, at 16:57, Christopher Smith wrote: > > Par

Re: Groovy Console AstNodeToScriptAdapter improvements

2021-04-13 Thread Daniel Sun
Hi Leonard, It would be great if you could provide a PR to backport these changes. Thanks in advance! P.S. sorry for the late reply, too busy recently... Cheers, Daniel Sun On 2021/03/17 20:03:21, Leonard Brünings wrote: > Hi, > > recently Björn Kautler and I worked on a f

Re: [VOTE] Release Apache Groovy 4.0.0-alpha-2 (take 2)

2020-12-01 Thread Daniel Sun
I ran some scripts with groovySh and groovyConsole, all work well. +1 (binding) Cheers, Daniel Sun On 2020/12/01 15:11:14, Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 4.0.0-alpha-2 release! > > NOTE: If building from

Re: Upgrading from 2.5 to 3.0.5 and my class loader extension does not work

2020-08-24 Thread Daniel Sun
--no-build-cache` to get the binary distribution. If it works, PR is welcomed. Good luck ;-) Cheers, Daniel Sun On 2020/08/17 10:02:12, Saravanan Palanichamy wrote: > Digging into this further, It looks like StampedCommonCache is not > reentrant. But in my case, I am calling loa

Re: Upgrading from 2.5 to 3.0.5 and my class loader extension does not work

2020-08-09 Thread Daniel Sun
Could you provide a standalone runnable script to reproduce the issue? BTW, the script is expected to be written in Groovy/Java. Cheers, Daniel Sun On 2020/08/08 13:19:01, Saravanan Palanichamy wrote: > Hello > > I have an extension of GroovyClassLoader that I use as follows > >

Re: Parrot parser customization

2020-08-08 Thread Daniel Sun
I think you want to implement your own DSL. The AST transformation of Groovy could help you. Cheers, Daniel Sun On 2020/08/08 23:54:47, Saravanan Palanichamy wrote: > Hello everyone > > If I wanted to introduce new syntax in my groovy script, how would I go about > doing it? I w

Re: [PROPOSAL]Support conditional return

2020-07-29 Thread Daniel Sun
Hi mg, I like your idea, but it's hard for IDE to infer the type of `it` during we coding. ``` returnIf(a > 6 && it > 10) { goo() } ``` Cheers, Daniel Sun On 2020/07/29 20:28:13, MG wrote: > Hi Daniel, > > good idea also :-) > > If the arguments a

Re: RE: [PROPOSAL]Support conditional return

2020-07-28 Thread Daniel Sun
Hi Eric, I like your idea too ;-) We could use closure to express the condition at the tailing of method call: ``` def doSomething(int a) { returnIf(callB()) { a > 6 && it > 10 } returnIf(callC()) { a > 5 && it > 20 } returnIf(callD()) { a > 4 &&a

Re: [PROPOSAL]Support conditional return

2020-07-26 Thread Daniel Sun
ird, the current proposal supports referencing other return value, but does not support referencing each other, which is similar to the problem of chicken and egg. If the labels of statements have duplicated names, the parser will throw errors ;-) Cheers, Daniel Sun On 2020/07/26 18:21

Re: [PROPOSAL]Support conditional return

2020-07-26 Thread Daniel Sun
ethod(methodName, arguments) for (Class type : [Character.TYPE, Integer.TYPE]) { return? doChooseMethod(methodName, adjustArguments(arguments.clone(), type)) } throw new GroovyRuntimeException("$methodName not found") } ``` Cheers, Daniel Sun On 2020/07/26 18:23:41, Daniel Su

Re: [PROPOSAL]Support conditional return

2020-07-26 Thread Daniel Sun
PE)) if _ != null throw new GroovyRuntimeException("$methodName not found") } ``` Cheers, Daniel Sun On 2020/07/26 17:11:07, MG wrote: > Hi Daniel, > > currently I would be +/- 0 on this. > > Thoughts: > > 1. I feel I have written this before, but I myself do not encounter th

Re: [PROPOSAL]Support conditional return

2020-07-26 Thread Daniel Sun
Reference other return value with the following syntax: ``` returnA: return callA() if _ > 5 return callB() if _ > 10 && returnA._ > 1 ``` Cheers, Daniel Sun On 2020/07/25 19:57:16, Daniel Sun wrote: > Or a more verbose version: > > ``` > return callB() if (r

Re: [PROPOSAL]Support conditional return

2020-07-26 Thread Daniel Sun
callA() if _ !=null && _ > 10 // some more statements here, e.g. logging LOGGER.debug("returning the result of callB") return callB() } ``` But I have no idea how to simplify the code with ternary or elvis operators... Cheers, Daniel Sun On 2020/07/26

Re: [PROPOSAL]Support conditional return

2020-07-26 Thread Daniel Sun
ing(int a) { return callB()if a > 6 && _ > 10 return callC() + callD() if a > 5 && _ > 50 } ``` BTW, the parentheses behind `if` could be optional. Cheers, Daniel Sun On 2020/07/26 11:29:39, Mario Garcia wrote: > Hi all: > > Very interest

Re: [PROPOSAL]Support conditional return

2020-07-25 Thread Daniel Sun
Or a more verbose version: ``` return callB() if (r -> r > 10) ``` Cheers, Daniel Sun On 2020/07/25 19:51:47, Daniel Sun wrote: > If we take intellisense of IDE into account, the proposal could be refined as > follows: > > ``` > return callB() [r -> r > 10] >

Re: [PROPOSAL]Support conditional return

2020-07-25 Thread Daniel Sun
If we take intellisense of IDE into account, the proposal could be refined as follows: ``` return callB() [r -> r > 10] ``` Cheers, Daniel Sun On 2020/07/25 19:39:20, Daniel Sun wrote: > Hi OC, > > Let me make the example a bit more complicated to clarify my proposal: &

Re: [PROPOSAL]Support conditional return

2020-07-25 Thread Daniel Sun
OGGER.debug('the default value will be returned') return defaultValue } ``` Cheers, Daniel Sun On 2020/07/25 19:21:01, OCsite wrote: > Daniel, > > -1. In my personal experience this happens very rarely, not worth a special > support in the language by far.

[PROPOSAL]Support conditional return

2020-07-25 Thread Daniel Sun
ny thoughts? Cheers, Daniel Sun

Re: [ANNOUNCE] Apache Groovy 2.4.20 released

2020-07-21 Thread Daniel Sun
Nice work, Paul! Cheers, Daniel Sun On 2020/07/22 01:31:15, Paul King wrote: > Dear community, > > The Apache Groovy team is pleased to announce version 2.4.20 of Apache > Groovy. > Apache Groovy is a multi-faceted programming language for the JVM. > Further details can be

Re: [VOTE] Release Apache Groovy 3.0.5 (take 2)

2020-07-19 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2020/07/19 12:35:50, Paul King wrote: > [Sorry for the glitch, let's try that again!] > > Dear development community, > > I am happy to start the VOTE thread for a Groovy 3.0.5 release! > > This release includes 74 bug fixes/impro

Re: [VOTE] Release Apache Groovy 2.4.20

2020-07-19 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2020/07/18 23:46:43, Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 2.4.20 release! > > This release includes a handful of tweaks to the documentation and 2 bug > fixes/improvements

Re: [VOTE] Release Apache Groovy 2.5.13

2020-07-19 Thread Daniel Sun
+1 (binding) Cheers, Daniel Sun On 2020/07/19 03:13:52, Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 2.5.13 release! > > This release includes 39 bug fixes/improvements as outlined in the > changelog: > https://i

Re: [VOTE] Release Apache Groovy 3.0.5

2020-07-19 Thread Daniel Sun
via network ), so I assume it should be OK. Also, the groovySh and groovyConsole works find for me too. Cheers, Daniel Sun On 2020/07/19 06:19:50, Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 3.0.5 release! > > This rele

Re: next releases

2020-07-04 Thread Daniel Sun
Hi Paul, I have no more commits for the two releases. Cheers, Daniel Sun On 2020/07/01 22:41:28, Paul King wrote: > Hi everyone, > > I'd like to do another 2.5 and 3 release late this week or early next week. > Time to work on any bug fixes that you want included or l

Re: RE: Groovy 3 very slow stub generation

2020-01-17 Thread Daniel Sun
I compared the time cost by antlr2 parser and Parrot parser via running the following script "Parse.groovy", which is placed under directory "nextflow-master\modules\nextflow\src\main\groovy\nextflow"[1]: The heap size is set to 2G, i.e. "-Xms2g -Xmx2g" 1) run antlr2 parser `groovy Parse.groovy

Re: Re: About the performance of indy

2020-01-13 Thread Daniel Sun
Hi Jochen, The changed example will run faster than the original one because cache will always be hit for each argument. Actually we can make run even much faster, loop more than 100_000 times, e.g. 1_000_000, because the optimize threshold reaches, the related MH will be linked to the cs.

Re: About native support for lazy constants

2020-01-12 Thread Daniel Sun
Hi Rémi, > - if you want the bytecode getstatic to access the field, here you need the VM > to be changed, it's in the roadmap for the VM but not yet implemented I wish we could still access the constants with bytecode getstatic, which is simple enough for us to use and read, but I do not know

Re: Feedback from any TravisCI users?

2019-06-12 Thread Daniel Sun
Hi Paul, The max timeout(about 50 minutes) of buiding is too short for big projects to complete tons of tests. Apache Groovy[1]'s test building costs about 25 minutes, and groovy-parser project[2]'s building costs more than 50 minutes when running on Travis CI as it will test parsing source

RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

2019-05-25 Thread Daniel Sun
Hi Jon, Sorry for my late reply... variable value is of type Object but clone method of Object is protected, so value.clone() emits illegal access warnings. I am trying to make Groovy a bit smarter to find the proper clone method(I assume you have overrided the Object.clone in your s

Re: Indy-only support for Groovy 4 not 3?

2019-05-20 Thread Daniel Sun
I wish more Groovy users could benefit from the new features of Groovy 3 by the end of 2019. P.S. the new Parrot parser is about 3 years old now... Time flies... Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Indy-only support for Groovy 4 not 3?

2019-05-19 Thread Daniel Sun
Agreed. Moreover, we should implement PIC before enabling indy by default. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

2019-05-14 Thread Daniel Sun
Yep. It seems that I find what's wrong with it ;-) Would you please submit a JIRA ticket and attach a standalone sample code to reproduce the issue? https://issues.apache.org/jira/projects/GROOVY/summary Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.ht

Re: TeamCity ci server

2019-05-14 Thread Daniel Sun
Hi Paul, I find all Java8 builds fail... http://ci.groovy-lang.org/viewType.html?buildTypeId=Groovy_Jdk8Build&branch_Groovy=%3Cdefault%3E&tab=buildTypeStatusDiv&guest=1 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

2019-05-14 Thread Daniel Sun
FYI, https://stackoverflow.com/questions/50435218/how-to-pass-args-to-jvm-which-running-test-with-gradle Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

RE: [ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

2019-05-13 Thread Daniel Sun
Please add ` --illegal-access=debug` to JVM options and show us the complete warning(including statck trace). Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [VOTE] Release Apache Groovy 2.4.17

2019-05-06 Thread Daniel Sun
On 2019/05/06 13:08:16, Paul King wrote: > Dear development community, > > I am happy to start the VOTE thread for a Groovy 2.4.17 release! > > This release includes 4 bug fixes/improvements as outlined in the changelog: > https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=1231

Re: [PROPOSAL]About creating open collective for Groovy programming language in the name of Groovy Community

2019-03-07 Thread Daniel Sun
Hi Paul, Thanks a lot for your hard work to make the proposal come true! Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

  1   2   3   4   5   >