gpars grape

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

gpars grape

Dierk König
Hi all,

I tried in a script:

@GrabResolver(name='jboss', root='http://repository.jboss.org/maven2')
@GrabResolver(name='codehaus.snapshot', root='http://snapshots.repository.codehaus.org 
')
@Grab('org.codehaus.gpars:gpars:0.9-beta-1')
import groovyx.gpars.Parallelizer

List list = (1..9).toList()

Parallelizer.withParallelizer {
     println list.collectAsync  { it * 2 }
     list.eachAsync { print it * 2 + ' ' }
}

but it could not find groovyx.gpars.Parallelizer. Any idea why?

cheers
Dierk



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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: gpars grape

Tim Yates
Are you using the very latest groovy?  These was an issue that was fixed last Wednesday

http://jira.codehaus.org/browse/GROOVY-3925

Tim

On Tue, Dec 15, 2009 at 10:11 PM, Dierk König <[hidden email]> wrote:
Hi all,

I tried in a script:

@GrabResolver(name='jboss', root='http://repository.jboss.org/maven2')
@GrabResolver(name='codehaus.snapshot', root='http://snapshots.repository.codehaus.org')
@Grab('org.codehaus.gpars:gpars:0.9-beta-1')
import groovyx.gpars.Parallelizer

List list = (1..9).toList()

Parallelizer.withParallelizer {
   println list.collectAsync  { it * 2 }
   list.eachAsync { print it * 2 + ' ' }
}

but it could not find groovyx.gpars.Parallelizer. Any idea why?

cheers
Dierk



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

  http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: gpars grape

Paul King
In reply to this post by Dierk König

This works for me with trunk and 1.7-rc-2:


@GrabResolver(name='jboss', root='http://repository.jboss.org/maven2')
@GrabResolver(name='codehaus.snapshot', root='http://snapshots.repository.codehaus.org')
@Grab('org.codehaus.gpars:gpars:0.9-beta-1')
import groovyx.gpars.Parallelizer

List list = (1..9).toList()

Parallelizer.withParallelizer {
    println list.collectParallel  { it * 2 }
    list.eachParallel { print it * 2 + ' ' }
}


Paul.


Dierk König wrote:

> Hi all,
>
> I tried in a script:
>
> @GrabResolver(name='jboss', root='http://repository.jboss.org/maven2')
> @GrabResolver(name='codehaus.snapshot',
> root='http://snapshots.repository.codehaus.org')
> @Grab('org.codehaus.gpars:gpars:0.9-beta-1')
> import groovyx.gpars.Parallelizer
>
> List list = (1..9).toList()
>
> Parallelizer.withParallelizer {
>     println list.collectAsync  { it * 2 }
>     list.eachAsync { print it * 2 + ' ' }
> }
>
> but it could not find groovyx.gpars.Parallelizer. Any idea why?
>
> cheers
> Dierk
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>


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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: gpars grape

Russel Winder-2
In reply to this post by Dierk König
On Tue, 2009-12-15 at 23:11 +0100, Dierk König wrote:

> Hi all,
>
> I tried in a script:
>
> @GrabResolver(name='jboss', root='http://repository.jboss.org/maven2')
> @GrabResolver(name='codehaus.snapshot', root='http://snapshots.repository.codehaus.org 
> ')
> @Grab('org.codehaus.gpars:gpars:0.9-beta-1')
> import groovyx.gpars.Parallelizer
>
> List list = (1..9).toList()
>
> Parallelizer.withParallelizer {
>      println list.collectAsync  { it * 2 }
>      list.eachAsync { print it * 2 + ' ' }
> }
>
> but it could not find groovyx.gpars.Parallelizer. Any idea why?
You have to be using Groovy trunk more recent than 2009-12-09 for this
to work -- if you are using such a Groovy then "it works for me".

Actually you need to specify Codehaus normal repository top get
0.9-beta-1 as that is in the codehaus released repository.   Specifying
the snapshots repository probably means you got the snapshot from a
month before release.  So perhaps it isn't surprising that:

|> groovy dierk.groovy
Caught: groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.collectAsync() is applicable for argument types: (dierk$_run_closure1_closure2) values: [dierk$_run_closure1_closure2@56fc16]
Possible solutions: collectAll(groovy.lang.Closure)
        at dierk$_run_closure1.doCall(dierk.groovy:9)
        at groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy:259)
        at groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy)
        at groovyx.gpars.Parallelizer.withExistingParallelizer(Parallelizer.groovy:258)
        at groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:230)
        at groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:205)
        at groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:183)
        at dierk.run(dierk.groovy:8)

I am using 0.9-SNAPSHOT fromt he snapshots repository and . . . it gives
exactly the same error :-(

--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: [hidden email]
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:[hidden email]
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: gpars grape

Vaclav
Administrator
The 0.9-beta-1 has been propagated into maven central, so no reference to codehaus maven repo is needed, only the codehaus snapshot repo must be specified, since beta-1 still requires compile-time dependency on grails-doc, which will be fixed in 0.9 GA. And obviously also the jboss repo for netty.
Any ideas to remove the netty compile dependency? It would be so sweet to get rid of it.

Beware, the code example you're using contains 0.8 syntax. Methods like collectAsync or eachAsync have been renamed to xxxParallel in 0.9

Vaclav


On Wed, Dec 16, 2009 at 8:35 AM, Russel Winder <[hidden email]> wrote:
On Tue, 2009-12-15 at 23:11 +0100, Dierk König wrote:
> Hi all,
>
> I tried in a script:
>
> @GrabResolver(name='jboss', root='http://repository.jboss.org/maven2')
> @GrabResolver(name='codehaus.snapshot', root='http://snapshots.repository.codehaus.org
> ')
> @Grab('org.codehaus.gpars:gpars:0.9-beta-1')
> import groovyx.gpars.Parallelizer
>
> List list = (1..9).toList()
>
> Parallelizer.withParallelizer {
>      println list.collectAsync  { it * 2 }
>      list.eachAsync { print it * 2 + ' ' }
> }
>
> but it could not find groovyx.gpars.Parallelizer. Any idea why?

You have to be using Groovy trunk more recent than 2009-12-09 for this
to work -- if you are using such a Groovy then "it works for me".

Actually you need to specify Codehaus normal repository top get
0.9-beta-1 as that is in the codehaus released repository.   Specifying
the snapshots repository probably means you got the snapshot from a
month before release.  So perhaps it isn't surprising that:

|> groovy dierk.groovy
Caught: groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.collectAsync() is applicable for argument types: (dierk$_run_closure1_closure2) values: [dierk$_run_closure1_closure2@56fc16]
Possible solutions: collectAll(groovy.lang.Closure)
       at dierk$_run_closure1.doCall(dierk.groovy:9)
       at groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy:259)
       at groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy)
       at groovyx.gpars.Parallelizer.withExistingParallelizer(Parallelizer.groovy:258)
       at groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:230)
       at groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:205)
       at groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:183)
       at dierk.run(dierk.groovy:8)

