Re: grammar: difference between rule, token and regex

2006-06-02 Thread Rene Hangstrup Møller
Patrick R. Michaud wrote: Jerry is correct that S05 is the place to look for information on this. But to summarize an answer to your question: Thank you very much for the swift and thorough answer. It answered all my questions. Your reply was very pedagogical and deserves to go into the man

Re: grammar: difference between rule, token and regex

2006-06-02 Thread Patrick R. Michaud
On Fri, Jun 02, 2006 at 01:56:55PM -0700, jerry gay wrote: > On 6/2/06, Rene Hangstrup Møller <[EMAIL PROTECTED]> wrote: > >I am toying around with Parrot and the compiler tools. The documenation > >of Perl 6 grammars that I have been able to find only describe rule. But > >the grammars in Parrot 0

RE: Synchronized / Thread syntax in Perl 6

2006-06-02 Thread Paul Hodges
--- John Drago <[EMAIL PROTECTED]> wrote: . . . > > class QueueRunner { > >our sub process_queue(Code @jobs_in) { > > my @ans is serial; > > @ans.push map { async { &_() } } @jobs_in; > > @ans; > >} > > } > > my @answer = QueueRunner.process_job_queue( @jobs ); > > Actual

Re: grammar: difference between rule, token and regex

2006-06-02 Thread jerry gay
On 6/2/06, Rene Hangstrup Møller <[EMAIL PROTECTED]> wrote: Hi I am toying around with Parrot and the compiler tools. The documenation of Perl 6 grammars that I have been able to find only describe rule. But the grammars in Parrot 0.4.4 for punie and APL use rule, token and regex elements. Can

Re: Concurrency: hypothetical variables and atomic blocks

2006-06-02 Thread Darren Duncan
At 1:50 PM -0700 6/1/06, Larry Wall wrote: As for side-effecty ops, many of them can just be a promise to perform the op later when the transaction is committed, I suspect. Yes, but it would be important to specify that by the time control is returned to whatever invoked the op, that any side

RE: Synchronized / Thread syntax in Perl 6

2006-06-02 Thread John Drago
> > > You mean "is parallel" as a synonym for "is async"? > > > > I think "is parallel" denotes something as usable by multiple threads > > simultaneously, "in parallel". > > "is serial" would denote that only one thread can use the $thing at a > > time, exclusively. > > Are you saying both are as

Re: About default options ':ratchet' and ':sigspace' on rules

2006-06-02 Thread Patrick R. Michaud
On Fri, Jun 02, 2006 at 02:17:25PM +0800, Shu-chun Weng wrote: > 1. Spaces at beginning and end of rule blocks should be ignored > since space before and after current rule are most likely be > defined in rules using current one. > 1a. I'm not sure if it's "clear" to define as this, but t

RE: Synchronized / Thread syntax in Perl 6

2006-06-02 Thread Paul Hodges
--- John Drago <[EMAIL PROTECTED]> wrote: > > You mean "is parallel" as a synonym for "is async"? > > I think "is parallel" denotes something as usable by multiple threads > simultaneously, "in parallel". > "is serial" would denote that only one thread can use the $thing at a > time, exclusively

About default options ':ratchet' and ':sigspace' on rules

2006-06-02 Thread Shu-chun Weng
Hello, (used to post on google group but found it does not deliver) I'm implementing "MiniPerl6" in pugs which is the first step of writing perl 6 parser in perl 6. In module Pugs::Grammar::MiniPerl6, http://svn.openfoundry.org/pugs/misc/pX/Common/Pugs-Grammar-MiniPerl6, I use another perl 6 gr

RE: Synchronized / Thread syntax in Perl 6

2006-06-02 Thread John Drago
> > James Mastros wrote: > > > I don't like the name synchronized -- it implies that multiple > > > things are happening at the same time, as in synchronized swiming, > > > which is exactly the opposite of what should be implied. > > > "Serialized" would be a nice name, except it implies serializ

Re: Concurrency: hypothetical variables and atomic blocks

2006-06-02 Thread Jonathan Worthington
"Jonathan Scott Duff" <[EMAIL PROTECTED]> wrote: On Thu, Jun 01, 2006 at 02:22:12PM -0700, Jonathan Lang wrote: Forgive this ignorant soul; but what is "STM"? Software Transaction Memory Well, Software Transactional Memory if I'm being picky. :-) Some info and an interesting paper here:-