Method reference for Groovy 3

2016-10-25 Thread Daniel.Sun
ry, follow the step: $ git clone https://github.com/danielsun1106/groovy-parser.git $ cd groovy-parser $ ./gradlew groovyConsole Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/Method-reference-for-Groovy-3-tp5736296.html Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: Method reference for Groovy 3

2016-10-25 Thread Daniel.Sun
Thanks :-) 在 "paulk_asert [via Groovy]" ,2016年10月26日 上午7:35写道: nice! On Wed, Oct 26, 2016 at 6:29 AM, Jochen Theodorou <[hidden email]> wrote: > great stuff > > > On 25.10.2016 18:25, Daniel.Sun wrote: >> >> Hi all, >> >> T

Re: [PROPOSAL]Refine the implementation of LRUCache

2016-10-26 Thread Daniel.Sun
ntHashMap does not supply any function to remove oldest element automatically :) Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/PROPOSAL-Refine-the-implementation-of-LRUCache-tp5736323p5736329.html Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: [PROPOSAL]Refine the implementation of LRUCache

2016-10-27 Thread Daniel.Sun
I created a JIRA issue to track the proposal: https://issues.apache.org/jira/browse/GROOVY-7977 Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/PROPOSAL-Refine-the-implementation-of-LRUCache-tp5736323p5736346.html Sent from the Groovy Dev mailing list

Re: Custom operator for Groovy 3

2016-10-30 Thread Daniel.Sun
ases. https://github.com/danielsun1106/groovy-parser/blob/customOperator/src/test/resources/core/CustomOperator_01x.groovy Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/Custom-operator-for-Groovy-3-tp5736388p5736393.html Sent from the Groovy Dev mailing list

Re: Custom operator for Groovy 3

