Re: Buf.pm: FIFO and grammar

2010-08-13 Thread Jonathan Worthington
Nicholas Clark wrote: On Thu, Aug 12, 2010 at 03:38:31PM +0200, Carl Mäsak wrote: In fact, jnthn++ had a talk at YAPC::EU the other week where he showed how nested signatures can be used to make hierarchical matches. A proof-of-concept module could simply be some sugar around this already

Re: Buf.pm: FIFO and grammar

2010-08-13 Thread Aaron Sherman
On Fri, Aug 13, 2010 at 11:27 AM, Jonathan Worthington jonat...@jnthn.netwrote: I saw a video camera in the room, but not sure when we'll be seeing the footage from that. In the meantime, the slides are at: http://www.jnthn.net/papers/2010-yapc-eu-signatures.pdf Nice talk! One minor nit,

Re: Buf.pm: FIFO and grammar

2010-08-13 Thread Jon Murray
My understanding from synopses was that you get the Perl 5 behaviour if you omit the signature on your function declaration (though I unfortunately can't check as I don't have Rakudo installed): sub foo { @_[0] = 1 } my $a = 0; foo($a); say $a; # 0 Cheers... On Fri, 2010-08-13 at 12:06 -0400,

Re: Buf.pm: FIFO and grammar

2010-08-13 Thread Aaron Sherman
On Fri, Aug 13, 2010 at 8:11 PM, Jon Murray perlsm...@gmail.com wrote: My understanding from synopses was that you get the Perl 5 behaviour if you omit the signature on your function declaration (though I unfortunately can't check as I don't have Rakudo installed): sub foo { @_[0] = 1 } my

Re: Buf.pm: FIFO and grammar

2010-08-13 Thread Brandon S Allbery KF8NH
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/13/10 22:03 , Aaron Sherman wrote: On Fri, Aug 13, 2010 at 8:11 PM, Jon Murray perlsm...@gmail.com wrote: My understanding from synopses was that you get the Perl 5 behaviour if you omit the signature on your function declaration (though I

Re: Buf.pm: FIFO and grammar

2010-08-12 Thread Carl Mäsak
Oha (): after speaking with masak, i come up with some ideas about Buf i would like to share with you, maybe you can find them usefull http://register.oha.it/buf.pod Just thought I'd weigh in here a bit. Oha's proposal consists of two parts, each of which is interesting in its own right: *

Re: Buf.pm: FIFO and grammar

2010-08-12 Thread Aaron Sherman
On Thu, Aug 12, 2010 at 5:47 AM, Carl Mäsak cma...@gmail.com wrote: Oha (): * Grammars define a hierarchical structure that seems to be perfect for encoding the packing of larger pieces of data, for example when serializing an object structure. Could one use grammars, or something very

Re: Buf.pm: FIFO and grammar

2010-08-12 Thread Carl Mäsak
Carl (), Aaron (): * Grammars define a hierarchical structure that seems to be perfect for encoding the packing of larger pieces of data, for example when serializing an object structure. Could one use grammars, or something very much like it, as a modern pack template? A while back we had a

Re: Buf.pm: FIFO and grammar

2010-08-12 Thread Nicholas Clark
On Thu, Aug 12, 2010 at 03:38:31PM +0200, Carl Mäsak wrote: In fact, jnthn++ had a talk at YAPC::EU the other week where he showed how nested signatures can be used to make hierarchical matches. A proof-of-concept module could simply be some sugar around this already existing functionality.

Buf.pm: FIFO and grammar

2010-08-11 Thread Oha
after speaking with masak, i come up with some ideas about Buf i would like to share with you, maybe you can find them usefull http://register.oha.it/buf.pod HTH Oha