Paul King | 1 Jul 2011 02:20
Picon
Favicon
Gravatar

Re: [groovy-user] Re: AST transformations for enum


It has been a while but just to close of this thread for the
benefit of future googling, transforms have been enabled enums.
E.g.:

 <at> groovy.transform.ToString enum Coin {
     DIME(10), QUARTER(25)
     int val
     Coin(val) { this.val = val }
}
assert Coin.QUARTER.toString() == 'Coin(25)'

Cheers, Paul.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Daniel Henrique Alves Lima | 1 Jul 2011 05:24
Picon
Favicon
Gravatar

[groovy-user] Re: [grails-user] Traffic to mailing list seems not to have increased over the years, but quite the contrary, decreased.

    Hi Mohamed.

    Some graphs and stats:

http://grails.markmail.org/
http://groovy.markmail.org/

http://grails.markmail.org/search/?q=
http://groovy.markmail.org/search/?q=

    I suppose you should disregard automated messages (like those sent 
by SCM *- software configuration management*).

    Best regards,

        Daniel.

Mohamed Seifeddine wrote:
> Hi, 
>
> Traffic to the mailing lists seems not to have increased over the 
> years, but quite the contrary, decreased. 
> This is quite strange as I am sure the number of Groovy and Grails 
> users have increased and so should the traffic on the mailing list.
>
> I think this is quite sad and that the groovy and grails mailing lists 
> should be advertised in a better way.
> It should perhaps be offered after downloading Groovy or Grails, by 
> just filling in your email address with an explanation on how it can 
> benefit the developer. 
(Continue reading)

nagaimasato.pub | 1 Jul 2011 07:17
Picon
Gravatar

Re: [groovy-user] Need help with TimeDuration/TimeCategory

TimeDuration's months/days/hours are just properties. You need to format by yourself.



On Jul 1, 2011 7:03am, David Hicks <dhdev-4XDk1qkoqj5AfugRpC6u6w@public.gmane.org> wrote:
>
>
>
>
>
>
>
> I'm attempting to "pretty print" an uptime value from a database
> server.  The value I have is in minutes.  I thought it should be a
> breeze to print it out like...
>
> Months: xxx,  Days: xxx,  Hours: xxx  ...  etc
>
>
> Apparently, I was wrong, or I'm just missing something.  Here's what
> I've got right now:
>
>     def duration = new TimeDuration(0,0,uptime,0,0)
>
>     use(groovy.time.TimeCategory) {
>
>         println "Uptime for Database: Months: ${duration.months},
> Days: ${duration.days}, Hours: ${duration.hours}, Minutes:
> ${duration.minutes}"
>
>     }
>
>
> The output I get is:
>
> Uptime for Database: Months: 0, Days: 0, Hours: 0,
> Minutes: 9190499
>
>
> Surely, I'm doing something stupid.  Any help?
>
> Thanks,
>
> Dave
>
>
>
>
>
>
>

nagaimasato.pub | 1 Jul 2011 07:29
Picon
Gravatar

Re: Re: [groovy-user] Need help with TimeDuration/TimeCategory

And TimeCategory's months/days/hours work only for integers and they just return integers as TimeDuration object.
So the "duration.hours" means calling TimeDuration.getHours(). TimeCategory does nothing in the case.

On Jul 1, 2011 2:17pm, nagaimasato.pub-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
> TimeDuration's months/days/hours are just properties. You need to format by yourself.
>
>
>
> On Jul 1, 2011 7:03am, David Hicks dhdev-4XDk1qkoqj5AfugRpC6u6w@public.gmane.org> wrote:
> >
> >
> >
> >
> >
> >
> >
> > I'm attempting to "pretty print" an uptime value from a database
> > server.  The value I have is in minutes.  I thought it should be a
> > breeze to print it out like...
> >
> > Months: xxx,  Days: xxx,  Hours: xxx  ...  etc
> >
> >
> > Apparently, I was wrong, or I'm just missing something.  Here's what
> > I've got right now:
> >
> >     def duration = new TimeDuration(0,0,uptime,0,0)
> >
> >     use(groovy.time.TimeCategory) {
> >
> >         println "Uptime for Database: Months: ${duration.months},
> > Days: ${duration.days}, Hours: ${duration.hours}, Minutes:
> > ${duration.minutes}"
> >
> >     }
> >
> >
> > The output I get is:
> >
> > Uptime for Database: Months: 0, Days: 0, Hours: 0,
> > Minutes: 9190499
> >
> >
> > Surely, I'm doing something stupid.  Any help?
> >
> > Thanks,
> >
> > Dave
> >
> >
> >
> >
> >
> >
> >