2016-10-30 Thread Daniel.Sun
Hi Paolo, Here are some example code. As you see, the special character(`) is required to define the custom operator: // Custom operators should be declared first, then use. // It can be declared in the class or script, but it must be declared static. class A { static "`>?`"(int a, int b)

Re: Custom operator for Groovy 3

2016-10-30 Thread Daniel.Sun
as Cédric said, so I'm not sure it will be added to Groovy 3 ;-) Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/Custom-operator-for-Groovy-3-tp5736388p5736396.html Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: An issue about comparing arrays

2016-10-30 Thread Daniel.Sun
Hi Jochen, I create JIRA issue GROOVY-7983(https://issues.apache.org/jira/browse/GROOVY-7983) to track the issue. BTW, the code in the email should be corrected as follow: def a = new int[2][] def b = new int[2][][] assert a == b // expect faling Cheers, Daniel.Sun -- View this

Re: Custom operator for Groovy 3

2016-10-30 Thread Daniel.Sun
Hi Jochen, Thanks for your explaining the traps of custom operator in Groovy :) The experimental code is on the customOperator branch, which will not be merged to master ;) Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/Custom-operator-for

Re: Custom operator for Groovy 3

2016-10-30 Thread Daniel.Sun
The logic of custom operator is impelemented in a method, so the custom operator is accually method call. The feature will not be added to Groovy, so forget it ;-) Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/Custom-operator-for-Groovy-3

Re: Custom operator for Groovy 3

2016-10-30 Thread Daniel.Sun
Hi Jochen, I'll set aside more time on your new idea ;) Cheers, Daniel.Sun 在 "Jochen Theodorou [via Groovy]" ,2016年10月30日 下午8:16写道: On 30.10.2016 11:07, Daniel.Sun wrote: > Hi Paolo, > > There are some limitations when we use antlr to define grammar

Re: Custom operator for Groovy 3

2016-10-31 Thread Daniel.Sun
on for the time being. To extend your new idea: a `>?` b === a."`>?`"(b) // binary expression the following syntax will be useful too: `?` a === "`?`"(a) // unary expression a `?` === a."`?`"() // postfix expression As you can see, with double "

What Christmas gifts for us? ;)

2016-11-01 Thread Daniel.Sun
Dear Groovy Core Team, There are about 55 days before Christmas's coming, what gifts are you going to give us? ;) The first release of Groovy 2.5.0 beta? and with what features? Best Regards, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com

Re: What Christmas gifts for us? ;)

2016-11-01 Thread Daniel.Sun
+1 :) 在 "Paolo Di Tommaso [via Groovy]" ,2016年11月1日 下午8:17写道: Both of them !! :) On Tue, Nov 1, 2016 at 1:14 PM, Remi Forax <[hidden email]> wrote: or a photo of Guillaume dress as Father Chrismas :) Rémi - Mail original - > De: "Daniel.Sun" <[h

Re: Custom operator for Groovy 3

2016-11-01 Thread Daniel.Sun
cters as possible and make tokens, as a result, .* in the import statement is also recognized as custom operator. So I use ` instead for the time being. Cheers, Daniel.Sun 在 "Jochen Theodorou [via Groovy]" ,2016年11月1日 下午10:17写道: On 01.11.2016 02:39, Daniel.Sun wrote: > Hi

Re: An issue about comparing arrays

2016-11-02 Thread Daniel.Sun
IMO, we should compare their type first. If not same, the comparing result should be 'false'. Cheers, Daniel.Sun 在 "bo zhang [via Groovy]" ,2016年11月3日 06:53写道: I'm afraid it's not a bug. Actually, `def a=new int[2][]` means that a is an array of two null poi

Re: An issue about comparing arrays

2016-11-02 Thread Daniel.Sun
I verified the comparing of Java, which will check the type first. e.g. new int[2][][].equals(new int[2][]) // false new int[2].equals(new long[2]) // false Cheers, Daniel.Sun 在 "bo zhang [via Groovy]" ,2016年11月3日 上午9:24写道: Yes, that's my first instinct too, but a few minute

Re: An issue about comparing arrays

2016-11-02 Thread Daniel.Sun
I see, it is Groovy's friendly behavior. Thank you, Paul. Cheers, Daniel.Sun 在 "paulk_asert [via Groovy]" ,2016年11月3日 下午2:43写道: We just have to be a little careful. Rightly or wrongly (search the mailing lists for many discussions), current Groovy's '==' t

try-with-resources statement for Groovy 3

2016-11-04 Thread Daniel.Sun
Any thoughts? Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/try-with-resources-statement-for-Groovy-3-tp5736479.html Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: try-with-resources statement for Groovy 3

2016-11-04 Thread Daniel.Sun
heers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/try-with-resources-statement-for-Groovy-3-tp5736479p5736485.html Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: try-with-resources statement for Groovy 3

2016-11-04 Thread Daniel.Sun
version of test cases will be added later. Have I caught your meaning? BTW, the try-with-resources test cases are all runnable. You can see they are marked 'x'(e.g. TryWithResources_01*x*.groovy), which means executable. Cheers, Daniel.Sun -- View this message in context: http://gro

Re: try-with-resources statement for Groovy 3

2016-11-04 Thread Daniel.Sun
Hi Cédric, Thanks for your reminding. I'll keep it in mind. Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/try-with-resources-statement-for-Groovy-3-tp5736479p5736490.html Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: try-with-resources statement for Groovy 3

2016-11-04 Thread Daniel.Sun
Hi Cédric, try-with-resources works fine with static compilation(test case 15): https://github.com/danielsun1106/groovy-parser/blob/tryWithResources/src/test/resources/core/TryWithResources_01x.groovy#L212 Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5

Re: try-with-resources statement for Groovy 3

2016-11-04 Thread Daniel.Sun
Hi Jochen, The nest version of test case is added, the new parser can support too :) https://github.com/danielsun1106/groovy-parser/blob/tryWithResources/src/test/resources/core/TryWithResources_01x.groovy#L188 Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5

Re: try-with-resources statement for Groovy 3

2016-11-04 Thread Daniel.Sun
Hi all, If nobody unlikes the feature, I'll merge it into the master of groovy-parser later :) Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/try-with-resources-statement-for-Groovy-3-tp5736479p5736495.html Sent from the Groovy Dev mailing

[ANNOUNCE] Apache Groovy 2.6.0-alpha-1 Released

2017-09-06 Thread Daniel.Sun
Dear community, The Apache Groovy team is pleased to announce version 2.6.0-alpha-1 of Apache Groovy. Apache Groovy is a multi-facet programming language for the JVM. Further details can be found at the http://groovy.apache.org website. This is a pre-release of a new version of Groovy. We greatly

Re: [ANNOUNCE] Apache Groovy 2.6.0-alpha-1 Released

2017-09-06 Thread Daniel.Sun
://dl.bintray.com/groovy/maven/apache-groovy-sdk-2.6.0-alpha-1.zip We should fix the above links in the page: http://groovy-lang.org/download.html Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [2/2] groovy git commit: Refine the grammar: 1)`def` is still required for performance when declaring tuple; 2)Stop supporting command expression in parentheses

