Nitpick my Perl6 - parametric roles

2006-09-25 Thread Sam Vilain
Anyone care to pick holes in this little expression of some Perl 6 core types as collections? I mean, other than missing methods ;) role Collection[\$types] { has Seq[$types] @.members; } role Set[::T = Item] does Collection[T] where { all(.members) =:= one(.members); };

Re: postgres interface

2006-09-25 Thread Leopold Toetsch
Am Montag, 25. September 2006 00:01 schrieb Bob Rogers: > It turns out that if libpq.so doesn't exist, pg.t makes t/harness give > up completely: Yep. > I managed to get it to fail less hard (see patch): Thanks, applied. > But, as you can see, the continuation barrier gets in the way of the > e

Re: [TODO] fill Parrot_register_move() with code : new implementation

2006-09-25 Thread Leopold Toetsch
Am Montag, 25. September 2006 00:06 schrieb Karl Forner: > On 9/15/06, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > - There are 2 use cases for register_move > > a) optimized recursive tail calls > > b) simple function call argument passing compiled to native code in JIT > > core > So in tha

[perl #40410] Segfault in packfile code

2006-09-25 Thread via RT
# New Ticket Created by Jonathan Worthington # Please include the string: [perl #40410] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=40410 > Hi, Parrot segfaults while generating a packfile for a (large) chunk of compil

Parrot Bug Summary

2006-09-25 Thread Parrot Bug Summary
Parrot Bug Summary http://rt.perl.org/rt3/NoAuth/parrot/Overview.html Generated at Mon Sep 25 13:15:02 2006 GMT --- * Numbers * New Issues * Overview of Open Issues * Ticket Status By Version * Requestors with m

Re: Nitpick my Perl6 - parametric roles

2006-09-25 Thread TSa
HaloO, Sam Vilain wrote: Anyone care to pick holes in this little expression of some Perl 6 core types as collections? I mean, other than missing methods ;) My comments follow. role Collection[\$types] { has Seq[$types] @.members; } This is a little wrapper that ensures that c

Re: Nitpick my Perl6 - parametric roles

2006-09-25 Thread Miroslav Silovic
TSa wrote: > role Set[::T = Item] does Collection[T] where { > all(.members) =:= one(.members); > }; Nice usage of junctions! But buggy - one means *exactly* one. So for an array of more than 1 element, all(@array) never equals one(@array) - if they're all the same, it's more tha

Re: Nitpick my Perl6 - parametric roles

2006-09-25 Thread TSa
HaloO, Miroslav Silovic wrote: TSa wrote: Nice usage of junctions! But buggy - one means *exactly* one. So for an array of more than 1 element, all(@array) never equals one(@array) - if they're all the same, it's more than 1, otherwise it's 0. Doesn't all(1,2,3) == one(1,2,3) expand the

Mutability vs Laziness