Dave Hicks | 1 Jul 2011 07:45

Re: [groovy-user] Need help with TimeDuration/TimeCategory

So, if I understand what you're saying, then TimeDuration is really just 
a bean?  It doesn't actually do anything useful.  It just holds data?

On 07/01/2011 01:29 AM, nagaimasato.pub@... wrote:
> And TimeCategory's months/days/hours work only for integers and they 
> just return integers as TimeDuration object.
> So the "duration.hours" means calling TimeDuration.getHours(). 
> TimeCategory does nothing in the case.
>
> On Jul 1, 2011 2:17pm, nagaimasato.pub@... wrote:
> > TimeDuration's months/days/hours are just properties. You need to 
> format by yourself.
> >
> >
> >
> > On Jul 1, 2011 7:03am, David Hicks dhdev@...> wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > I'm attempting to "pretty print" an uptime value from a database
> > > server.  The value I have is in minutes.  I thought it should be a
> > > breeze to print it out like...
> > >
> > > Months: xxx,  Days: xxx,  Hours: xxx  ...  etc
> > >
> > >
> > > Apparently, I was wrong, or I'm just missing something.  Here's what
> > > I've got right now:
> > >
> > >     def duration = new TimeDuration(0,0,uptime,0,0)
> > >
> > >     use(groovy.time.TimeCategory) {
> > >
> > >         println "Uptime for Database: Months: ${duration.months},
> > > Days: ${duration.days}, Hours: ${duration.hours}, Minutes:
> > > ${duration.minutes}"
> > >
> > >     }
> > >
> > >
> > > The output I get is:
> > >
> > > Uptime for Database: Months: 0, Days: 0, Hours: 0,
> > > Minutes: 9190499
> > >
> > >
> > > Surely, I'm doing something stupid.  Any help?
> > >
> > > Thanks,
> > >
> > > Dave
> > >
> > >
> > >
> > >
> > >
> > >
> > > 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Guillaume Laforge | 1 Jul 2011 08:33
Gravatar

Re: [groovy-user] Traffic to mailing list seems not to have increased over the years, but quite the contrary, decreased.


On Thu, Jun 30, 2011 at 23:19, Marc Palmer <marc-jTVUvg37bMBTgsEVMPZbmg@public.gmane.orguk> wrote:
[...] 
These kinds of numbers are had to get much from unless they are broken down by downloaded version, or unique clients.

I used to do such breakdown a long time ago when there was an almost usable download statistics app at Codehaus, but it's not the case anymore, so instead, I had to grep through gigabytes of raw Apache logs. 

Are there more detailed numbers? (same applies to Grails).

I've lost my little grep-ish script since then (it was in /temp that I regularly clean...) and would have to re-download all the logs some day to have a more precise view of the landscape. Also the more recent logs are not (yet) accessible to me. But I'll certainly do that again sometime in the future.
  
i.e. getting per-release download numbers can go some way to showing the community size better than combined monthly figures. People who have an old version tend to download the new, and this can skew the monthly results. People obviously download things multiple times too.

From experience, users are not very fast to update to newer versions, even if they are more inclined to test-drive the final release of a major version, for example. But that's really just qualitative than quantitative.
There are certainly people who download things multiple times, yes (including failed downloads / download managers / several computers), but there are also many companies using proxy caches, intermediary repository managers (nexus), etc. 
And of course, there are Maven Central downloads that I can't count at all, and which may probably represent the majority of downloads :-(
 
Furthermore, people who use Groovy only inside Grails do not feature as Groovy downloads at all, so it make more sense (for Groovy) to include Grails downloads in groovy figures too, to show the size of the user base, surely?

Well, there are also many other projects using Groovy, like Gradle, Spock, Griffon, CodeNarc, etc, etc...
I tend to prefer sticking to the pure Groovy numbers for now, but obviously the community of Groovy "users" is much bigger than just those using "pure" Groovy (ie. as a library in their projects, as their scripting language on their machines, etc).


--
Guillaume Laforge
Groovy Project Manager
Head of Groovy Development at SpringSource
http://www.springsource.com/g2one
Gaurav Chauhan | 1 Jul 2011 08:45

Re: [groovy-user] Traffic to mailing list seems not to have increased over the years, but quite the contrary, decreased.

Having worked with Grails from last 2.5 years. I can vouch for the Indian scenario. When i started my first job there were only 2 companies that were working with Grails and one was ours. But now the adoption has increased a lot. Companies in Bangalore, Mumbai, Hyderabad, Delhi have started using Grails for their bigger projects. I can tell by the number of jobs they post on sites.