2017-09-20 Thread Daniel.Sun
Yeah. It's a new feature introduced by Parrot. We can discuss command expression further later. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Parsing slashy string as method argument

2017-10-19 Thread Daniel.Sun
Hi Brian, Try `println $/foo/$` Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

[VOTE] Release Apache Groovy 2.6.0-alpha-2

2017-11-11 Thread Daniel.Sun
Dear community, I am happy to start the VOTE thread for a Groovy 2.6.0-alpha-2 release! This release includes 10 bug fixes/improvements as outlined in the changelog: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12318123&version=12341386 Tag: https://git1-us-west.apache.org/re

Re: [VOTE] Release Apache Groovy 2.6.0-alpha-2

2017-11-13 Thread Daniel.Sun
e the wrapper and build Apache Groovy from source. At last, I want to know, your vote is ? ;-) Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [VOTE] Release Apache Groovy 2.6.0-alpha-2

2017-11-14 Thread Daniel.Sun
Hi Cédric, Your vote is ? Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

[RESULT][VOTE] Release Apache Groovy 2.6.0-alpha-2

2017-11-14 Thread Daniel.Sun
The vote has passed with 4 +1 binding votes and one additional +1 vote. I'll get started with next steps later. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: upcoming releases

2017-11-15 Thread Daniel.Sun
Hi Paul, Apart from 2.6.0-alpha-2, I plan to release 3.0.0-alpha-1 :-) Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [VOTE] Release Apache Groovy 2.4.13 (take 3)

2017-11-19 Thread Daniel.Sun
+1 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

About setting a stable module name with `Automatic-Module-Name` entry in MANIFEST

2017-11-20 Thread Daniel.Sun
.x, 3.0.x)? Cheers, Daniel.Sun [1] http://groovy.329449.n5.nabble.com/Compiling-groovy-with-java9-using-maven-with-spring-boot-tp5744648p5744667.html [2] https://github.com/mockito/mockito/issues/1189 -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: upcoming releases

2017-11-24 Thread Daniel.Sun
Hi Paul, As Groovy 2.4.13 has been released, I plan to release Groovy 3.0.0-alpha-1 later. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: upcoming releases

2017-11-24 Thread Daniel.Sun
Hi Cédric, Groovy 3.0.0 alpha can help groovy developers try the new parser easily, which is enabled by default. In addition, we can get more feedback earlier. So if no -1 on releasing 3.0.0 alpha, I'll try to release later. Cheers, Daniel.Sun -- Sent from: http://groovy.3294

[VOTE] Release Apache Groovy 3.0.0-alpha-1

2017-11-25 Thread Daniel.Sun
Dear community, I am happy to start the VOTE thread for a Groovy 3.0.0-alpha-1 release! This release includes 9 bug fixes/improvements as outlined in the changelog: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12318123&version=12331946 Tag: https://git1-us-west.apache.org/rep

Re: [VOTE] Release Apache Groovy 3.0.0-alpha-1

2017-11-25 Thread Daniel.Sun
BTW, building from source code have to be done on Linux(Fails on Windows 10). Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [VOTE] Release Apache Groovy 3.0.0-alpha-1

2017-11-25 Thread Daniel.Sun
Execution failed for task ':clean' after gradle upgraded from 3.5.1 to 4.3.1 https://github.com/gradle/gradle/issues/3437 -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [VOTE] Release Apache Groovy 3.0.0-alpha-1

2017-11-25 Thread Daniel.Sun
Gotcha :-) Thanks for your reminding. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [VOTE] Release Apache Groovy 3.0.0-alpha-1

2017-11-27 Thread Daniel.Sun
I tried `gradlew dist --no-daemon`, still failed... --- FAILURE: Build failed with an exception. * What went wrong: java.io.IOException: Unable to delete file: D:\_APPS\git_apps\groovy\target\bootstrap\groovy-3.0.0-SNAPSHOT-bootstrap.jar > Unable to delete file: > D:\_APPS

Re: [RESULT] [VOTE] Automatic module names

2017-12-08 Thread Daniel.Sun
Nice -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Gradle build updates

2017-12-10 Thread Daniel.Sun
Hi Cédric, It looks fine to me. BTW, the following commit will break the build(my bad...), please pull the latest code. https://github.com/melix/groovy-core/commit/fb00a0465e378bc9070f1e7dec4550fb778812ae Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com