I am using 0.9-SNAPSHOT fromt he snapshots repository and . . . it gives
exactly the same error :-(

--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                           xmpp: [hidden email]
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: [hidden email]
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder



--
E-mail: [hidden email]
Blog: http://www.jroller.com/vaclav
Linkedin page: http://www.linkedin.com/in/vaclavpech
Reply | Threaded
Open this post in threaded view
|

Re: gpars grape

Paul King

I would normally just mark as optional.

Paul.

Vaclav Pech wrote:

> The 0.9-beta-1 has been propagated into maven central, so no reference
> to codehaus maven repo is needed, only the codehaus snapshot repo must
> be specified, since beta-1 still requires compile-time dependency on
> grails-doc, which will be fixed in 0.9 GA. And obviously also the jboss
> repo for netty.
> Any ideas to remove the netty compile dependency? It would be so sweet
> to get rid of it.
>
> Beware, the code example you're using contains 0.8 syntax. Methods like
> collectAsync or eachAsync have been renamed to xxxParallel in 0.9
>
> Vaclav
>
>
> On Wed, Dec 16, 2009 at 8:35 AM, Russel Winder
> <[hidden email] <mailto:[hidden email]>> wrote:
>
>     On Tue, 2009-12-15 at 23:11 +0100, Dierk König wrote:
>      > Hi all,
>      >
>      > I tried in a script:
>      >
>      > @GrabResolver(name='jboss',
>     root='http://repository.jboss.org/maven2')
>      > @GrabResolver(name='codehaus.snapshot',
>     root='http://snapshots.repository.codehaus.org
>      > ')
>      > @Grab('org.codehaus.gpars:gpars:0.9-beta-1')
>      > import groovyx.gpars.Parallelizer
>      >
>      > List list = (1..9).toList()
>      >
>      > Parallelizer.withParallelizer {
>      >      println list.collectAsync  { it * 2 }
>      >      list.eachAsync { print it * 2 + ' ' }
>      > }
>      >
>      > but it could not find groovyx.gpars.Parallelizer. Any idea why?
>
>     You have to be using Groovy trunk more recent than 2009-12-09 for this
>     to work -- if you are using such a Groovy then "it works for me".
>
>     Actually you need to specify Codehaus normal repository top get
>     0.9-beta-1 as that is in the codehaus released repository.   Specifying
>     the snapshots repository probably means you got the snapshot from a
>     month before release.  So perhaps it isn't surprising that:
>
>     |> groovy dierk.groovy
>     Caught: groovy.lang.MissingMethodException: No signature of method:
>     java.util.ArrayList.collectAsync() is applicable for argument types:
>     (dierk$_run_closure1_closure2) values:
>     [dierk$_run_closure1_closure2@56fc16]
>     Possible solutions: collectAll(groovy.lang.Closure)
>            at dierk$_run_closure1.doCall(dierk.groovy:9)
>            at
>     groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy:259)
>            at
>     groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy)
>            at
>     groovyx.gpars.Parallelizer.withExistingParallelizer(Parallelizer.groovy:258)
>            at
>     groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:230)
>            at
>     groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:205)
>            at
>     groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:183)
>            at dierk.run(dierk.groovy:8)
>
>     I am using 0.9-SNAPSHOT fromt he snapshots repository and . . . it gives
>     exactly the same error :-(
>
>     --
>     Russel.
>     =============================================================================
>     Dr Russel Winder      Partner
>                                                xmpp:
>     [hidden email] <mailto:[hidden email]>
>     Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
>     41 Buckmaster Road,   f: +44 8700 516 084   voip:
>     sip:[hidden email] <mailto:sip%[hidden email]>
>     London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder
>
>
>
>
> --
> E-mail: [hidden email] <mailto:[hidden email]>
> Blog: http://www.jroller.com/vaclav
> Linkedin page: http://www.linkedin.com/in/vaclavpech


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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: gpars grape

Vaclav
Administrator
Paul,

do you know of a way to make the dependency on netty non-transitive so that GPars users wouldn't have to include netty in their own dependencies? Could you please be more specific on what changes would need to be done to the gradle build script?

Cheers,

Vaclav



On Wed, Dec 16, 2009 at 9:30 AM, Paul King <[hidden email]> wrote:

I would normally just mark as optional.

Paul.

Vaclav Pech wrote:
The 0.9-beta-1 has been propagated into maven central, so no reference to codehaus maven repo is needed, only the codehaus snapshot repo must be specified, since beta-1 still requires compile-time dependency on grails-doc, which will be fixed in 0.9 GA. And obviously also the jboss repo for netty.
Any ideas to remove the netty compile dependency? It would be so sweet to get rid of it.

Beware, the code example you're using contains 0.8 syntax. Methods like collectAsync or eachAsync have been renamed to xxxParallel in 0.9

Vaclav


On Wed, Dec 16, 2009 at 8:35 AM, Russel Winder <[hidden email] <mailto:[hidden email]>> wrote:

   On Tue, 2009-12-15 at 23:11 +0100, Dierk König wrote:
    > Hi all,
    >
    > I tried in a script:
    >
    > @GrabResolver(name='jboss',
   root='http://repository.jboss.org/maven2')
    > @GrabResolver(name='codehaus.snapshot',
   root='http://snapshots.repository.codehaus.org
    > ')
    > @Grab('org.codehaus.gpars:gpars:0.9-beta-1')
    > import groovyx.gpars.Parallelizer
    >
    > List list = (1..9).toList()
    >
    > Parallelizer.withParallelizer {
    >      println list.collectAsync  { it * 2 }
    >      list.eachAsync { print it * 2 + ' ' }
    > }
    >
    > but it could not find groovyx.gpars.Parallelizer. Any idea why?

   You have to be using Groovy trunk more recent than 2009-12-09 for this
   to work -- if you are using such a Groovy then "it works for me".

   Actually you need to specify Codehaus normal repository top get
   0.9-beta-1 as that is in the codehaus released repository.   Specifying
   the snapshots repository probably means you got the snapshot from a
   month before release.  So perhaps it isn't surprising that:

   |> groovy dierk.groovy
   Caught: groovy.lang.MissingMethodException: No signature of method:
   java.util.ArrayList.collectAsync() is applicable for argument types:
   (dierk$_run_closure1_closure2) values:
   [dierk$_run_closure1_closure2@56fc16]
   Possible solutions: collectAll(groovy.lang.Closure)
          at dierk$_run_closure1.doCall(dierk.groovy:9)
          at
   groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy:259)
          at
   groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy)
          at
   groovyx.gpars.Parallelizer.withExistingParallelizer(Parallelizer.groovy:258)
          at
   groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:230)
          at
   groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:205)
          at
   groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:183)
          at dierk.run(dierk.groovy:8)

   I am using 0.9-SNAPSHOT fromt he snapshots repository and . . . it gives
   exactly the same error :-(

   --
   Russel.
   =============================================================================
   Dr Russel Winder      Partner
                                              xmpp:
   [hidden email] <mailto:[hidden email]>

   Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
   41 Buckmaster Road,   f: +44 8700 516 084   voip:
   [hidden email] <mailto:[hidden email]>

   London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder




--
E-mail: [hidden email] <mailto:[hidden email]>


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

  http://xircles.codehaus.org/manage_email





--
E-mail: [hidden email]
Blog: http://www.jroller.com/vaclav
Linkedin page: http://www.linkedin.com/in/vaclavpech
Reply | Threaded
Open this post in threaded view
|

Re: gpars grape

Dierk König
In reply to this post by Vaclav
Thanks, everybody!

I was on Groovy-1.7-RC1. Silly me. 
I should better stay on the edge :-)

cheers
Dierk

Am 16.12.2009 um 09:17 schrieb Vaclav Pech:

The 0.9-beta-1 has been propagated into maven central, so no reference to codehaus maven repo is needed, only the codehaus snapshot repo must be specified, since beta-1 still requires compile-time dependency on grails-doc, which will be fixed in 0.9 GA. And obviously also the jboss repo for netty.
Any ideas to remove the netty compile dependency? It would be so sweet to get rid of it.

