Re: Ginq: combining join and aggregate functions

2024-10-14 Thread Mario Garcia
Well done! El sáb, 12 oct 2024, 18:14, Per Nyfelt escribió: > Wonderful news! > > On 10/12/24 17:39, Daniel Sun wrote: > > "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/6371ceaeea0fee1a9760e9b8

Re: Ginq: combining join and aggregate functions

2024-10-08 Thread Mario Garcia
s.item > > groupby w.name <http://n.name/> > > > > I submitted a feature request for this here: > https://issues.apache.org/jira/projects/GROOVY/issues/GROOVY-11491 > > > > *From: *Mario Garcia > *Reply to: *"users@groovy.apache.org" > *

Re: Ginq: combining join and aggregate functions

2024-10-07 Thread Mario Garcia
I guess you can create a nested statement and do it all at once def qSum = GQ { from n in ( from s in sales join w in warehouse on w.id == s.item select w.name, w.price) groupby n.name select n.name, sum(n.price) as price } El dom, 6 oct 2024 a las 10:26, Per Nyfel

Re: Update the Groovy color used on github.

2021-06-16 Thread Mario Garcia
+1 El mié, 16 jun 2021 a las 1:15, Paul King () escribió: > +1 > > On Fri, Jun 11, 2021 at 3:24 PM Michael Bailey > wrote: > >> I opened a PR to get the Groovy color on Github updated to the blue from >> the logo. >> See https://github.com/github/linguist/pull/5418 >> >> If you would like to see

Re: Groovy and Java's JShell scripting in Groovylab

2019-06-29 Thread Mario Garcia
I'm sorry I haven't had the time to play with GroovyLab yet and a little bit outdated about jshell capabilities but I'm curious, How Jshell use could have better experience than lets say using Groovy shell directly ? El jue., 27 jun. 2019 15:42, sterg escribió: > Hi all, > > > I started to in

Re: requesting your advice on picocli modules

2019-05-30 Thread Mario Garcia
+ 1 picoli-groovy.jar Great project BTW! El jue., 30 may. 2019 a las 14:51, Remko Popma () escribió: > Hi, > > I maintain the picocli library for creating command line applications in > Groovy, Java, and other JVM languages. > I have a question for the Groovy community (both users and developers

Re: [ANN] Announcing CodeNarc 1.3

2019-01-30 Thread Mario Garcia
Great! Keep up with the good work! I think Codenarc is one of the most useful projects in the Groovy ecosystem. El mar., 29 ene. 2019 a las 19:00, Daniel.Sun () escribió: > Nice work! > > > > > > - > Apache Groovy committer > Blog: http://blog.sunlan.me > Twitter: @daniel_sun > > -- > Sent fr

Re: What is the best replacement for running scripts using groovy-all?

2018-12-20 Thread Mario Garcia
BTW about @Grab, bear in mind that you can tell @Grab where to put/take its dependencies from: groovy -Dgrape.root=./lib my_script.groovy So every project can have its dependencies in the project's structure. Regards Mario El jue., 20 dic. 2018 a las 10:44, Paul Moore () escribió: > I can unde

Re: [DISCUSS] Groovy 2.6 potential retirement to focus on Groovy 3.0

2018-06-13 Thread Mario Garcia
I would say 3 as well 2018-06-13 10:04 GMT+02:00 Robert Oschwald : > Same with me. Option 3 seems best, even when some of our projects are > still on Grails 2. > > > Am 13.06.2018 um 09:50 schrieb Søren Berg Glasius : > > While the project I'm on is still on JDK 7, but due to Grails 2.x I think >

Re: AST to replace `==` with `equals` method invocation

2018-06-13 Thread Mario Garcia
Hi Paolo: A couple of years ago I created Asteroid ( https://github.com/grooviter/asteroid) a library to deal with AST transformations. I needed to create a minor release so I've taken the oportunity to solve this problem and I think is pretty easy. - Create a Transformer. A transformer is jus

Re: [ANNOUNCE] BeakerX: Groovy support for Jupyter Notebooks

2018-04-18 Thread Mario Garcia
Looks awesome thanks :) El mié., 18 abr. 2018 18:50, Daniel.Sun escribió: > Nice > > > > > -- > Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html >

Re: Groovy Champions proposal feedback

2018-02-25 Thread Mario Garcia
+1 to what Guillaume said :) Common guys! Lets focus on what we think is a great language and let others think what they want! Regarding the duration of the award. I've though about it, trying not to think in terms of annually or permanent, but trying to see what's out there outside the CS world,

Re: @Groovy Champions: Groovy Development Funding ?