I have also seen a trend where companies are migrating there existing J2EE apps to Grails. (I helped one company in that).

As far as mailing list is concerned i have created a filter in my email and i read the new posts almost everyday. I find it to be a better to stay connected to the community.


Regards
Gaurav Chauhan



On Fri, Jul 1, 2011 at 12:03 PM, Guillaume Laforge <glaforge-yCVjj/EcxBJg9hUCZPvPmw@public.gmane.org> wrote:

On Thu, Jun 30, 2011 at 23:19, Marc Palmer <marc-jTVUvg37bMAqdlJmJB21zg@public.gmane.org> wrote:
[...] 
These kinds of numbers are had to get much from unless they are broken down by downloaded version, or unique clients.

I used to do such breakdown a long time ago when there was an almost usable download statistics app at Codehaus, but it's not the case anymore, so instead, I had to grep through gigabytes of raw Apache logs. 

Are there more detailed numbers? (same applies to Grails).

I've lost my little grep-ish script since then (it was in /temp that I regularly clean...) and would have to re-download all the logs some day to have a more precise view of the landscape. Also the more recent logs are not (yet) accessible to me. But I'll certainly do that again sometime in the future.
  
i.e. getting per-release download numbers can go some way to showing the community size better than combined monthly figures. People who have an old version tend to download the new, and this can skew the monthly results. People obviously download things multiple times too.

From experience, users are not very fast to update to newer versions, even if they are more inclined to test-drive the final release of a major version, for example. But that's really just qualitative than quantitative.
There are certainly people who download things multiple times, yes (including failed downloads / download managers / several computers), but there are also many companies using proxy caches, intermediary repository managers (nexus), etc. 
And of course, there are Maven Central downloads that I can't count at all, and which may probably represent the majority of downloads :-(
 
Furthermore, people who use Groovy only inside Grails do not feature as Groovy downloads at all, so it make more sense (for Groovy) to include Grails downloads in groovy figures too, to show the size of the user base, surely?

Well, there are also many other projects using Groovy, like Gradle, Spock, Griffon, CodeNarc, etc, etc...
I tend to prefer sticking to the pure Groovy numbers for now, but obviously the community of Groovy "users" is much bigger than just those using "pure" Groovy (ie. as a library in their projects, as their scripting language on their machines, etc).



--
Guillaume Laforge
Groovy Project Manager
Head of Groovy Development at SpringSource
http://www.springsource.com/g2one

Mohamed Seifeddine | 1 Jul 2011 09:40
Picon

Re: [groovy-user] Re: [grails-user] Traffic to mailing list seems not to have increased over the years, but quite the contrary, decreased.

Hard evidence with the graphs. Clearly shows the declining numbers. 

I can also confirm that stackoverflow results seem to increase. 

My point with this message is that the mailing list should be advertised and made easier to access with an explanation of its clear benefits, together with the download. 

The http://groovy.codehaus.org website isn't exactly attractive or user friendly. To me it feels like a maze where you might bump into certain information. Usually coming from Google. I'd like the information to be more centralized. I do not like the idea of missing out on information on certain topic just because it's more suited somewhere, in some other guide or for advanced readers. There is better ways to orgranize that information. Why is there ads on the Groovy site as well? Obviously this can hurt both impression and adoption. 

On Fri, Jul 1, 2011 at 5:24 AM, Daniel Henrique Alves Lima <email_daniel_h-/E1597aS9LRfJ/NunPodnw@public.gmane.org> wrote:
  Hi Mohamed.

  Some graphs and stats:

http://grails.markmail.org/
http://groovy.markmail.org/

http://grails.markmail.org/search/?q=
http://groovy.markmail.org/search/?q=

  I suppose you should disregard automated messages (like those sent by SCM *- software configuration management*).

  Best regards,

      Daniel.


Mohamed Seifeddine wrote:
Hi,
Traffic to the mailing lists seems not to have increased over the years, but quite the contrary, decreased. This is quite strange as I am sure the number of Groovy and Grails users have increased and so should the traffic on the mailing list.

I think this is quite sad and that the groovy and grails mailing lists should be advertised in a better way.
It should perhaps be offered after downloading Groovy or Grails, by just filling in your email address with an explanation on how it can benefit the developer. Then you only have to reply to it, after which you start recieving the emails.  Access to an account needs to be made easier. Many developers are unaware of mailing lists.

Just my two cents :)

/ Mohamed

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email



Guillaume Laforge | 1 Jul 2011 10:19
Gravatar