Beware, the code example you're using contains 0.8 syntax. Methods like collectAsync or eachAsync have been renamed to xxxParallel in 0.9

Vaclav


On Wed, Dec 16, 2009 at 8:35 AM, Russel Winder <[hidden email]> wrote:
On Tue, 2009-12-15 at 23:11 +0100, Dierk König wrote:
> Hi all,
>
> I tried in a script:
>
> @GrabResolver(name='jboss', root='http://repository.jboss.org/maven2')
> @GrabResolver(name='codehaus.snapshot', root='http://snapshots.repository.codehaus.org
> ')
> @Grab('org.codehaus.gpars:gpars:0.9-beta-1')
> import groovyx.gpars.Parallelizer
>
> List list = (1..9).toList()
>
> Parallelizer.withParallelizer {
>      println list.collectAsync  { it * 2 }
>      list.eachAsync { print it * 2 + ' ' }
> }
>
> but it could not find groovyx.gpars.Parallelizer. Any idea why?

You have to be using Groovy trunk more recent than 2009-12-09 for this
to work -- if you are using such a Groovy then "it works for me".

Actually you need to specify Codehaus normal repository top get
0.9-beta-1 as that is in the codehaus released repository.   Specifying
the snapshots repository probably means you got the snapshot from a
month before release.  So perhaps it isn't surprising that:

|> groovy dierk.groovy
Caught: groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.collectAsync() is applicable for argument types: (dierk$_run_closure1_closure2) values: [dierk$_run_closure1_closure2@56fc16]
Possible solutions: collectAll(groovy.lang.Closure)
       at dierk$_run_closure1.doCall(dierk.groovy:9)
       at groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy:259)
       at groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy)
       at groovyx.gpars.Parallelizer.withExistingParallelizer(Parallelizer.groovy:258)
       at groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:230)
       at groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:205)
       at groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:183)
       at dierk.run(dierk.groovy:8)

