Re: r31043 -[S32/Containers] Buf does Stringy, too

2010-06-02 Thread Moritz Lenz
Jason Switzer wrote: > On Wed, Jun 2, 2010 at 5:10 AM, wrote: > >> Author: masak >> Date: 2010-06-02 12:10:22 +0200 (Wed, 02 Jun 2010) >> New Revision: 31043 >> >> Modified: >> docs/Perl6/Spec/S32-setting-library/Containers.pod >> Log: >> [S32/Containers] Buf does Stringy, too >> >> -class

Re: r31050 -[S03] refine hyper dwimminess to be more like APL, with modular semantics

2010-06-02 Thread Moritz Lenz
Solomon Foster wrote: > On Wed, Jun 2, 2010 at 3:52 PM, Aaron Sherman wrote: >> Is there some automatic translation of these examples into tests? If not, >> here's what they'd be: >> >> ok(( (1,2,3,4) «+» (1,2) ) ~~ (2,4,4,6) ) >> ok(( (1,2,3) «+» (1,2) ) ~~ (2,4,4) ) >> ok(( (1,2,3,4) «+« (1,

Re: r31050 -[S03] refine hyper dwimminess to be more like APL, with modular semantics

2010-06-02 Thread Solomon Foster
On Wed, Jun 2, 2010 at 3:52 PM, Aaron Sherman wrote: > Is there some automatic translation of these examples into tests? If not, > here's what they'd be: > > ok(( (1,2,3,4) «+» (1,2) ) ~~ (2,4,4,6) ) > ok(( (1,2,3)   «+» (1,2) ) ~~ (2,4,4)   ) > ok(( (1,2,3,4) «+« (1,2) ) ~~ (2,4)     ) > ok(( (1,

Re: r31043 -[S32/Containers] Buf does Stringy, too

2010-06-02 Thread Aaron Sherman
On Wed, Jun 2, 2010 at 2:59 PM, Jason Switzer wrote: > On Wed, Jun 2, 2010 at 5:10 AM, wrote: > > > > > -class Buf does Positional {...} > > +class Buf does Positional does Stringy {...} > > > > I never really thought about this, but now that I see it here, it made me > realize that how

Re: r31050 -[S03] refine hyper dwimminess to be more like APL, with modular semantics

2010-06-02 Thread Aaron Sherman
On Wed, Jun 2, 2010 at 12:51 PM, wrote: > + > +(1,2,3,4) »+« (1,2) # always error > +(1,2,3,4) «+» (1,2) # 2,4,4,6 rhs dwims to ((1,2) xx *).batch(4) > +(1,2,3) «+» (1,2) # 2,4,4 rhs dwims to ((1,2) xx *).batch(3) > +(1,2,3,4) «+« (1,2) # 2,4 lhs dwims

Re: r31043 -[S32/Containers] Buf does Stringy, too

2010-06-02 Thread Jason Switzer
On Wed, Jun 2, 2010 at 5:10 AM, wrote: > Author: masak > Date: 2010-06-02 12:10:22 +0200 (Wed, 02 Jun 2010) > New Revision: 31043 > > Modified: > docs/Perl6/Spec/S32-setting-library/Containers.pod > Log: > [S32/Containers] Buf does Stringy, too > > -class Buf does Positional {...} > +cl

Re: r31051 -[S02] refine Blobs to simply be immutable Bufs, with similar generic characteristics

2010-06-02 Thread Jon Lang
Darren Duncan wrote: > With the above addition, you have both Buf and Blob roles as well as Buf and > Blob types. > > I think you need to make each of those just a role or a type, and then add > another named entity which is the counterpart role or type. > > For example, as you have Stringy as a ro

Re: r31054 -[S03] suggestions from dataweaver++

2010-06-02 Thread yary
And while we're at it with expanding examples, can we use string concatenation instead of addition? It makes following what's happening easier. eg, +1 on that prior post. -y

Re: r31054 -[S03] suggestions from dataweaver++

2010-06-02 Thread Jon Lang
wrote: > +Regardless of whether the dwim is forced or emergent from the shapes > +of the arrays, once the side to dwim on has been chosen, the dwim > +semantics on the dwimmy side are always: > + > +    (@dwimmyside xx *).batch(@otherside.elems) > + > +This produces a list the same length as the c

r31054 -[S03] suggestions from dataweaver++

2010-06-02 Thread pugs-commits
Author: lwall Date: 2010-06-02 20:19:54 +0200 (Wed, 02 Jun 2010) New Revision: 31054 Modified: docs/Perl6/Spec/S03-operators.pod Log: [S03] suggestions from dataweaver++ more refinements to the description of the dwim semantics Modified: docs/Perl6/Spec/S03-operators.pod =

Re: r31050 -[S03] refine hyper dwimminess to be more like APL, with modular semantics

2010-06-02 Thread Jon Lang
Smylers wrote: > pugs-comm...@feather.perl6.nl writes: > >> Author: lwall >> Log: >> [S03] refine hyper dwimminess to be more like APL, with modular semantics >> >> +    (1,2,3)   »+» 1       # 2,4,4,6     rhs dwims to (1 xx *).batch(3) > > I'd've expected the output to be 2,3,4; is the 2,4,4,6 cop

r31053 -[S03] copy-o spotted by Smylers++

2010-06-02 Thread pugs-commits
Author: lwall Date: 2010-06-02 20:02:31 +0200 (Wed, 02 Jun 2010) New Revision: 31053 Modified: docs/Perl6/Spec/S03-operators.pod Log: [S03] copy-o spotted by Smylers++ Modified: docs/Perl6/Spec/S03-operators.pod === --- docs/Perl

r31052 -[S02] add native blob types

2010-06-02 Thread pugs-commits
Author: lwall Date: 2010-06-02 19:54:21 +0200 (Wed, 02 Jun 2010) New Revision: 31052 Modified: docs/Perl6/Spec/S02-bits.pod Log: [S02] add native blob types Modified: docs/Perl6/Spec/S02-bits.pod === --- docs/Perl6/Spec/S02-bits.

Re: r31051 -[S02] refine Blobs to simply be immutable Bufs, with similar generic characteristics

2010-06-02 Thread Darren Duncan
pugs-comm...@feather.perl6.nl wrote: Author: lwall Date: 2010-06-02 19:30:34 +0200 (Wed, 02 Jun 2010) New Revision: 31051 Modified: docs/Perl6/Spec/S02-bits.pod Log: [S02] refine Blobs to simply be immutable Bufs, with similar generic characteristics Thank you for this change; it was esse

r31051 -[S02] refine Blobs to simply be immutable Bufs, with similar generic characteristics

2010-06-02 Thread pugs-commits
Author: lwall Date: 2010-06-02 19:30:34 +0200 (Wed, 02 Jun 2010) New Revision: 31051 Modified: docs/Perl6/Spec/S02-bits.pod Log: [S02] refine Blobs to simply be immutable Bufs, with similar generic characteristics Modified: docs/Perl6/Spec/S02-bits.pod ===

Re: r31050 -[S03] refine hyper dwimminess to be more like APL, with modular semantics

2010-06-02 Thread Smylers
pugs-comm...@feather.perl6.nl writes: > Author: lwall > Log: > [S03] refine hyper dwimminess to be more like APL, with modular semantics > > +(1,2,3) »+» 1 # 2,4,4,6 rhs dwims to (1 xx *).batch(3) I'd've expected the output to be 2,3,4; is the 2,4,4,6 copy pasta or am I missing s

r31050 -[S03] refine hyper dwimminess to be more like APL, with modular semantics

2010-06-02 Thread pugs-commits
Author: lwall Date: 2010-06-02 18:51:06 +0200 (Wed, 02 Jun 2010) New Revision: 31050 Modified: docs/Perl6/Spec/S03-operators.pod Log: [S03] refine hyper dwimminess to be more like APL, with modular semantics Modified: docs/Perl6/Spec/S03-operators.pod =

r31045 -[S32/Containers] oh, and let's bump the version, too

2010-06-02 Thread pugs-commits
Author: masak Date: 2010-06-02 12:11:42 +0200 (Wed, 02 Jun 2010) New Revision: 31045 Modified: docs/Perl6/Spec/S32-setting-library/Containers.pod Log: [S32/Containers] oh, and let's bump the version, too Modified: docs/Perl6/Spec/S32-setting-library/Containers.pod =

r31044 -[S32/Containers] Buf.new parameter no longer slurpy

2010-06-02 Thread pugs-commits
Author: masak Date: 2010-06-02 12:10:26 +0200 (Wed, 02 Jun 2010) New Revision: 31044 Modified: docs/Perl6/Spec/S32-setting-library/Containers.pod Log: [S32/Containers] Buf.new parameter no longer slurpy Feedback from implementors suggests that this would be too inefficient. Also, might be good

r31043 -[S32/Containers] Buf does Stringy, too

2010-06-02 Thread pugs-commits
Author: masak Date: 2010-06-02 12:10:22 +0200 (Wed, 02 Jun 2010) New Revision: 31043 Modified: docs/Perl6/Spec/S32-setting-library/Containers.pod Log: [S32/Containers] Buf does Stringy, too Modified: docs/Perl6/Spec/S32-setting-library/Containers.pod ===