Coroutines

2015-08-14 Thread Matija Papec
Hi, I'm looking for single threaded coroutines in perl6. Will hyper/race make them possible? Will 2015 production Rakudo include async IO? Right now I'm considering golang for scalable websocket service, but also wonder if perl6 would (and how) make such thing possible. ps. I would very much

Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Tom Browder
In an earlier thread of mine on this list seeking help, Liz mentioned one string method that has now been dcoumented, 'substr-rw', which allows in-place modification of a string variable. In my journey with Perl 6 I have enjoyed the string 'trim' method so I can do this: my $s = ' blah '; $

Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Philip Hazelden
Correct me if I'm wrong, can't you do $s .= trim ? On 12:45pm, Fri, 14 Aug 2015 Tom Browder wrote: > In an earlier thread of mine on this list seeking help, Liz mentioned > one string method that has now been dcoumented, 'substr-rw', which > allows in-place modification of a string variable. >

Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Tom Browder
On Fri, Aug 14, 2015 at 6:48 AM, Philip Hazelden wrote: > Correct me if I'm wrong, can't you do > > $s .= trim Um, I saw that usage in an earlier thread but didn't try it because it didn't "look right" given my experience with the ".=" operator as I'm used to it. (Note I have now seen that behavi

Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Brandon Allbery
On Fri, Aug 14, 2015 at 8:07 AM, Tom Browder wrote: > But I've tried it and it works (but the syntax still bothers me for > now). Note that the same behavior applies to the 'substr' string > method so that begs the question of why is the 'substr-rw' method > justified and 'trim-rw' not? It seem

Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Tom Browder
On Aug 14, 2015 8:46 AM, "Brandon Allbery" wrote: > On Fri, Aug 14, 2015 at 8:07 AM, Tom Browder wrote: ... >> now). Note that the same behavior applies to the 'substr' string >> method so that begs the question of why is the 'substr-rw' method >> justified and 'trim-rw' not? It seems at first

Re: Coroutines

2015-08-14 Thread Timo Paulssen
On 08/14/2015 12:04 PM, Matija Papec wrote: > Hi, > > I'm looking for single threaded coroutines in perl6. Will hyper/race make > them possible? > Will 2015 production Rakudo include async IO? > > Right now I'm considering golang for scalable websocket service, but also > wonder if perl6 would >