I am using 0.9-SNAPSHOT fromt he snapshots repository and . . . it gives
exactly the same error :-(

--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                           xmpp: [hidden email]
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: [hidden email]
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder



--
E-mail: [hidden email]
Blog: http://www.jroller.com/vaclav
Linkedin page: http://www.linkedin.com/in/vaclavpech

Reply | Threaded
Open this post in threaded view
|

Re: gpars grape

Paul King
In reply to this post by Vaclav

According to the doco here:

http://gradle.codehaus.org/Dependencies

in some version of 0.9, you will be able to do something like:

   compile "junit:junit:4.4" {
      maven.optional = true
   }

I tried this for Netty but no luck in convincing gradle to
like my changes. I suspect it isn't supported yet but haven't
emailed Hans yet to ask for clarification.

Paul.
P.S. There seems to be both:
src\test\groovy\groovyx\gpars\actor\nonBlocking\LifecycleTest.groovy
src\test\groovy\groovyx\gpars\actor\nonBlocking\LifeCycleTest.groovy
in trunk at the moment which breaks Windows.


Vaclav Pech wrote:

> Paul,
>
> do you know of a way to make the dependency on netty non-transitive so
> that GPars users wouldn't have to include netty in their own
> dependencies? Could you please be more specific on what changes would
> need to be done to the gradle build script?
>
> Cheers,
>
> Vaclav
>
>
>
> On Wed, Dec 16, 2009 at 9:30 AM, Paul King <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>
>     I would normally just mark as optional.
>
>     Paul.
>
>     Vaclav Pech wrote:
>
>         The 0.9-beta-1 has been propagated into maven central, so no
>         reference to codehaus maven repo is needed, only the codehaus
>         snapshot repo must be specified, since beta-1 still requires
>         compile-time dependency on grails-doc, which will be fixed in
>         0.9 GA. And obviously also the jboss repo for netty.
>         Any ideas to remove the netty compile dependency? It would be so
>         sweet to get rid of it.
>
>         Beware, the code example you're using contains 0.8 syntax.
>         Methods like collectAsync or eachAsync have been renamed to
>         xxxParallel in 0.9
>
>         Vaclav
>
>
>         On Wed, Dec 16, 2009 at 8:35 AM, Russel Winder
>         <[hidden email]
>         <mailto:[hidden email]>
>         <mailto:[hidden email]
>         <mailto:[hidden email]>>> wrote:
>
>            On Tue, 2009-12-15 at 23:11 +0100, Dierk König wrote:
>             > Hi all,
>             >
>             > I tried in a script:
>             >
>             > @GrabResolver(name='jboss',
>            root='http://repository.jboss.org/maven2')
>             > @GrabResolver(name='codehaus.snapshot',
>            root='http://snapshots.repository.codehaus.org
>             > ')
>             > @Grab('org.codehaus.gpars:gpars:0.9-beta-1')
>             > import groovyx.gpars.Parallelizer
>             >
>             > List list = (1..9).toList()
>             >
>             > Parallelizer.withParallelizer {
>             >      println list.collectAsync  { it * 2 }
>             >      list.eachAsync { print it * 2 + ' ' }
>             > }
>             >
>             > but it could not find groovyx.gpars.Parallelizer. Any idea
>         why?
>
>            You have to be using Groovy trunk more recent than 2009-12-09
>         for this
>            to work -- if you are using such a Groovy then "it works for me".
>
>            Actually you need to specify Codehaus normal repository top get
>            0.9-beta-1 as that is in the codehaus released repository.  
>         Specifying
>            the snapshots repository probably means you got the snapshot
>         from a
>            month before release.  So perhaps it isn't surprising that:
>
>            |> groovy dierk.groovy
>            Caught: groovy.lang.MissingMethodException: No signature of
>         method:
>            java.util.ArrayList.collectAsync() is applicable for argument
>         types:
>            (dierk$_run_closure1_closure2) values:
>            [dierk$_run_closure1_closure2@56fc16]
>            Possible solutions: collectAll(groovy.lang.Closure)
>                   at dierk$_run_closure1.doCall(dierk.groovy:9)
>                   at
>          
>          groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy:259)
>                   at
>          
>          groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy)
>                   at
>          
>          groovyx.gpars.Parallelizer.withExistingParallelizer(Parallelizer.groovy:258)
>                   at
>          
>          groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:230)
>                   at
>          
>          groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:205)
>                   at
>          
>          groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:183)
>                   at dierk.run(dierk.groovy:8)
>
>            I am using 0.9-SNAPSHOT fromt he snapshots repository and . .
>         . it gives
>            exactly the same error :-(
>
>            --
>            Russel.
>          
>          =============================================================================
>            Dr Russel Winder      Partner
>                                                       xmpp:
>            [hidden email] <mailto:[hidden email]>
>         <mailto:[hidden email] <mailto:[hidden email]>>
>
>            Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
>            41 Buckmaster Road,   f: +44 8700 516 084   voip:
>            sip:[hidden email]
>         <mailto:sip%[hidden email]>
>         <mailto:sip%[hidden email]
>         <mailto:sip%[hidden email]>>
>
>            London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder
>
>
>
>
>         --
>         E-mail: [hidden email] <mailto:[hidden email]>
>         <mailto:[hidden email] <mailto:[hidden email]>>
>
>         Blog: http://www.jroller.com/vaclav
>         Linkedin page: http://www.linkedin.com/in/vaclavpech
>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe from this list, please visit:
>
>       http://xircles.codehaus.org/manage_email
>
>
>
>
>
> --
> E-mail: [hidden email] <mailto:[hidden email]>
> Blog: http://www.jroller.com/vaclav
> Linkedin page: http://www.linkedin.com/in/vaclavpech


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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: gpars grape

Vaclav
Administrator
Thanks Paul for investigation. Doesn't work for me either, though.

I've fixed the issue with duplicate tests.

Cheers,

Vaclav



On Wed, Dec 16, 2009 at 2:13 PM, Paul King <[hidden email]> wrote:

According to the doco here:

http://gradle.codehaus.org/Dependencies

in some version of 0.9, you will be able to do something like:

 compile "junit:junit:4.4" {
    maven.optional = true
 }

I tried this for Netty but no luck in convincing gradle to
like my changes. I suspect it isn't supported yet but haven't
emailed Hans yet to ask for clarification.

Paul.
P.S. There seems to be both:
src\test\groovy\groovyx\gpars\actor\nonBlocking\LifecycleTest.groovy
src\test\groovy\groovyx\gpars\actor\nonBlocking\LifeCycleTest.groovy
in trunk at the moment which breaks Windows.


Vaclav Pech wrote:
Paul,

do you know of a way to make the dependency on netty non-transitive so that GPars users wouldn't have to include netty in their own dependencies? Could you please be more specific on what changes would need to be done to the gradle build script?

Cheers,

Vaclav



On Wed, Dec 16, 2009 at 9:30 AM, Paul King <[hidden email] <mailto:[hidden email]>> wrote:


   I would normally just mark as optional.

   Paul.

   Vaclav Pech wrote:

       The 0.9-beta-1 has been propagated into maven central, so no
       reference to codehaus maven repo is needed, only the codehaus
       snapshot repo must be specified, since beta-1 still requires
       compile-time dependency on grails-doc, which will be fixed in
       0.9 GA. And obviously also the jboss repo for netty.
       Any ideas to remove the netty compile dependency? It would be so
       sweet to get rid of it.

       Beware, the code example you're using contains 0.8 syntax.
       Methods like collectAsync or eachAsync have been renamed to
       xxxParallel in 0.9

       Vaclav


       On Wed, Dec 16, 2009 at 8:35 AM, Russel Winder
       <[hidden email]
       <mailto:[hidden email]>
       <mailto:[hidden email]
       <mailto:[hidden email]>>> wrote:

          On Tue, 2009-12-15 at 23:11 +0100, Dierk König wrote:
           > Hi all,
           >
           > I tried in a script:
           >
           > @GrabResolver(name='jboss',
          root='http://repository.jboss.org/maven2')
           > @GrabResolver(name='codehaus.snapshot',
          root='http://snapshots.repository.codehaus.org
           > ')
           > @Grab('org.codehaus.gpars:gpars:0.9-beta-1')
           > import groovyx.gpars.Parallelizer
           >
           > List list = (1..9).toList()
           >
           > Parallelizer.withParallelizer {
           >      println list.collectAsync  { it * 2 }
           >      list.eachAsync { print it * 2 + ' ' }
           > }
           >
           > but it could not find groovyx.gpars.Parallelizer. Any idea
       why?

          You have to be using Groovy trunk more recent than 2009-12-09
       for this
          to work -- if you are using such a Groovy then "it works for me".

          Actually you need to specify Codehaus normal repository top get
          0.9-beta-1 as that is in the codehaus released repository.          Specifying
          the snapshots repository probably means you got the snapshot
       from a
          month before release.  So perhaps it isn't surprising that:

          |> groovy dierk.groovy
          Caught: groovy.lang.MissingMethodException: No signature of
       method:
          java.util.ArrayList.collectAsync() is applicable for argument
       types:
          (dierk$_run_closure1_closure2) values:
          [dierk$_run_closure1_closure2@56fc16]
          Possible solutions: collectAll(groovy.lang.Closure)
                 at dierk$_run_closure1.doCall(dierk.groovy:9)
                 at
                groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy:259)
                 at
                groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy)
                 at
                groovyx.gpars.Parallelizer.withExistingParallelizer(Parallelizer.groovy:258)
                 at
                groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:230)
                 at
                groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:205)
                 at
                groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:183)
                 at dierk.run(dierk.groovy:8)

          I am using 0.9-SNAPSHOT fromt he snapshots repository and . .
       . it gives
          exactly the same error :-(

          --
          Russel.
                =============================================================================
          Dr Russel Winder      Partner
                                                     xmpp:
          [hidden email] <mailto:[hidden email]>
       <mailto:[hidden email] <mailto:[hidden email]>>


          Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
          41 Buckmaster Road,   f: +44 8700 516 084   voip:
          [hidden email]
       <mailto:[hidden email]>
       <mailto:[hidden email]
       <mailto:[hidden email]>>


          London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder




       --        E-mail: [hidden email] <mailto:[hidden email]>
       <mailto:[hidden email] <mailto:[hidden email]>>


       Blog: http://www.jroller.com/vaclav
       Linkedin page: http://www.linkedin.com/in/vaclavpech



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

     http://xircles.codehaus.org/manage_email





--
E-mail: [hidden email] <mailto:[hidden email]>
Blog: http://www.jroller.com/vaclav
Linkedin page: http://www.linkedin.com/in/vaclavpech


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

  http://xircles.codehaus.org/manage_email





--
E-mail: [hidden email]
Blog: http://www.jroller.com/vaclav
Linkedin page: http://www.linkedin.com/in/vaclavpech
Reply | Threaded
Open this post in threaded view
|

Re: gpars grape

Paul King
Vaclav Pech wrote:
> Thanks Paul for investigation. Doesn't work for me either, though.
>
> I've fixed the issue with duplicate tests.

Cool, just noticed that!

I have also sent an email to Hans. We'll see if he has some more
info, otherwise I can peak into the gradle source code tomorrow.

Cheers, Paul.

> Cheers,
>
> Vaclav
>
>
>
> On Wed, Dec 16, 2009 at 2:13 PM, Paul King <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>
>     According to the doco here:
>
>     http://gradle.codehaus.org/Dependencies
>
>     in some version of 0.9, you will be able to do something like:
>
>      compile "junit:junit:4.4" {
>         maven.optional = true
>      }
>
>     I tried this for Netty but no luck in convincing gradle to
>     like my changes. I suspect it isn't supported yet but haven't
>     emailed Hans yet to ask for clarification.
>
>     Paul.
>     P.S. There seems to be both:
>     src\test\groovy\groovyx\gpars\actor\nonBlocking\LifecycleTest.groovy
>     src\test\groovy\groovyx\gpars\actor\nonBlocking\LifeCycleTest.groovy
>     in trunk at the moment which breaks Windows.
>
>
>     Vaclav Pech wrote:
>
>         Paul,
>
>         do you know of a way to make the dependency on netty
>         non-transitive so that GPars users wouldn't have to include
>         netty in their own dependencies? Could you please be more
>         specific on what changes would need to be done to the gradle
>         build script?
>
>         Cheers,
>
>         Vaclav
>
>
>
>         On Wed, Dec 16, 2009 at 9:30 AM, Paul King <[hidden email]
>         <mailto:[hidden email]> <mailto:[hidden email]
>         <mailto:[hidden email]>>> wrote:
>
>
>            I would normally just mark as optional.
>
>            Paul.
>
>            Vaclav Pech wrote:
>
>                The 0.9-beta-1 has been propagated into maven central, so no
>                reference to codehaus maven repo is needed, only the codehaus
>                snapshot repo must be specified, since beta-1 still requires
>                compile-time dependency on grails-doc, which will be fixed in
>                0.9 GA. And obviously also the jboss repo for netty.
>                Any ideas to remove the netty compile dependency? It
>         would be so
>                sweet to get rid of it.
>
>                Beware, the code example you're using contains 0.8 syntax.
>                Methods like collectAsync or eachAsync have been renamed to
>                xxxParallel in 0.9
>
>                Vaclav
>
>
>                On Wed, Dec 16, 2009 at 8:35 AM, Russel Winder
>                <[hidden email]
>         <mailto:[hidden email]>
>                <mailto:[hidden email]
>         <mailto:[hidden email]>>
>                <mailto:[hidden email]
>         <mailto:[hidden email]>
>                <mailto:[hidden email]
>         <mailto:[hidden email]>>>> wrote:
>
>                   On Tue, 2009-12-15 at 23:11 +0100, Dierk König wrote:
>                    > Hi all,
>                    >
>                    > I tried in a script:
>                    >
>                    > @GrabResolver(name='jboss',
>                   root='http://repository.jboss.org/maven2')
>                    > @GrabResolver(name='codehaus.snapshot',
>                   root='http://snapshots.repository.codehaus.org
>                    > ')
>                    > @Grab('org.codehaus.gpars:gpars:0.9-beta-1')
>                    > import groovyx.gpars.Parallelizer
>                    >
>                    > List list = (1..9).toList()
>                    >
>                    > Parallelizer.withParallelizer {
>                    >      println list.collectAsync  { it * 2 }
>                    >      list.eachAsync { print it * 2 + ' ' }
>                    > }
>                    >
>                    > but it could not find groovyx.gpars.Parallelizer.
>         Any idea
>                why?
>
>                   You have to be using Groovy trunk more recent than
>         2009-12-09
>                for this
>                   to work -- if you are using such a Groovy then "it
>         works for me".
>
>                   Actually you need to specify Codehaus normal
>         repository top get
>                   0.9-beta-1 as that is in the codehaus released
>         repository.          Specifying
>                   the snapshots repository probably means you got the
>         snapshot
>                from a
>                   month before release.  So perhaps it isn't surprising
>         that:
>
>                   |> groovy dierk.groovy
>                   Caught: groovy.lang.MissingMethodException: No
>         signature of
>                method:
>                   java.util.ArrayList.collectAsync() is applicable for
>         argument
>                types:
>                   (dierk$_run_closure1_closure2) values:
>                   [dierk$_run_closure1_closure2@56fc16]
>                   Possible solutions: collectAll(groovy.lang.Closure)
>                          at dierk$_run_closure1.doCall(dierk.groovy:9)
>                          at
>                        
>         groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy:259)
>                          at
>                        
>         groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy)
>                          at
>                        
>         groovyx.gpars.Parallelizer.withExistingParallelizer(Parallelizer.groovy:258)
>                          at
>                        
>         groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:230)
>                          at
>                        
>         groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:205)
>                          at
>                        
>         groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:183)
>                          at dierk.run(dierk.groovy:8)
>
>                   I am using 0.9-SNAPSHOT fromt he snapshots repository
>         and . .
>                . it gives
>                   exactly the same error :-(
>
>                   --
>                   Russel.
>                        
>         =============================================================================
>                   Dr Russel Winder      Partner
>                                                              xmpp:
>                   [hidden email] <mailto:[hidden email]>
>         <mailto:[hidden email] <mailto:[hidden email]>>
>                <mailto:[hidden email]
>         <mailto:[hidden email]> <mailto:[hidden email]
>         <mailto:[hidden email]>>>
>
>
>                   Concertant LLP        t: +44 20 7585 2200, +44 20 7193
>         9203
>                   41 Buckmaster Road,   f: +44 8700 516 084   voip:
>                   sip:[hidden email]
>         <mailto:sip%[hidden email]>
>                <mailto:sip%[hidden email]
>         <mailto:sip%[hidden email]>>
>                <mailto:sip%[hidden email]
>         <mailto:sip%[hidden email]>
>                <mailto:sip%[hidden email]
>         <mailto:sip%[hidden email]>>>
>
>
>                   London SW11 1EN, UK   m: +44 7770 465 077   skype:
>         russel_winder
>
>
>
>
>                --        E-mail: [hidden email]
>         <mailto:[hidden email]> <mailto:[hidden email]
>         <mailto:[hidden email]>>
>                <mailto:[hidden email]
>         <mailto:[hidden email]> <mailto:[hidden email]
>         <mailto:[hidden email]>>>
>
>
>                Blog: http://www.jroller.com/vaclav
>                Linkedin page: http://www.linkedin.com/in/vaclavpech
>
>
>
>          
>          ---------------------------------------------------------------------
>            To unsubscribe from this list, please visit:
>
>              http://xircles.codehaus.org/manage_email
>
>
>
>
>
>         --
>         E-mail: [hidden email] <mailto:[hidden email]>
>         <mailto:[hidden email] <mailto:[hidden email]>>
>         Blog: http://www.jroller.com/vaclav
>         Linkedin page: http://www.linkedin.com/in/vaclavpech
>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe from this list, please visit:
>
>       http://xircles.codehaus.org/manage_email
>
>
>
>
>
> --
> E-mail: [hidden email] <mailto:[hidden email]>
> Blog: http://www.jroller.com/vaclav
> Linkedin page: http://www.linkedin.com/in/vaclavpech


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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: gpars grape

Vaclav
Administrator
Awesome! Let's see what Hans suggests.

Cheers,

Vaclav



On Wed, Dec 16, 2009 at 2:50 PM, Paul King <[hidden email]> wrote:
Vaclav Pech wrote:
Thanks Paul for investigation. Doesn't work for me either, though.

I've fixed the issue with duplicate tests.

Cool, just noticed that!

I have also sent an email to Hans. We'll see if he has some more
info, otherwise I can peak into the gradle source code tomorrow.

Cheers, Paul.

Cheers,

Vaclav




On Wed, Dec 16, 2009 at 2:13 PM, Paul King <[hidden email] <mailto:[hidden email]>> wrote:


   According to the doco here:

   http://gradle.codehaus.org/Dependencies

   in some version of 0.9, you will be able to do something like:

    compile "junit:junit:4.4" {
       maven.optional = true
    }

   I tried this for Netty but no luck in convincing gradle to
   like my changes. I suspect it isn't supported yet but haven't
   emailed Hans yet to ask for clarification.

   Paul.
   P.S. There seems to be both:
   src\test\groovy\groovyx\gpars\actor\nonBlocking\LifecycleTest.groovy
   src\test\groovy\groovyx\gpars\actor\nonBlocking\LifeCycleTest.groovy
   in trunk at the moment which breaks Windows.


   Vaclav Pech wrote:

       Paul,

       do you know of a way to make the dependency on netty
       non-transitive so that GPars users wouldn't have to include
       netty in their own dependencies? Could you please be more
       specific on what changes would need to be done to the gradle
       build script?

       Cheers,

       Vaclav



       On Wed, Dec 16, 2009 at 9:30 AM, Paul King <[hidden email]
       <mailto:[hidden email]> <mailto:[hidden email]

       <mailto:[hidden email]>>> wrote:


          I would normally just mark as optional.

          Paul.

          Vaclav Pech wrote:

              The 0.9-beta-1 has been propagated into maven central, so no
              reference to codehaus maven repo is needed, only the codehaus
              snapshot repo must be specified, since beta-1 still requires
              compile-time dependency on grails-doc, which will be fixed in
              0.9 GA. And obviously also the jboss repo for netty.
              Any ideas to remove the netty compile dependency? It
       would be so
              sweet to get rid of it.

              Beware, the code example you're using contains 0.8 syntax.
              Methods like collectAsync or eachAsync have been renamed to
              xxxParallel in 0.9

              Vaclav


              On Wed, Dec 16, 2009 at 8:35 AM, Russel Winder
              <[hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>>
              <mailto:[hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>>>> wrote:

                 On Tue, 2009-12-15 at 23:11 +0100, Dierk König wrote:
                  > Hi all,
                  >
                  > I tried in a script:
                  >
                  > @GrabResolver(name='jboss',
                 root='http://repository.jboss.org/maven2')
                  > @GrabResolver(name='codehaus.snapshot',
                 root='http://snapshots.repository.codehaus.org
                  > ')
                  > @Grab('org.codehaus.gpars:gpars:0.9-beta-1')
                  > import groovyx.gpars.Parallelizer
                  >
                  > List list = (1..9).toList()
                  >
                  > Parallelizer.withParallelizer {
                  >      println list.collectAsync  { it * 2 }
                  >      list.eachAsync { print it * 2 + ' ' }
                  > }
                  >
                  > but it could not find groovyx.gpars.Parallelizer.
       Any idea
              why?

                 You have to be using Groovy trunk more recent than
       2009-12-09
              for this
                 to work -- if you are using such a Groovy then "it
       works for me".

                 Actually you need to specify Codehaus normal
       repository top get
                 0.9-beta-1 as that is in the codehaus released
       repository.          Specifying
                 the snapshots repository probably means you got the
       snapshot
              from a
                 month before release.  So perhaps it isn't surprising
       that:

                 |> groovy dierk.groovy
                 Caught: groovy.lang.MissingMethodException: No
       signature of
              method:
                 java.util.ArrayList.collectAsync() is applicable for
       argument
              types:
                 (dierk$_run_closure1_closure2) values:
                 [dierk$_run_closure1_closure2@56fc16]
                 Possible solutions: collectAll(groovy.lang.Closure)
                        at dierk$_run_closure1.doCall(dierk.groovy:9)
                        at
                             groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy:259)
                        at
                             groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy)
                        at
                             groovyx.gpars.Parallelizer.withExistingParallelizer(Parallelizer.groovy:258)
                        at
                             groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:230)
                        at
                             groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:205)
                        at
                             groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:183)
                        at dierk.run(dierk.groovy:8)

                 I am using 0.9-SNAPSHOT fromt he snapshots repository
       and . .
              . it gives
                 exactly the same error :-(

                 --
                 Russel.
                             =============================================================================
                 Dr Russel Winder      Partner
                                                            xmpp:
                 [hidden email] <mailto:[hidden email]>
       <mailto:[hidden email] <mailto:[hidden email]>>
              <mailto:[hidden email]
       <mailto:[hidden email]> <mailto:[hidden email]
       <mailto:[hidden email]>>>


                 Concertant LLP        t: +44 20 7585 2200, +44 20 7193
       9203
                 41 Buckmaster Road,   f: +44 8700 516 084   voip:
                 [hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>>
              <mailto:[hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>>>



                 London SW11 1EN, UK   m: +44 7770 465 077   skype:
       russel_winder




              --        E-mail: [hidden email]
       <mailto:[hidden email]> <mailto:[hidden email]
       <mailto:[hidden email]>>
              <mailto:[hidden email]
       <mailto:[hidden email]> <mailto:[hidden email]
       <mailto:[hidden email]>>>


              Blog: http://www.jroller.com/vaclav
              Linkedin page: http://www.linkedin.com/in/vaclavpech



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

            http://xircles.codehaus.org/manage_email





       --        E-mail: [hidden email] <mailto:[hidden email]>
       <mailto:[hidden email] <mailto:[hidden email]>>
       Blog: http://www.jroller.com/vaclav
       Linkedin page: http://www.linkedin.com/in/vaclavpech



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

     http://xircles.codehaus.org/manage_email





--
E-mail: [hidden email] <mailto:[hidden email]>
Blog: http://www.jroller.com/vaclav
Linkedin page: http://www.linkedin.com/in/vaclavpech


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

  http://xircles.codehaus.org/manage_email





--
E-mail: [hidden email]
Blog: http://www.jroller.com/vaclav
Linkedin page: http://www.linkedin.com/in/vaclavpech
Reply | Threaded
Open this post in threaded view
|

Re: gpars grape

Paul King

Hans confirmed my suspicions. That feature isn't implementedd
yet but he hopes to add it to trunk soon.

Cheers, Paul.


Vaclav Pech wrote:

> Awesome! Let's see what Hans suggests.
>
> Cheers,
>
> Vaclav
>
>
>
> On Wed, Dec 16, 2009 at 2:50 PM, Paul King <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Vaclav Pech wrote:
>
>         Thanks Paul for investigation. Doesn't work for me either, though.
>
>         I've fixed the issue with duplicate tests.
>
>
>     Cool, just noticed that!
>
>     I have also sent an email to Hans. We'll see if he has some more
>     info, otherwise I can peak into the gradle source code tomorrow.
>
>     Cheers, Paul.
>
>         Cheers,
>
>         Vaclav
>
>
>
>
>         On Wed, Dec 16, 2009 at 2:13 PM, Paul King <[hidden email]
>         <mailto:[hidden email]> <mailto:[hidden email]
>         <mailto:[hidden email]>>> wrote:
>
>
>            According to the doco here:
>
>            http://gradle.codehaus.org/Dependencies
>
>            in some version of 0.9, you will be able to do something like:
>
>             compile "junit:junit:4.4" {
>                maven.optional = true
>             }
>
>            I tried this for Netty but no luck in convincing gradle to
>            like my changes. I suspect it isn't supported yet but haven't
>            emailed Hans yet to ask for clarification.
>
>            Paul.
>            P.S. There seems to be both:
>          
>          src\test\groovy\groovyx\gpars\actor\nonBlocking\LifecycleTest.groovy
>          
>          src\test\groovy\groovyx\gpars\actor\nonBlocking\LifeCycleTest.groovy
>            in trunk at the moment which breaks Windows.
>
>
>            Vaclav Pech wrote:
>
>                Paul,
>
>                do you know of a way to make the dependency on netty
>                non-transitive so that GPars users wouldn't have to include
>                netty in their own dependencies? Could you please be more
>                specific on what changes would need to be done to the gradle
>                build script?
>
>                Cheers,
>
>                Vaclav
>
>
>
>                On Wed, Dec 16, 2009 at 9:30 AM, Paul King
>         <[hidden email] <mailto:[hidden email]>
>                <mailto:[hidden email] <mailto:[hidden email]>>
>         <mailto:[hidden email] <mailto:[hidden email]>
>
>                <mailto:[hidden email] <mailto:[hidden email]>>>>
>         wrote:
>
>
>                   I would normally just mark as optional.
>
>                   Paul.
>
>                   Vaclav Pech wrote:
>
>                       The 0.9-beta-1 has been propagated into maven
>         central, so no
>                       reference to codehaus maven repo is needed, only
>         the codehaus
>                       snapshot repo must be specified, since beta-1
>         still requires
>                       compile-time dependency on grails-doc, which will
>         be fixed in
>                       0.9 GA. And obviously also the jboss repo for netty.
>                       Any ideas to remove the netty compile dependency? It
>                would be so
>                       sweet to get rid of it.
>
>                       Beware, the code example you're using contains 0.8
>         syntax.
>                       Methods like collectAsync or eachAsync have been
>         renamed to
>                       xxxParallel in 0.9
>
>                       Vaclav
>
>
>                       On Wed, Dec 16, 2009 at 8:35 AM, Russel Winder
>                       <[hidden email]
>         <mailto:[hidden email]>
>                <mailto:[hidden email]
>         <mailto:[hidden email]>>
>                       <mailto:[hidden email]
>         <mailto:[hidden email]>
>                <mailto:[hidden email]
>         <mailto:[hidden email]>>>
>                       <mailto:[hidden email]
>         <mailto:[hidden email]>
>                <mailto:[hidden email]
>         <mailto:[hidden email]>>
>                       <mailto:[hidden email]
>         <mailto:[hidden email]>
>                <mailto:[hidden email]
>         <mailto:[hidden email]>>>>> wrote:
>
>                          On Tue, 2009-12-15 at 23:11 +0100, Dierk König
>         wrote:
>                           > Hi all,
>                           >
>                           > I tried in a script:
>                           >
>                           > @GrabResolver(name='jboss',
>                          root='http://repository.jboss.org/maven2')
>                           > @GrabResolver(name='codehaus.snapshot',
>                          root='http://snapshots.repository.codehaus.org
>                           > ')
>                           > @Grab('org.codehaus.gpars:gpars:0.9-beta-1')
>                           > import groovyx.gpars.Parallelizer
>                           >
>                           > List list = (1..9).toList()
>                           >
>                           > Parallelizer.withParallelizer {
>                           >      println list.collectAsync  { it * 2 }
>                           >      list.eachAsync { print it * 2 + ' ' }
>                           > }
>                           >
>                           > but it could not find
>         groovyx.gpars.Parallelizer.
>                Any idea
>                       why?
>
>                          You have to be using Groovy trunk more recent than
>                2009-12-09
>                       for this
>                          to work -- if you are using such a Groovy then "it
>                works for me".
>
>                          Actually you need to specify Codehaus normal
>                repository top get
>                          0.9-beta-1 as that is in the codehaus released
>                repository.          Specifying
>                          the snapshots repository probably means you got the
>                snapshot
>                       from a
>                          month before release.  So perhaps it isn't
>         surprising
>                that:
>
>                          |> groovy dierk.groovy
>                          Caught: groovy.lang.MissingMethodException: No
>                signature of
>                       method:
>                          java.util.ArrayList.collectAsync() is
>         applicable for
>                argument
>                       types:
>                          (dierk$_run_closure1_closure2) values:
>                          [dierk$_run_closure1_closure2@56fc16]
>                          Possible solutions: collectAll(groovy.lang.Closure)
>                                 at
>         dierk$_run_closure1.doCall(dierk.groovy:9)
>                                 at
>                                    
>          groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy:259)
>                                 at
>                                    
>          groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy)
>                                 at
>                                    
>          groovyx.gpars.Parallelizer.withExistingParallelizer(Parallelizer.groovy:258)
>                                 at
>                                    
>          groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:230)
>                                 at
>                                    
>          groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:205)
>                                 at
>                                    
>          groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:183)
>                                 at dierk.run(dierk.groovy:8)
>
>                          I am using 0.9-SNAPSHOT fromt he snapshots
>         repository
>                and . .
>                       . it gives
>                          exactly the same error :-(
>
>                          --
>                          Russel.
>                                    
>          =============================================================================
>                          Dr Russel Winder      Partner
>                                                                     xmpp:
>                          [hidden email]
>         <mailto:[hidden email]> <mailto:[hidden email]
>         <mailto:[hidden email]>>
>                <mailto:[hidden email]
>         <mailto:[hidden email]> <mailto:[hidden email]
>         <mailto:[hidden email]>>>
>                       <mailto:[hidden email]
>         <mailto:[hidden email]>
>                <mailto:[hidden email]
>         <mailto:[hidden email]>> <mailto:[hidden email]
>         <mailto:[hidden email]>
>                <mailto:[hidden email] <mailto:[hidden email]>>>>
>
>
>                          Concertant LLP        t: +44 20 7585 2200, +44
>         20 7193
>                9203
>                          41 Buckmaster Road,   f: +44 8700 516 084   voip:
>                          sip:[hidden email]
>         <mailto:sip%[hidden email]>
>                <mailto:sip%[hidden email]
>         <mailto:sip%[hidden email]>>
>                       <mailto:sip%[hidden email]
>         <mailto:sip%[hidden email]>
>                <mailto:sip%[hidden email]
>         <mailto:sip%[hidden email]>>>
>                       <mailto:sip%[hidden email]
>         <mailto:sip%[hidden email]>
>                <mailto:sip%[hidden email]
>         <mailto:sip%[hidden email]>>
>                       <mailto:sip%[hidden email]
>         <mailto:sip%[hidden email]>
>                <mailto:sip%[hidden email]
>         <mailto:sip%[hidden email]>>>>
>
>
>
>                          London SW11 1EN, UK   m: +44 7770 465 077   skype:
>                russel_winder
>
>
>
>
>                       --        E-mail: [hidden email]
>         <mailto:[hidden email]>
>                <mailto:[hidden email]
>         <mailto:[hidden email]>> <mailto:[hidden email]
>         <mailto:[hidden email]>
>                <mailto:[hidden email]
>         <mailto:[hidden email]>>>
>                       <mailto:[hidden email]
>         <mailto:[hidden email]>
>                <mailto:[hidden email]
>         <mailto:[hidden email]>> <mailto:[hidden email]
>         <mailto:[hidden email]>
>                <mailto:[hidden email]
>         <mailto:[hidden email]>>>>
>
>
>                       Blog: http://www.jroller.com/vaclav
>                       Linkedin page: http://www.linkedin.com/in/vaclavpech
>
>
>
>                        
>         ---------------------------------------------------------------------
>                   To unsubscribe from this list, please visit:
>
>                     http://xircles.codehaus.org/manage_email
>
>
>
>
>
>                --        E-mail: [hidden email]
>         <mailto:[hidden email]> <mailto:[hidden email]
>         <mailto:[hidden email]>>
>                <mailto:[hidden email]
>         <mailto:[hidden email]> <mailto:[hidden email]
>         <mailto:[hidden email]>>>
>                Blog: http://www.jroller.com/vaclav
>                Linkedin page: http://www.linkedin.com/in/vaclavpech
>
>
>
>          
>          ---------------------------------------------------------------------
>            To unsubscribe from this list, please visit:
>
>              http://xircles.codehaus.org/manage_email
>
>
>
>
>
>         --
>         E-mail: [hidden email] <mailto:[hidden email]>
>         <mailto:[hidden email] <mailto:[hidden email]>>
>         Blog: http://www.jroller.com/vaclav
>         Linkedin page: http://www.linkedin.com/in/vaclavpech
>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe from this list, please visit:
>
>       http://xircles.codehaus.org/manage_email
>
>
>
>
>
> --
> E-mail: [hidden email] <mailto:[hidden email]>
> Blog: http://www.jroller.com/vaclav
> Linkedin page: http://www.linkedin.com/in/vaclavpech


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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: gpars grape

Vaclav
Administrator
OK, I see. So it seems our users will have to live with the netty dependency in 0.9, unless Hans is really quick.
Thanks Paul for investigation.

Cheers,

Vaclav



On Thu, Dec 17, 2009 at 2:33 AM, Paul King <[hidden email]> wrote:

Hans confirmed my suspicions. That feature isn't implementedd
yet but he hopes to add it to trunk soon.

Cheers, Paul.


Vaclav Pech wrote:
Awesome! Let's see what Hans suggests.

Cheers,

Vaclav



On Wed, Dec 16, 2009 at 2:50 PM, Paul King <[hidden email] <mailto:[hidden email]>> wrote:

   Vaclav Pech wrote:

       Thanks Paul for investigation. Doesn't work for me either, though.

       I've fixed the issue with duplicate tests.


   Cool, just noticed that!

   I have also sent an email to Hans. We'll see if he has some more
   info, otherwise I can peak into the gradle source code tomorrow.

   Cheers, Paul.

       Cheers,

       Vaclav




       On Wed, Dec 16, 2009 at 2:13 PM, Paul King <[hidden email]
       <mailto:[hidden email]> <mailto:[hidden email]
       <mailto:[hidden email]>>> wrote:


          According to the doco here:

          http://gradle.codehaus.org/Dependencies

          in some version of 0.9, you will be able to do something like:

           compile "junit:junit:4.4" {
              maven.optional = true
           }

          I tried this for Netty but no luck in convincing gradle to
          like my changes. I suspect it isn't supported yet but haven't
          emailed Hans yet to ask for clarification.

          Paul.
          P.S. There seems to be both:
                src\test\groovy\groovyx\gpars\actor\nonBlocking\LifecycleTest.groovy
                src\test\groovy\groovyx\gpars\actor\nonBlocking\LifeCycleTest.groovy
          in trunk at the moment which breaks Windows.


          Vaclav Pech wrote:

              Paul,

              do you know of a way to make the dependency on netty
              non-transitive so that GPars users wouldn't have to include
              netty in their own dependencies? Could you please be more
              specific on what changes would need to be done to the gradle
              build script?

              Cheers,

              Vaclav



              On Wed, Dec 16, 2009 at 9:30 AM, Paul King
       <[hidden email] <mailto:[hidden email]>
              <mailto:[hidden email] <mailto:[hidden email]>>
       <mailto:[hidden email] <mailto:[hidden email]>

              <mailto:[hidden email] <mailto:[hidden email]>>>>

       wrote:


                 I would normally just mark as optional.

                 Paul.

                 Vaclav Pech wrote:

                     The 0.9-beta-1 has been propagated into maven
       central, so no
                     reference to codehaus maven repo is needed, only
       the codehaus
                     snapshot repo must be specified, since beta-1
       still requires
                     compile-time dependency on grails-doc, which will
       be fixed in
                     0.9 GA. And obviously also the jboss repo for netty.
                     Any ideas to remove the netty compile dependency? It
              would be so
                     sweet to get rid of it.

                     Beware, the code example you're using contains 0.8
       syntax.
                     Methods like collectAsync or eachAsync have been
       renamed to
                     xxxParallel in 0.9

                     Vaclav


                     On Wed, Dec 16, 2009 at 8:35 AM, Russel Winder
                     <[hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>>
                     <mailto:[hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>>>
                     <mailto:[hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>>
                     <mailto:[hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>>>>> wrote:

                        On Tue, 2009-12-15 at 23:11 +0100, Dierk König
       wrote:
                         > Hi all,
                         >
                         > I tried in a script:
                         >
                         > @GrabResolver(name='jboss',
                        root='http://repository.jboss.org/maven2')
                         > @GrabResolver(name='codehaus.snapshot',
                        root='http://snapshots.repository.codehaus.org
                         > ')
                         > @Grab('org.codehaus.gpars:gpars:0.9-beta-1')
                         > import groovyx.gpars.Parallelizer
                         >
                         > List list = (1..9).toList()
                         >
                         > Parallelizer.withParallelizer {
                         >      println list.collectAsync  { it * 2 }
                         >      list.eachAsync { print it * 2 + ' ' }
                         > }
                         >
                         > but it could not find
       groovyx.gpars.Parallelizer.
              Any idea
                     why?

                        You have to be using Groovy trunk more recent than
              2009-12-09
                     for this
                        to work -- if you are using such a Groovy then "it
              works for me".

                        Actually you need to specify Codehaus normal
              repository top get
                        0.9-beta-1 as that is in the codehaus released
              repository.          Specifying
                        the snapshots repository probably means you got the
              snapshot
                     from a
                        month before release.  So perhaps it isn't
       surprising
              that:

                        |> groovy dierk.groovy
                        Caught: groovy.lang.MissingMethodException: No
              signature of
                     method:
                        java.util.ArrayList.collectAsync() is
       applicable for
              argument
                     types:
                        (dierk$_run_closure1_closure2) values:
                        [dierk$_run_closure1_closure2@56fc16]
                        Possible solutions: collectAll(groovy.lang.Closure)
                               at
       dierk$_run_closure1.doCall(dierk.groovy:9)
                               at
                                          groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy:259)
                               at
                                          groovyx.gpars.Parallelizer$_withExistingParallelizer_closure2.doCall(Parallelizer.groovy)
                               at
                                          groovyx.gpars.Parallelizer.withExistingParallelizer(Parallelizer.groovy:258)
                               at
                                          groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:230)
                               at
                                          groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:205)
                               at
                                          groovyx.gpars.Parallelizer.withParallelizer(Parallelizer.groovy:183)
                               at dierk.run(dierk.groovy:8)

                        I am using 0.9-SNAPSHOT fromt he snapshots
       repository
              and . .
                     . it gives
                        exactly the same error :-(

                        --
                        Russel.
                                          =============================================================================
                        Dr Russel Winder      Partner
                                                                   xmpp:
                        [hidden email]
       <mailto:[hidden email]> <mailto:[hidden email]
       <mailto:[hidden email]>>
              <mailto:[hidden email]
       <mailto:[hidden email]> <mailto:[hidden email]
       <mailto:[hidden email]>>>
                     <mailto:[hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>> <mailto:[hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email] <mailto:[hidden email]>>>>



                        Concertant LLP        t: +44 20 7585 2200, +44
       20 7193
              9203
                        41 Buckmaster Road,   f: +44 8700 516 084   voip:
                        [hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>>
                     <mailto:[hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>>>
                     <mailto:[hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>>
                     <mailto:[hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>>>>




                        London SW11 1EN, UK   m: +44 7770 465 077   skype:
              russel_winder




                     --        E-mail: [hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>> <mailto:[hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>>>
                     <mailto:[hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>> <mailto:[hidden email]
       <mailto:[hidden email]>
              <mailto:[hidden email]
       <mailto:[hidden email]>>>>


                     Blog: http://www.jroller.com/vaclav
                     Linkedin page: http://www.linkedin.com/in/vaclavpech



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

                   http://xircles.codehaus.org/manage_email





              --        E-mail: [hidden email]
       <mailto:[hidden email]> <mailto:[hidden email]
       <mailto:[hidden email]>>
              <mailto:[hidden email]
       <mailto:[hidden email]> <mailto:[hidden email]
       <mailto:[hidden email]>>>
              Blog: http://www.jroller.com/vaclav
              Linkedin page: http://www.linkedin.com/in/vaclavpech



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

            http://xircles.codehaus.org/manage_email





       --        E-mail: [hidden email] <mailto:[hidden email]>
       <mailto:[hidden email] <mailto:[hidden email]>>
       Blog: http://www.jroller.com/vaclav
       Linkedin page: http://www.linkedin.com/in/vaclavpech



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

     http://xircles.codehaus.org/manage_email





--
E-mail: [hidden email] <mailto:[hidden email]>
Blog: http://www.jroller.com/vaclav
Linkedin page: http://www.linkedin.com/in/vaclavpech


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

  http://xircles.codehaus.org/manage_email





--
E-mail: [hidden email]
Blog: http://www.jroller.com/vaclav
Linkedin page: http://www.linkedin.com/in/vaclavpech