Re: [RESULT] [VOTE] Automatic module names

2017-12-11 Thread Daniel.Sun
Great! The issue is gone. I tested on https://github.com/melix/groovy-core/commits/cc/rebuild-gradle Thank you, Cédric :-) -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Gradle build updates

2017-12-11 Thread Daniel.Sun
oader.java:151) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:104) at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:136) Cheers, Daniel.Sun -- Sent from: http://groovy.329449

Re: Gradle build updates

2017-12-11 Thread Daniel.Sun
1) apache-groovy-binary-3.0.0-SNAPSHOT.zip contains three groovy-raw-3.0.0-SNAPSHOT.jar with same size * groovy-3.0.0-SNAPSHOT/groovy-raw-3.0.0-SNAPSHOT.jar * groovy-3.0.0-SNAPSHOT/lib/groovy-raw-3.0.0-SNAPSHOT.jar -- corrected as the absolute path * groovy-3.0.0-SNAPSHOT/lib/groovy-

Re: Gradle build updates

2017-12-11 Thread Daniel.Sun
Hi Cédric, I built the distribution from the latest source code. The two issues are fixed :) Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Gradle build updates

2017-12-11 Thread Daniel.Sun
Hi Cédric, The following test failed because `-Dgroovy.attach.groovydoc=true` is missing :testWithIndyorg.apache.groovy.parser.antlr4.GroovyParserTest » test groovy core - Comments (0.702s) java.lang.NullPointerException : Cannot get property 'content' on null object Close stacktrace at o

Re: Functional interfaces and CompileStatic

2017-12-11 Thread Daniel.Sun
Good job! -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Gradle build updates

2017-12-11 Thread Daniel.Sun
ix the failing build. https://github.com/apache/groovy/commit/392d3ac4b46bf872317fe77587c9cf0b9afd2194 I guess the classpath(`classpath = files(jar.archivePath)`) don't contain groovy classes. https://github.com/apache/groovy/blob/master/gradle/test.gradle#

Re: Gradle build updates

2017-12-11 Thread Daniel.Sun
The build works now :) https://github.com/apache/groovy/commit/b607038002ead0459ae56a2a662793859b3b9f51 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Gradle build updates

2017-12-12 Thread Daniel.Sun
> I have pushed a proper fix. The proper fix is much better :) Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Why do we have Jitpack repo?

2017-12-12 Thread Daniel.Sun
Hi Cédric, I added Jitpack as a repository, but it is no longer used. Feel free to remove it. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: groovy git commit: Refine DgmConverter to gain better IO performance

2017-12-12 Thread Daniel.Sun
all know, accessing disk is much slower than accessing memory). Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: groovy git commit: Refine DgmConverter to gain better IO performance

2017-12-12 Thread Daniel.Sun
Gotcha. I'll revert it ;) Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Keeping DGM helper methods?

2017-12-12 Thread Daniel.Sun
+1 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Gradle build updates

2017-12-12 Thread Daniel.Sun
Thank you, Cédric :) I tried to build from groovy-2.6.0-SNAPSHOT source code and found a trivial issue: apache-groovy-src-2.6.0-SNAPSHOT.zip file contains "groovy-2.6.0-SNAPSHOT/.shelf", which should be excluded IMO. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.

Re: Gradle build updates

2017-12-12 Thread Daniel.Sun
s 10 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Gradle build updates

2017-12-17 Thread Daniel.Sun
Amazing! The build of master costs only about 15 min now(about 25 min in the past). Cédric, you help us save a lot of time, thanks a lot! Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

About SmartASMifier

2017-12-20 Thread Daniel.Sun
Hi all, Recently I spend some spare time to investigate bytecode generation of native lambda. In order to view the ASM source code(or bytecode) easily, I developed a tool named SmartASMifier( https://github.com/danielsun1106/SmartASMifier ). Now I share it with you :-) Cheers, Daniel.Sun

Re: About SmartASMifier

2017-12-21 Thread Daniel.Sun
Thanks ;-) -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

About the native lambda

2017-12-22 Thread Daniel.Sun
lp is appreciated! [1] https://github.com/danielsun1106/groovy/blob/native-lambda/subprojects/parser-antlr4/src/test/resources/core/Lambda_02x.groovy [2] https://github.com/danielsun1106/groovy/blob/native-lambda/src/main/java/org/codehaus/groovy/classgen/asm/LambdaWriter.java#L75-L76 Cheers, Danie