2006-09-25 Thread Aaron Sherman
Carried over form IRC to placeholder the conversation as I saw it: We define the following in S06 as immutable types: ListLazy Perl list (composed of Seq and Range parts) Seq Completely evaluated (hence immutable) sequence Range Incrementally generated (hence la

[svn:perl6-synopsis] r12398 - doc/trunk/design/syn

2006-09-25 Thread larry
Author: larry Date: Mon Sep 25 10:13:23 2006 New Revision: 12398 Modified: doc/trunk/design/syn/S02.pod doc/trunk/design/syn/S03.pod doc/trunk/design/syn/S06.pod Log: Slaughter of special [,], now is just listop form of [...] To support |func() syntax, | is the new * (desigilized) Modi

Re: Perl6 "style-guide"

2006-09-25 Thread Chris Dolan
On Sep 20, 2006, at 6:16 PM, Darren Duncan wrote: At 4:56 PM +0200 9/20/06, Fagyal Csongor wrote: I was wondering if there is (or there should be) a documentation on how to elegantly write Perl6 code. I have found that Damian's "Perl Best Practices" still works very well for Perl 6 code, s

FYI improved pugs smokes

2006-09-25 Thread Leopold Toetsch
Hi folks, Read the journal http://pugs.blogs.com/pugs/2006/09/check_smoke_res.html Follow the link: http://m19s28.vlinux.de/cgi-bin/pugs-smokeserv.pl? Click at a recent entry with a SYN link Then click on "02 Syntax" Then on e.g.: - Show the snippet from t/syntax/unicode.t (line 7 ~ line 85 —

Re: FYI improved pugs smokes

2006-09-25 Thread jerry gay
On 9/25/06, Leopold Toetsch <[EMAIL PROTECTED]> wrote: Hi folks, Read the journal http://pugs.blogs.com/pugs/2006/09/check_smoke_res.html Follow the link: http://m19s28.vlinux.de/cgi-bin/pugs-smokeserv.pl? Click at a recent entry with a SYN link Then click on "02 Syntax" Then on e.g.: - Show

Re: Mutability vs Laziness

2006-09-25 Thread Dave Whipp
Aaron Sherman wrote: It seems to me that there are three core attributes, each of which has two states: Mutability: true, false Laziness: true, false Ordered: true, false I think there's a 4th: exclusivity: whether or not duplicate elements are permitted/exposed (i.e. the differe

Re: Nitpick my Perl6 - parametric roles

2006-09-25 Thread Sam Vilain
TSa wrote: >> role Collection[\$types] { >>has Seq[$types] @.members; >> } > This is a little wrapper that ensures that collections have got > a @.members sequence of arbitrary type. This immediately raises > the question how Seq is defined. > [...and later...] > Are you sure that the u

Re: Mutability vs Laziness

2006-09-25 Thread Sam Vilain
Aaron Sherman wrote: > Carried over form IRC to placeholder the conversation as I saw it: > > We define the following in S06 as immutable types: > > ListLazy Perl list (composed of Seq and Range parts) > Seq Completely evaluated (hence immutable) sequence > Range

Common Serialization Interface

2006-09-25 Thread Brad Bowman
Both Data::Dumper and Storable provide hooks to customize serialization ($Data::Dumper::Freezer|Toaster, STORABLE_freeze|_thaw). Other modules like YAML and Clone could also possibly reuse a common state marshalling interface. Is there some common element to this process which can be gathered in

Re: Common Serialization Interface

2006-09-25 Thread Mark Stosberg
Brad Bowman wrote: > > Both Data::Dumper and Storable provide hooks to customize serialization > ($Data::Dumper::Freezer|Toaster, STORABLE_freeze|_thaw). > Other modules like YAML and Clone could also possibly reuse a > common state marshalling interface. > > Is there some common element to this

Re: Common Serialization Interface

2006-09-25 Thread Larry Wall
On Mon, Sep 25, 2006 at 09:02:56PM -0500, Mark Stosberg wrote: : Brad Bowman wrote: : > : > Both Data::Dumper and Storable provide hooks to customize serialization : > ($Data::Dumper::Freezer|Toaster, STORABLE_freeze|_thaw). : > Other modules like YAML and Clone could also possibly reuse a : > com

Re: Nitpick my Perl6 - parametric roles

2006-09-25 Thread Ashley Winters
On 9/25/06, Miroslav Silovic <[EMAIL PROTECTED]> wrote: TSa wrote: > > > role Set[::T = Item] does Collection[T] where { > > all(.members) =:= one(.members); > > }; > > Nice usage of junctions! > But buggy - one means *exactly* one. So for an array of more than 1 element, all(@array) n

Re: Nitpick my Perl6 - parametric roles

2006-09-25 Thread Darren Duncan
At 7:28 PM -0700 9/25/06, Ashley Winters wrote: On 9/25/06, Miroslav Silovic <[EMAIL PROTECTED]> wrote: TSa wrote: > role Set[::T = Item] does Collection[T] where { > all(.members) =:= one(.members); > }; > Nice usage of junctions! But buggy - one means *exactly* one. So for a

[svn:perl6-synopsis] r12417 - doc/trunk/design/syn

2006-09-25 Thread audreyt
Author: audreyt Date: Mon Sep 25 20:49:59 2006 New Revision: 12417 Modified: doc/trunk/design/syn/S02.pod doc/trunk/design/syn/S04.pod Log: * S02: Introduce the :$$x form in adverbial pair parsing. * S02/S04: Canonicalize "item" as the unary context enforcer, so that the name "Scalar" can

External PDD Checkin

2006-09-25 Thread chromatic
Hi all, I've added some more thoughts, principles, and questions to the external API draft PDD. I also started two sections on the API. I've changed some of the function signatures in an attempt to make things more consistent. Feedback would be wonderful, even if it's only "This is very sane

[svn:parrot-pdd] r14732 - in trunk: . docs/pdds/clip

2006-09-25 Thread chromatic
Author: chromatic Date: Mon Sep 25 23:06:17 2006 New Revision: 14732 Modified: trunk/docs/pdds/clip/pdd10_embedding.pod Changes in other areas also in this revision: Modified: trunk/ (props changed) Log: Added more principles and gotchas. Added outline for API documentation. Filled in tw