On 08.01.2017 13:08, Daniel Sun wrote:
Hi Jochen,
I'm looking for a new syntax for concurrency programming, which
should be able to hide complex for developers. As you said, the actor syntax
is not necessary. I agree with you, because it just replaces 'send' method
with '<<', but I wish
ic could let us think about the concurrency
programming syntax.
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/About-actor-syntax-for-Groovy-3-tp5737574p5737598.html
Sent from the Groovy Dev mailing list archive at Nabble.com.
On 07.01.2017 18:16, Daniel Sun wrote:
Hi all,
As we all know, GPars is awesome in concurrency programming. How about
introducing a new syntax for GPars's
actor(http://www.gpars.org/guide/guide/actors.html) to support concurrency
programming better like Erlang and
Scala(https://rocketeer.
On Sat, 2017-01-07 at 18:30 +0100, Jesper Steen Møller wrote:
> But
>
> Wouldn’t << be a natural choice which would work today?
>
> -Jesper
>
All pull requests against the jdk8 branch will be reviewed.
--
Russel.
=
Dr
> > should be modified as:
> > >
> > > class ActorTest {
> > > public static void main(String[] args) {
> > > def counter = new Counter()
> > > counter.start()
> > >
> > > for (i in
gt; >counter <- i// send message to the counter actor
> >}
> > }
> >
> > should be modified as:
> >
> > class ActorTest {
> >public static void main(String[] args) {
> >def counter = n
unter()
> > counter.start()
> >
> >for (i in 0 .. 10) {
> > counter <- i// send message to the counter actor
> >}
> >}
> > }
> >
> >
> >
> > --
> > View this message i
i// send message to the counter actor
> }
>}
> }
>
>
>
> --
> View this message in context:
> http://groovy.329449.n5.nabble.com/About-actor-syntax-for-Groovy-3-tp5737574p5737575.html
> Sent from the Groovy Dev mailing list archive at Nabble.com.
Any thoughts?
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> View this message in context:
> http://groovy.329449.n5.nabble.com/About-actor-syntax-for-Groovy-3-tp5737574.html
> Sent from the Groovy Dev mailing list archive at Nabble.com.
____________
If
)
>
>for (i in 0 .. 10) {
> counter <- i// send message to the counter actor
> }
>}
> }
>
>
>
> --
> View this message in context:
> http://groovy.329449.n5.nabble.com/About-actor-syntax-for-Groovy-3-tp5737574p5737575.html
t; >
> > class ActorTest {
> >def counter = new Counter()
> >counter.start()
> >
> >for (i in 0 .. 10) {
> >counter <- i // send message to the counter actor
> >}
> > }
> >
> > Any thoughts?
> >
> > Cheers,
> > Daniel.Sun
> >
> >
> >
> > --
> > View this message in context: http://groovy.329449.n5.
> nabble.com/About-actor-syntax-for-Groovy-3-tp5737574.html
> > Sent from the Groovy Dev mailing list archive at Nabble.com.
>
>
>for (i in 0 .. 10) {
> >counter <- i // send message to the counter actor
> >}
> > }
> >
> > Any thoughts?
> >
> > Cheers,
> > Daniel.Sun
> >
> >
> >
> > --
> > View this message in context: http://groovy.329449.n5.
> nabble.com/About-actor-syntax-for-Groovy-3-tp5737574.html
> > Sent from the Groovy Dev mailing list archive at Nabble.com.
>
>
t;
> > should be modified as:
> >
> > class ActorTest {
> >public static void main(String[] args) {
> >def counter = new Counter()
> >counter.start()
> >
> >for (i in 0 .. 10) {
> > counter <- i
unter = new Counter()
>counter.start()
>
>for (i in 0 .. 10) {
>counter <- i// send message to the counter actor
>}
> }
>
> Any thoughts?
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> View this message in context:
> http://groovy.329449.n5.nabble.com/About-actor-syntax-for-Groovy-3-tp5737574.html
> Sent from the Groovy Dev mailing list archive at Nabble.com.
o the counter actor
>}
>}
> }
>
>
>
> --
> View this message in context:
> http://groovy.329449.n5.nabble.com/About-actor-syntax-for-Groovy-3-tp5737574p5737575.html
> Sent from the Groovy Dev mailing list archive at Nabble.com.
ter()
counter.start()
for (i in 0 .. 10) {
counter <- i// send message to the counter actor
}
}
}
--
View this message in context:
http://groovy.329449.n5.nabble.com/About-actor-syntax-for-Groovy-3-tp5737574p5737575.html
Sent from the Groovy Dev m
oovy.329449.n5.nabble.com/About-actor-syntax-for-Groovy-3-tp5737574.html
Sent from the Groovy Dev mailing list archive at Nabble.com.
17 matches
Mail list logo