RE: About the native lambda

2017-12-22 Thread Daniel.Sun
Groovy community is so warm! Thank you all for your help, I'll set aside more time to investigate further :-) Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: G-String embedded Closure calling bug?

2017-12-22 Thread Daniel.Sun
Hi Jochen, As far as I remember, John Wilson is one of main contributors of Groovy, he is active in about 2007 and rejected some proposals of mine ;-) Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Why no asm6 on Groovy2.4.x?

2017-12-24 Thread Daniel.Sun
Hi Jochen, I'm trying to upgrade asm on my fork[1], let's wait to see the result of build ;-) Cheers, Daniel.Sun [1] https://travis-ci.org/danielsun1106/groovy/builds/321181232?utm_source=github_status&utm_medium=notification -- Sent from: http://groovy.329449.n5.nabble.

Re: build faillures

2017-12-24 Thread Daniel.Sun
Hi Jochen, I have the same question... my workaround is to check the version of vm plugin: https://github.com/danielsun1106/groovy/commit/70f0223a5f0eade0e2097b7ff8bf843e05948e55 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: build faillures

2017-12-24 Thread Daniel.Sun
Fixed by https://github.com/apache/groovy/commit/e9b6bddda05165195db24d42ed3715e4752e0397 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Why no asm6 on Groovy2.4.x?

2017-12-24 Thread Daniel.Sun
The version of ASM has upgraded to 6.0 :-) https://github.com/apache/groovy/commit/091e178495a5dbd44ab46374121b7f28ea98d6d1 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Why no asm6 on Groovy2.4.x?

2017-12-25 Thread Daniel.Sun
//travis-ci.org/apache/groovy/jobs/321192018#L586-L596 Could you show me the link to the error messages? Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [VOTE]Support package scope via `package` keyword

2017-12-28 Thread Daniel.Sun
We should collect at least three +1 from PMC(e.g. Guillaume, Jochen, Cédric, Paul, John, etc. ) ;-) Here is the complete list : http://people.apache.org/phonebook.html?pmc=groovy Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [VOTE]Support package scope via `package` keyword

2017-12-29 Thread Daniel.Sun
d be `ALL` your vote is ? Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [VOTE]Support package scope via `package` keyword

2017-12-29 Thread Daniel.Sun
Hi Jochen, Thanks for your voting :-) > but under the condition to deprecate @PackageScope in 2.6.0 and then I > would like to have it removed in 3.0.0 (if we want to be serious about > cleanups, that is) Yeah, we can do better step by step. Cheers, Daniel.Sun --

About adding DGM startsWith(String...) and endsWith(String...)

2017-12-31 Thread Daniel.Sun
/blob/master/gradle/assemble.gradle#L352-L355 can be simplified as it.file.name.startsWith('asm-', 'antlr-', 'antlr4-') The similar senario appears at: https://github.com/apache/groovy/blob/master/gradle/assemble.gradle#L366-L369 Any thoughts? Cheers, Da

Jar files under indy directory of distribution miss the file extension(i.e. jar)

2017-12-31 Thread Daniel.Sun
-SNAPSHOT groovy-templates-2.6.0-SNAPSHOT groovy-groovysh-2.6.0-SNAPSHOT groovy-test-2.6.0-SNAPSHOT groovy-jmx-2.6.0-SNAPSHOT groovy-testng-2.6.0-SNAPSHOT groovy-json-2.6.0-SNAPSHOT groovy-xml-2.6.0-SNAPSHOT groovy-jsr223-2.6.0-SNAPSHOT Cheers, Daniel.Sun -- Sent from: http

Re: Jar files under indy directory of distribution miss the file extension(i.e. jar)

2017-12-31 Thread Daniel.Sun
groovy-2.5.0-SNAPSHOT has the same issue... -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: About adding DGM startsWith(String...) and endsWith(String...)

2017-12-31 Thread Daniel.Sun
Yeah, you are right, but `it.file.name =~ /^(?:asm|antlr|antlr4)-/` is not very intuitive IMHO. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: About adding DGM startsWith(String...) and endsWith(String...)

2017-12-31 Thread Daniel.Sun
OK. I'll create one later. Happy New Year :-) Cheers, Daniel. Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

About making ProxyGenerator singleton

