Thank you, everybody :)
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/Congratulations-to-our-newest-committer-Daniel-Sun-tp5736468p5736738.html
Sent from the Groovy Users mailing list archive at Nabble.com.
Hi Don,
I assume that it may be related to the cache based on
Collections.synchronizedMap, the implementation is refined via using
ConcurrentLinkedHashMap on parrot branch. Could you give it a try by
following the steps?
$ git clone -b parrot https://github.com/apache/groovy.git
$ cd groovy
Hi Don,
I found the issue is related to another cache issue, so could you
provide some runnable code to reproduce the issue? I'll set asside some time
to investigate it.
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/ConcurrentModificationExceptio
Good job :)
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/Http-Builder-NG-tp5736876p5736879.html
Sent from the Groovy Users mailing list archive at Nabble.com.
Hi all,
If the new operator ?= (e.g. a ?= 'foo' is equivalent of a = a ?:
'foo') were to be added to Groovy programming language, do you like it?
(Yes: +1; No: -1; Not bad: 0)
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp57
d don't use it, it's not a huge
>> loss. So it doesn't hurt to add it, and while not instantly readable, it's a
>> trivial docs lookup when someone is reading the code.
>>
>> So, I vote +1. But, honestly, I don't see myself using it very often as
>&
As most of us vote +1, I'll try to implement the new feature after I fix some
major
issues(https://issues.apache.org/jira/browse/GROOVY-8005?jql=project%20%3D%20GROOVY%20AND%20resolution%20%3D%20Unresolved%20AND%20assignee%20%3D%20daniel_sun%20ORDER%20BY%20priority%20DESC)
Cheers,
Daniel.Sun
--
Interesting, but hard to understand somehow at the first time hearing the name
;)
Cheers,
Daniel.Sun
在 "jeff.l [via Groovy]" ,2016年11月29日
上午8:30写道:
Elsignment?
— Jeff
On Nov 23, 2016, at 4:30 PM, Daniel Sun <[hidden email]> wrote:
I like the nickname "Elvis assig
Parrot's lexer will also reject the code too, but Parrot parser supports
printing a dollar slashy string:
println $/hello/$ // yield hello. *Notice: *the old parser does not
support the code
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/println-slas
Hi all,
The new parser(Parrot) supports "implies" operator(=>) now, e.g.
// if and only if isDistributedTxFailed is true and isCompensated is false,
yields notConsistent.
if (isDistributedTxFailed => isCompensated) {
println 'eventuallyConsistent '
} else {
println 'notConsistent'
Nice!
--
View this message in context:
http://groovy.329449.n5.nabble.com/Official-Docker-Groovy-images-tp5738848p5738851.html
Sent from the Groovy Users mailing list archive at Nabble.com.
> The two are independent. I suggest changing both at the same time would
be the right thing to do.
Agreed!
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/Maven-coordinates-going-forward-tp5739395p5739409.html
Sent from the Groovy Users mailing list
Hi Joe,
Thanks for your awesome work. I like it.
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/Java-8-Date-Time-API-Extension-Methods-tp5740663p5741533.html
Sent from the Groovy Users mailing list archive at Nabble.com.
Hi Paul,
> The grammar isn't expecting an annotation on the parameterized type. It
> fails for both the old and new parsers with slightly different error
> messages.
I will set aside some time to complete the grammar and AST
construction.
Cheers,
Daniel.Sun
--
View this message in conte
Hi Paul,
I'm reading an article on JSR308, which is really useful.
http://www.oracle.com/technetwork/articles/java/ma14-architect-annotations-2177655.html
In addition, I've already created a branch
jsr308(https://github.com/danielsun1106/groovy-parser/tree/jsr308) to
experiment the
Hi Edmond,
Its UI is impressive. If the tabs could be moved, the usability will
be better ;)
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/Exciting-Addition-to-Groovy-Ecosystem-tp5742007p5742008.html
Sent from the Groovy Users mailing list archi
Hi all,
I've been thinking about Union Type for method/constructor
declaration. It is similar to multi-catch in try-catch statement, e.g.
class UnionTypeSample {
public UnionTypeSample(A|B|C p) {
// do something
}
def m(D|E p) {
// do something
}
}
Groovy will tran
Hi Jochen,
As you said, it is actually union overloads. Fully supporting union type
is a big task. So I did not propose union type defination etc. for the time
being ;)
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/VOTE-About-the-Union-Type-for-me
Looking forward to 2.6.0 and 3.0.0, which contains the Parrot parser
providing many new features :)
p.s. use -Dgroovy.antlr4=true to enable the Parrot parser
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/upcoming-release-s-tp5742269p5742275.html
Sent
原始邮件
主题:Re: upcoming release(s)
发件人:"Russel Winder-3 [via Groovy]"
收件人:Daniel Sun
抄送:
On Sun, 2017-07-23 at 04:55 -0700, Daniel Sun wrote:
> Looking forward to 2.6.0 and 3.0.0, which contains the Parrot parser
> providing many new features :)
>
> p.s. use -D
Because many people do not like the feature, it will not be implemented for
the time being util we reach a consensus.
P.S. It is actually a poll.
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/VOTE-About-the-Union-Type-for-method-constructor-declaratio
Hi Nathan,
I like your idea :)
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/Start-a-forum-using-Discourse-tp5742677p5742679.html
Sent from the Groovy Users mailing list archive at Nabble.com.
Hi Guillaume,
Maybe we can encourage groovy developers to set up some non-official
forums, which are similar to what Java does (
http://javarevisited.blogspot.jp/2015/01/top-5-java-forums-for-programmers.html
) and will warm up Groovy community further more.
Cheers,
Daniel.Sun
--
View th
Thanks for your nice work!
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
The next release of 2.6.0+ will add the option `--add-modules ALL-SYSTEM` by
default:
https://github.com/apache/groovy/commit/e6b62dfa1fc5b6471304dfe5244e84f7f6987392
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Java will not ignore unknown option e.g. --add-modules, so we should add
option conditionally:
https://github.com/apache/groovy/commit/ca05e9ff8f217d5ac16a87fff7023a481b9c1b3f
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Nice :)
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Nice :-)
On 2017-11-15 13:30, Keegan Witt wrote:
> The Windows installer for Groovy 2.6.0-alpha-2 is available from the usual
> place:
> https://bintray.com/groovy/Distributions/download_file?file_path=groovy-2.6.0-alpha-2-installer.exe
>
Hi Nathan,
It's easy to discuss via a forum, so I vote +1 here. According to
Apache policy, we should discuss via mailing lists, so the forum integrate
with the mailing lists to exchange messages between the two system.
Whether the forum is official or not, the forum will attract m
Hi Russel,
`[1, 2, 3, 4, 5].parallel.reduce{a, b -> Math.min(a, b)}` is much
groovier than ` [1, 2, 3, 4, 5].parallelStream().reduce{a, b -> Math.min(a,
b)}.get()`, so I hope the original API can be kept and its implementation
can base on Java8's functionality.
Cheers,
Daniel.Sun
--
Sen
FYI,
http://docs.groovy-lang.org/latest/html/documentation/tools-groovyc.html#_maven_integration
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Nice work!
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Hi Nathan,
Thanks for your spending time on setting up the forum. I tried just
now, it's amazing!
As for the following feature about delay sending, I wish you could
remove it(and wish send the mail without any delay)... because if we are
editing and have not completed in 2 minutes bu
Hi Nathan,
> When you post directly from your email client, there is no intentional
> delay.
I wish no intentional delay whether we post directly from email client or
not :-)
BTW, I can not find my post in any groovy official mailing list(e.g.
d...@groovy.apache.org, users@groovy.apache.or
Hi Adithyan,
How about caching the class instance and reuse it? Here are some
scratch code for your reference:
```
static LRUCache lruCache = new LRUCache(100);
def dslSrc = '''
your DSL source code
'''
def md5 = md5(dslSrc)
def resultClass = lruCache.getAndPut(md5, k -> new GroovyShell
Hi Paul,
“Groovy Champions” make people associate it with "Java Champions"
easily. As for "Groovy Stars", it is interesting but let me associate "Song
Stars" and "Kungfu Stars" easily... I wish other people would not associate
as I do...
Similarly, many years ago some one suggested to
Hi all,
I have created a demo project to show how to try Groovy in a Java
project via JitPack. Here is the link to the project repository:
https://github.com/danielsun1106/try-jitpack
The key parts of build.gradle is shown as follows:
```
repositories {
mavenCentral()
maven { ur
The creator of Groovy said "I can honestly say if someone had shown me the
Programming in Scala book...". I think he compared Scala with the old
version of Groovy he created in about 2003. As we all know, Groovy has
evolved a lot, so I never care about others' out-dated opinions on Groovy :)
Cheer
Hi Don,
The issue should be fixed in 2.5.0+(NOT included in 2.5.0-beta-3),
please reference the thread about jitpack to give it a try:
http://groovy.329449.n5.nabble.com/JitPack-for-Groovy-tp5747625.html
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f3
That's great!
2.6.0-alpha-3 and 3.0.0-alpha-2 are coming soon ;-)
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Done :-)
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Hi mg,
Parrot is smart enough to distinguish closure and code block, so
`block` is not necessary. BTW, new keywords may break existing code ;)
As for `eval`, we can use `{ /* do something here */ }()` instead, e.g.
`{ 'abc' }()`
P.S. I am open to any proposal for grammar ;-)
Cheers,
D
Nice work. Thanks!
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Paul, thanks for your help during the release :-)
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Hi Francesco,
You should still be able to use groovy-all, but the relevant
individual JARs will be downloaded(not the original
fat jar file groovy-all.jar).
org.codehaus.groovy
groovy-all
3.0.0-alpha-2
pom
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.na
`pom` is the key part
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
`pom` is not required. FYI:
http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
4.0.0
me.sunlan
try-groovy-via-mvn
1.0-SNA
For gradle user:
group 'me.sunlan'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.codehaus.groovy', name: 'groovy-all', version:
'3.0.0-alpha-2'
}
Cheers,
Daniel.Sun
--
Sent from: http://gro
Hi mg,
As far as I remember, two dimensional array like`int[][] a = [[1, 2,
3], [4, 5, 6]]` will go wrong in the Groovy style.
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Hi Jochen,
Supporting Java-like array is to copy & paste code in Java easily,
e.g. experiment Java code in groovy console :-)
> I really don't think Groovy has to support everything from Java.
I agree. If we could improve the compatibility between Groovy and
Java, it would be good fo
FYI, here is the poll result from
twitter(https://twitter.com/daniel_sun/status/990544485196091395):
19 votes in total,
58% +1,
42% 0,
0% -1
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Nice work, Paul.
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Nice work!
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Hi Paul,
> (1) Since we don't use the "groovy/groovy-core" repo any longer, I don't
> think that is the correct one to use but rather "apache/groovy".
As you said in (2), `According to official Apache policy, the ASF
doesn't accept "cash for code"`, I am not sure we can create open collecti
Here is the introduction of Open Source Collective 501c6 (Non Profit):
https://opencollective.com/opensourcecollective
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Nice post. I've read it.
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Yep. e.g. banks usually does not allow employees access Internet. Luckily
some of them will setup maven server.
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Hi Mauro,
The issue you most want to fix is fixed:
https://github.com/apache/groovy/commit/f9ebd615cb5d5f766a30b2a6e904084acece
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Hi Paul,
I'm very glad to hear the great news!
Up to now, Friends of Groovy Open Collective has received donations
from(order by donation time):
1) Jorge Aguilera($10, backer)
2) GR8Conf($50)
3) Masaaki Saito($50)
4) Lemi Orhan Ergin($10)
5) Adam Davis($20)
6) Paolo Di Tommaso($50)
7)
My pleasure ;-)
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Nice work, Keegan.
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Nice work, Keegan.
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
MIP(aka Murex Interface Platform) of BEA is developed with Groovy 3.
There are about tens of thousands LOC in groovy files.
P.S. I am not able to provide accurate LOC because I do not work for BEA any
more...
Cheers,
Daniel Sun
On 2020/06/26 22:24:24, MG wrote:
> A quick survey: Who on t
Nice work, Keegan.
Cheers,
Daniel Sun
On 2020/07/26 20:01:21, Keegan Witt wrote:
> Bugs
>
> None
> Enhancements
>
>- Add a property to skip script execution (#162
><https://github.com/groovy/GMavenPlus/issues/162>)
>
> Potentially breaking changesNon
The parentheses of methods without parameters could not be ommitted.
`[1, 2, 3].size` is accessing the private field `size` of `ArrayList`, so
illegal reflective access warning will be thrown.
Cheers,
Daniel Sun
On 2020/08/01 00:49:54, paul wrote:
> Hi all,
>
> (on latest groovy
Please try 3.0.6+, we have tuned the performance a lot.
Cheers,
Daniel Sun
On 2020/10/16 18:58:28, Stephen Mallette wrote:
> Hello,
>
> I happened to be testing some issues related to this pull request I
> submitted the other day:
>
> https://github.com/apache/groovy
nc. OS: Windows 10
```
Cheers,
Daniel Sun
[1] my script:
```
def begin = System.currentTimeMillis()
// 500 lines of "1 + 10 +"
def result = new GroovyShell().evaluate '''
1 + 10 +
1 + 10 +
1 + 10 +
1 + 10 +
1 + 10 +
1 + 10 +
1 + 10 +
1 + 10 +
1 + 10 +
1 + 10 +
1 +
Nice work!
Cheers,
Daniel Sun
On 2020/12/01 04:22:54, Keegan Witt wrote:
> Bugs
>
>- Fixes IllegalArgumentException when consoleScript parameter was loaded
>from POM rather than command line property.
>
> Enhancements
> None
> Potentially breaking changes
Nice work, Keegan.
Cheers,
Daniel Sun
On 2020/12/04 04:48:06 Keegan Witt wrote:
> Windows installers for the latest Groovy releases are now available.
>
> 2.4.21:
> https://bintray.com/groovy/Distributions/download_file?file_path=groovy-2.4.21.msi
> 2.5.14:
> https://
Groovy does not support checking empty closure at runtime AFAIK, but we could
check and set some property to closure while compiling, then get the property
at runtime. It will be an new improvement, not sure if others like it or not.
Cheers,
Daniel Sun
On 2021/02/17 15:06:47, OCsite wrote
Nice work, Paul!
Cheers,
Daniel Sun
On 2021/04/16 05:57:30, Paul King wrote:
> Dear community,
>
> The Apache Groovy team is pleased to announce version 4.0.0-alpha-3 of
> Apache Groovy.
> Apache Groovy is a multi-faceted programming language for the JVM.
> Further details c
Nice work, Keegan!
Cheers,
Daniel Sun
On 2021/04/19 22:50:19, Keegan Witt wrote:
> Windows installers for the latest Groovy releases are now available. These
> are the first releases to be on our Bintray replacement, now that it's been
> sunset
> <https://jfrog.com/blog/int
hub.com/apache/groovy/blob/master/src/main/java/org/codehaus/groovy/reflection/stdclasses/CachedSAMClass.java#L69-L91
Cheers,
Daniel Sun
On 2021/04/22 12:24:39, Graeme Rocher wrote:
> Hi all,
>
> We are close to getting Micronaut's JDK 16 builds passing however some
> tests are f
r issues were found when running on JDK16 too, see
http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
P.S. sorry for the late reply. I'm too busy recently to look into issues...
[1] https://github.com/apache/groovy/pull/1598
Cheers,
Daniel Sun
On 2021/05/01 18:53:19, Graeme Rocher wro
JDK16 should be supported fully if the PR is accepted:
https://github.com/apache/groovy/pull/1598
Cheers,
Daniel Sun
On 2021/06/15 02:35:18, Daniel Sun wrote:
> Hi Graeme,
>
> > is there an issue report to track this or should I file one?
>
> The issue reports were created
,
Daniel Sun
On 2021/10/22 15:02:16, Max Lynch wrote:
> I'm building a tool for making modifications against Groovy/Gradle files.
> I've successfully built an AST using AstBuilder, but I'm not sure how to
> generate Groovy code from the modified AST I have.
>
> I found the
Please submit a JIRA ticket to track the issue[1], and it's better to provide
us a standalone runnable script to reproduce the issue.
Cheers,
Daniel Sun
[1] https://issues.apache.org/jira/projects/GROOVY/summary
On 2021/11/28 19:07:47 Jochen Wiedmann wrote:
> Hi,
>
> I've
Could you try the latest stable version, i.e. 4.0.21. As the following
configuration shows, Java 21 is supported by Groovy 4.0.21.
https://github.com/apache/groovy/blob/c4615cec66ed07c7f0d9c8c73ee9a6dbda147952/.github/workflows/groovy-build-test-ea.yml#L32
Cheers,
Daniel Sun
On 2024/05/16 10
/org/apache/groovy/ginq/GinqTest.groovy#L4789
Cheers,
Daniel Sun
On 2024/10/05 17:16:02 Per Nyfelt wrote:
> Hi, I am trying to learn Ginq and are having problems with joining an
> aggregation functions.
>
> The following example illustrates the issue:
>
> import java.time.Lo
"GROOVY-11491: Add support for join and group by in ginq" is fixed in 4.0.24
and 5.0.0-alpha-11.
https://github.com/apache/groovy/commit/6371ceaeea0fee1a9760e9b81d293f487ceff429
Cheers,
Daniel Sun
On 2024/10/09 04:25:31 Daniel Sun wrote:
> I will look into the issue later.
&
try setting the following system property for groovy compilation:
-Dgroovy.target.bytecode=1.8
Cheers,
Daniel Sun
On 2024/12/13 00:14:39 James Poli via users wrote:
> Our company has upgraded to Groovy 4 and JDK 21. However, one platform we
> support, MVS, only supports a JDK 8 r
Hi Blake,
I think AST transformation can help you.
Cheers,
Daniel Sun
On 2025/04/06 23:49:21 Blake McBride wrote:
> Greetings,
>
> I am trying to write a RAG chunker for Groovy. This is used to (essentially)
> train an AI/LLM on my code base so that the AI/LLM can help me wi
Hi Luis,
I find 4.0.8 a bit outdated. Please give Groovy 4.0.26 a try.
BTW, could you submit a JIRA ticket and attach a script to reproduce the issue?
Cheers,
Daniel Sun
On 2025/04/25 05:13:15 Luis Ashurei wrote:
> Hello,
>
> I have a java application running heavily groovy scrip
I find JRuby had a similar issue:
https://github.com/jruby/jruby/issues/4391
Cheers,
Daniel Sun
On 2025/04/25 05:13:15 Luis Ashurei wrote:
> Hello,
>
> I have a java application running heavily groovy scripts. After
> running for weeks, the system encountered Full GC in every day,
Awesome!
On 2025/04/02 12:11:51 Per Nyfelt wrote:
> Maybe this is of interest to some people here.
>
> I just released a new version of the Matrix library:
> https://github.com/Alipsa/matrix. It’s a groovy library for data analysis /
> data science similar in scope to Tablesaw for java or Panda
Please create a JIRA ticket to track the issue.
Cheers,
Daniel Sun
On 2025/05/10 14:39:44 Mirco Colletta wrote:
> Hi Paul,
> I've tried with the 5.0.0-alpha12 but unfortunately I get the same error :-(
> The ony difference is that the error this time came in a class definition
&
Hi Per,
You can find the `leftjoin` usage here:
https://github.com/apache/groovy/blob/b046d1b2bcbbddd59ea3d6abdf5de24a671ce51a/subprojects/groovy-ginq/src/spec/test/org/apache/groovy/ginq/GinqTest.groovy#L763
Cheers,
Daniel Sun
On 2025/06/17 20:46:35 Per Nyfelt wrote:
> Hi,
>
> I ran
-0 from me.
`@CompileStatic` and `@CompileDynamic` are used more frequently than the
classes in the java.time package.
Why not add them as well?
Cheers,
Daniel Sun
On 2025/05/31 07:36:51 Paul King wrote:
> Hi folks,
>
> We have a feature request, and potential PR, to add java.ti
mcid.*
}
```
BTW, I tried to find the `e.*` usage in LINQ of C#, it is not supported
either.
Cheers,
Daniel Sun
On 2025/06/20 22:29:13 Per Nyfelt wrote:
> Hi Daniel,
>
> I was obviously not phrasing my question well. Let me give it another go:
>
> Given two list of objects:
&
89 matches
Mail list logo