Re: [groovy-user] Re: [grails-user] Traffic to mailing list seems not to have increased over the years, but quite the contrary, decreased.

Over the next several months (this won't happen in a day at all), we're going to rework the website and documentation completely.
It's really going to take a while, but hopefully, the situation should improve, in order to find the right info more quickly, have fast access to key elements (lists, downloads, etc).

Regarding the ads on the Groovy website, it's a bit tricky. Let me tell you why.
Groovy is the most successful and popular project at Codehaus, and a big share of the revenues of the Codehaus foundation comes from the ads that are displayed on the Groovy website.
So if we remove those ads, it's like putting Codehaus in a big mess, not being able to pay for the hosting, the servers, the bandwidth, the CI servers, and so on, and so on. So I'm not sure we'll really be able to remove them completely, we'll see after we discuss with Codehaus.

Guillaume

On Fri, Jul 1, 2011 at 09:40, Mohamed Seifeddine <mseifeddo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hard evidence with the graphs. Clearly shows the declining numbers. 
I can also confirm that stackoverflow results seem to increase. 

My point with this message is that the mailing list should be advertised and made easier to access with an explanation of its clear benefits, together with the download. 

The http://groovy.codehaus.org website isn't exactly attractive or user friendly. To me it feels like a maze where you might bump into certain information. Usually coming from Google. I'd like the information to be more centralized. I do not like the idea of missing out on information on certain topic just because it's more suited somewhere, in some other guide or for advanced readers. There is better ways to orgranize that information. Why is there ads on the Groovy site as well? Obviously this can hurt both impression and adoption. 

On Fri, Jul 1, 2011 at 5:24 AM, Daniel Henrique Alves Lima <email_daniel_h-/E1597aS9LRfJ/NunPodnw@public.gmane.org> wrote:
  Hi Mohamed.

  Some graphs and stats:

http://grails.markmail.org/
http://groovy.markmail.org/

http://grails.markmail.org/search/?q=
http://groovy.markmail.org/search/?q=

  I suppose you should disregard automated messages (like those sent by SCM *- software configuration management*).

  Best regards,

      Daniel.


Mohamed Seifeddine wrote:
Hi,
Traffic to the mailing lists seems not to have increased over the years, but quite the contrary, decreased. This is quite strange as I am sure the number of Groovy and Grails users have increased and so should the traffic on the mailing list.

I think this is quite sad and that the groovy and grails mailing lists should be advertised in a better way.
It should perhaps be offered after downloading Groovy or Grails, by just filling in your email address with an explanation on how it can benefit the developer. Then you only have to reply to it, after which you start recieving the emails.  Access to an account needs to be made easier. Many developers are unaware of mailing lists.

Just my two cents :)

/ Mohamed

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email






--
Guillaume Laforge
Groovy Project Manager
Head of Groovy Development at SpringSource
http://www.springsource.com/g2one
Marc Palmer | 1 Jul 2011 10:36
Picon
Gravatar

Re: [groovy-user] Traffic to mailing list seems not to have increased over the years, but quite the contrary, decreased.


On 1 Jul 2011, at 07:33, Guillaume Laforge wrote:

> 
> [..]
> Well, there are also many other projects using Groovy, like Gradle, Spock, Griffon, CodeNarc, etc, etc...
> I tend to prefer sticking to the pure Groovy numbers for now, but obviously the community of Groovy "users"
is much bigger than just those using "pure" Groovy (ie. as a library in their projects, as their scripting
language on their machines, etc).
> 

I think it will open a lot more people up to Groovy if you include all these figures. i.e. it matters less how
many people download Java directly than how many are using it in apps on their servers/desktops every day.

So I would recommend including Groovy download figures, and then "... here we have the total downloads of
frameworks and tools that use Groovy as their primary scripting language: Grails, Gradle, Griffon,
Spock..." etc for all the figures you can get.

...and then a total figure.

Example: I hardly ever download groovy itself, yet I am a massive user and proponent of groovy. For command
scripting I'm fine with a version from ~18months ago, but use the later versions in Grails/Gradle every day.

It will have more impact.

~ ~ ~
Marc Palmer
Freelancer (Grails/Groovy/Java)

Founder  <at>  http://noticelocal.com | Developer  <at>  http://weceem.org
Member  <at>  http://spottymushroom.com | Contributor  <at>  http://grails.org
Twitter: http://twitter.com/wangjammer5 | Resumé: http://www.anyware.co.uk/marc/
Blog: http://www.anyware.co.uk | Grails Rocks: http://www.grailsrocks.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Gmane