2018-01-04 Thread Daniel.Sun
the default size of the cache?(e.g. 64) Any thoughts? Cheers, Daniel.Sun [1] https://github.com/apache/groovy/blob/master/src/main/groovy/groovy/util/ProxyGenerator.java#L69 [2] https://github.com/apache/groovy/blob/master/src/main/groovy/groovy/util/ProxyGenerator.java#L77 -- Sent

Re: About making ProxyGenerator singleton

2018-01-04 Thread Daniel.Sun
Also, I am not sure whether > org.codehaus.groovy.vmplugin.v7.TypeTransformers usage is via the > INSTANCE. I verified that`org.codehaus.groovy.vmplugin.v7.TypeTransformers` uses INSTANCE. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: About the native-lambda branch

2018-01-12 Thread Daniel.Sun
. I reference the ASM to generate bytecode, maybe some code is not necessary and can be removed, I will refine them later. Currently it is just an initial implementation, there are many things to complete. Fortunately, we are on the road. Cheers, Daniel.Sun -- Sent from: http://groovy

Re: About the native-lambda branch

2018-01-12 Thread Daniel.Sun
;-) Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: About the native-lambda branch

2018-01-13 Thread Daniel.Sun
It seems that I found where go wrong. The shared local variables in generated method body should have been replaced with parameters. Let me try later :-) Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: About the native-lambda branch

2018-01-14 Thread Daniel.Sun
Hi Jochen, Thanks for your detailed explanation, which is very helpful to me. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: About merging native-lambda into master

2018-01-20 Thread Daniel.Sun
Hi Paul, I will create a PR later :-) Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: About merging native-lambda into master

2018-01-20 Thread Daniel.Sun
The PR is created: https://github.com/apache/groovy/pull/654 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Parser version

2018-02-08 Thread Daniel.Sun
Hi Russel, ANTLR-4 parser(i.e. the Parrot parser) is the default one for master, and ANTLR-2 parser is default for other branches. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [VOTE] Release Groovy 2.5.0-beta-3

2018-02-20 Thread Daniel.Sun
+1 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [GEP] Refine parsing negative numbers

2018-02-22 Thread Daniel.Sun
OK. I see ;-) -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [VOTE] Release Apache Groovy 2.4.14

2018-02-24 Thread Daniel.Sun
+1 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Java raw string literals

2018-02-24 Thread Daniel.Sun
Double backticks look a bit ugly IMO... I prefer the same way to escape, i.e. use \ to escape. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

[GEP] Concatenative Method Calls

2018-02-25 Thread Daniel.Sun
=> baz Any thoughts? Cheers, Daniel.Sun [1] https://en.m.wikipedia.org/wiki/Concatenative_programming_language -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [GEP] Concatenative Method Calls

2018-02-25 Thread Daniel.Sun
lowing syntax to support multiple parameters. (x, y) => m1 => (m2, param) => m3 P.S. I like Jesper proposed |> to replace => Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

[VOTE] Release Groovy 2.6.0-alpha-3

2018-03-02 Thread Daniel.Sun
Dear development community, I am happy to start the VOTE thread for a Groovy 2.6.0-alpha-3 release! This release includes 18 bug fixes/improvements as outlined in the changelog: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12318123&version=12342190 Tag: https://git1-us-west.a

Re: Java grammar

2018-03-02 Thread Daniel.Sun
Hi Russel, How about https://github.com/javaparser/javaparser/blob/master/javaparser-core/src/main/javacc/java.jj Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [VOTE] Release Groovy 2.6.0-alpha-3

2018-03-02 Thread Daniel.Sun
, 2, 3].stream().map(e -> e.plus 1).toList()) } } ``` In next releases of 2.6.0, `-Dgroovy.target.bytecode=1.7` will be set by default. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: [VOTE] Release Groovy 2.6.0-alpha-3

2018-03-05 Thread Daniel.Sun
Hi Guillaume, Thanks for your voting :) Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Synthetic GroovyObject methods

2018-03-09 Thread Daniel.Sun
Hi Daniil, Maybe Jochen can tell us the reason. Ping Jochen ;-) Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: About supporting `var` of Java10+

2018-03-11 Thread Daniel.Sun
As a side note, `var` of Java10+ supports the following usage[1]: ``` var person = new Object() { String name = "bob"; int age = 5; }; System.out.println(person.name + " aged " + person.age); ``` Cheers, Daniel.Sun [1] http://benjiweber.co.uk/blog/2018/03

  1   2   3   4   5   >