2018-02-22 Thread Mario Garcia
ger number of people giving smaller amounts to fund a > development goal together... > > Cheers, > mg > > > > On 21.02.2018 15:50, Mario Garcia wrote: > > I thought this could be worth sharing. > > The company I work for developed some time ago, Tribe ( > ht

Re: @Groovy Champions: Groovy Development Funding ?

2018-02-21 Thread Mario Garcia
Patreon? - video > https://www.youtube.com/watch?time_continue=1&v=rwvUjAv6pxg > > Cheers, > Eric Kinsella > > > On Fri, Feb 16, 2018 at 12:37 PM, MG wrote: > >> That should be no problem, I would be happy to do a Groovy "thank you" >> mug o.s. :-) &

Re: @Groovy Champions: Groovy Development Funding ?

2018-02-16 Thread Mario Garcia
+1 but also keep in mind that sometimes could be also something as simple as a "grateful box pack" with a T-shirt, sticker or a mug. I would love that too. Mario El 16 feb. 2018 11:49 a. m., "Jochen Theodorou" escribió: > > > Am 16.02.2018 um 03:27 schrieb Paul King: > >> Actually, Apache also

Re: Groovy Champions proposal feedback

2018-02-14 Thread Mario Garcia
Of course +1000 to the idea :) 2018-02-14 4:39 GMT+01:00 Andres Almiray : > Groovy Star has a nice ring to it, specially if the logo of the program > links to the Groovy logo :-) > > --- > Java Champion; Groovy Enthusiast > JCP EC Associate Seat > http://an

Re: Upcoming releases

2018-02-06 Thread Mario Garcia
That's good News :) 2018-02-06 8:19 GMT+01:00 Paul King : > > I am planning to prepare a 2.5.0-beta-3 release towards the end of this > week and 2.4.14 not long after. Now's a good time to let us know if there > is something critical you need for those releases. > > I am expecting 2.5.0-beta-3 to

Re: Java 8 Date/Time API Extension Methods

2017-06-08 Thread Mario Garcia
+1 I think Many Groovy applications could benefit from having this in Groovy. 2017-06-09 1:02 GMT+02:00 Paul King : > +1 from me, but I'd be keen to hear Joe's thoughts? > > Cheers, Paul. > > > On Thu, Jun 8, 2017 at 10:37 PM, Dinko Srkoč > wrote: > >> On 8 June 2017 at 13:34, Russel Winder wr

Re: Emacs Groovy Mode

2017-05-28 Thread Mario Garcia
Thanks for the update :) Regards Mario 2017-05-11 2:36 GMT+02:00 Paco Zarate : > Thanks Russel and Wilfred! > > On Mon, May 8, 2017 at 1:45 AM, Russel Winder > wrote: > >> Anyone using the Emacs Groovy Mode from https://github.com/Groovy-Emacs >> -Modes/groovy-emacs-modes >>

Re: [ANNOUNCE] MirComp 1.0.0-alpha.1 Released

2017-04-24 Thread Mario Garcia
It looks amazing. I may get back to music as well ;) Great work :) 2017-04-23 14:24 GMT+02:00 Guillaume Laforge : > Congrats on the release! > I need to get back into music :-) > > On Sat, Apr 22, 2017 at 5:21 PM, Mirco wrote: > >> Hi Apache Groovy community, >> I have the pleasure to announce

Re: compile vs compileOnly in Gradle projects for Groovy LIbraries

2017-04-24 Thread Mario Garcia
I agree with Thibault, *compileOnly* and *provided* have specific objectives. Besides you can always tell Gradle to force a specific version of a given module https://docs.gradle.org/current/userguide/dependency_management.html#sec:finetuning_the_dependency_resolution_process 2017-04-22 2:48 GMT+

Re: Database Drivers

2017-04-07 Thread Mario Garcia
Hi: How is the driver added to the classpath ? Through @Grab ? Cheers Mario 2017-04-05 20:28 GMT+02:00 Imholz, John J. : > This message was sent securely by MUSC > > In Groovy Console “Class” seems to find the Driver, but “Sql” does not? > What am I misunderstanding? (BT

Re: Custom implicit type conversion on assignment

2017-03-31 Thread Mario Garcia
Yes, the only "native" mechanism I know to do coertion in Groovy (without applying metaprogramming) is to overwrite the asType method and apply it explicitly. For me creating an AST transform it's a very cool idea. Maybe, we could come up with a library having a configuration file with predefined

Re: Emacs Groovy Mode

2017-03-17 Thread Mario Garcia
Great news!!! I'm using Groovy and emacs daily basis so I'll try to keep an eye on this github repository. Thanks guys On 17 Mar 2017 20:26, "Balachandran Sivakumar" wrote: Hi Dr. Russel, Thanks to you and Wilfred for the groovy-mode in emacs :) I do use it quite extensively and will

Re: Trying to understand why groovydoc task needs groovy-all in Gradle 2.13 / 2.14

2016-06-29 Thread Mario Garcia
gt; On 29/06/2016 11:50, Mario Garcia wrote: > > I'm trying to execute a project using gradle 2.13 / 2.14 and it fails when > executing groovydoc saying: > > groovydoc doesn't support the "noTimestamp" attribute > > Checking gradle documentation it's say

Trying to understand why groovydoc task needs groovy-all in Gradle 2.13 / 2.14

2016-06-29 Thread Mario Garcia
I'm trying to execute a project using gradle 2.13 / 2.14 and it fails when executing groovydoc saying: groovydoc doesn't support the "noTimestamp" attribute Checking gradle documentation it's saying you should be using groovy-all, but sometimes I may not want to use the whole groovy-all jar. Doe

Re: Is it possible to enable CompileStatic for an entire project

2016-06-21 Thread Mario Garcia
If I'm not wrong, projects like Spock doesn't like @CompileStatic so in case I would like to statically compile my project, at least I should be telling the compiler not to compile statically my specifications. Something like: withConfig(configuration) { source(unitValidator: { unit -> !unit.A

Re: groovy-lang.org down for now

2016-05-22 Thread Mario Garcia
It seems to be responding now, yeah!! :) 2016-05-22 19:12 GMT+02:00 Andrew Bayer : > We're waiting on the ASF's upstream DNS providers to get everything > updated. > > > On Sunday, May 22, 2016, Suderman Keith wrote: > >> >> On May 22, 2016, at 5:58 PM, Jochen Theodorou wrote: >> >> The questio

Re: groovy-lang.org down for now

2016-05-22 Thread Mario Garcia
148.251.23.208 www.groovy-lang.org is working for me, thanks Jochen. I would post the temporary mapping in users list in case anybody else needs to access documentation/etc specially if the problem persists tomorrow (I really hope not!!) Mario 2016-05-22 18:41 GMT+02:00 Jochen Theodorou : > On 2

Re: groovy-lang.org down for now

2016-05-22 Thread Mario Garcia
Thanks Guillaume!! 2016-05-22 10:01 GMT+02:00 Guillaume Laforge : > I've pinged the infrastructure team at Apache to get an update. > I'll update you as I hear from them. > Le 22 mai 2016 8:15 AM, "Mario Garcia" a écrit : > >> Any update on this ?

Re: groovy-lang.org down for now

2016-05-21 Thread Mario Garcia
Any update on this ? It's been two days now :( Mario 2016-05-20 22:21 GMT+02:00 Guillaume Laforge : > Hi all, > > FYI, the Groovy website is currently down. > > We're migrating the domain-name to the Apache foundation, but it looks > like there are some issues with the transfer. > The Apache inf

Re: Applying annotations to extending classes?

2016-04-26 Thread Mario Garcia
Could you add some examples of your abstract class ? In the meantime I think there are a couple of facts that might be helpful: - If you use BaseScript with your abstract class, the script body becomes the implementation body of the abstract method ( http://docs.groovy-lang.org/next/html/

Re: Adding a Trait to a ClassNode during semantic analysis

2016-04-25 Thread Mario Garcia
Ok thanks! Mario 2016-04-25 19:23 GMT+02:00 John Smiljanic : > Two separate compilations. One for the traits and transforms (framework > code). The second for the user scripts that are transformed to dynamically > implement the trait. > > On Apr 22, 2016, at 01:33, Mari

Re: Spring Groovy application context and creating @Immutable class beans

2016-04-25 Thread Mario Garcia
You're welcome :) On 25 Apr 2016 20:05, "Rick Venutolo" wrote: > I had not thought to use that constructor. Thank you! > > On Mon, Apr 25, 2016 at 5:01 AM, Mario Garcia > wrote: > >> Although I think It should be better to discuss this in the Grails >&

Re: Spring Groovy application context and creating @Immutable class beans

2016-04-25 Thread Mario Garcia
Although I think It should be better to discuss this in the Grails mailing list (they sure have much more experience in Spring+Groovy) I have done a little test in a Grails app with an immutable (@Immutable) bean: package a.b.c @Immutable class Pagination { Integer max } myBean(a.b.c.Paginati

Re: Adding a Trait to a ClassNode during semantic analysis

2016-04-22 Thread Mario Garcia
Nice :) Just to get this straight, you compiled the traits first and then you compiled the local transformation and the user-developer code altogether. It's that correct ? 2016-04-21 23:16 GMT+02:00 John Smiljanic : > After some digging I found > org.codehaus.groovy.transform.trait.TraitCompos

Re: Adding a Trait to a ClassNode during semantic analysis

2016-04-21 Thread Mario Garcia
I'm afraid the latest CompilePhase where you can use that approach is CONVERSION. That means that in order to achieve what you wanted, you should be using a global transformation. Then you can make the ClassNode to implement the given trait . Hope this helps :) Mario 2016-04-20 22:08 GMT+02:00 J