Yapsi 2010.11 Released!

2010-11-01 Thread Carl Mäsak
It is with a contagious joviality that I announce on behalf of the Yapsi development team the October... hm... November 2010 release of Yapsi, a Perl 6 compiler written in Perl 6. You can download it here: Yapsi is implemented in Pe

Re: Tweaking junctions

2010-11-01 Thread Dave Whipp
Buddha Buck wrote: Is it too late in this discussion to point out that, in non-perl usage, eigenstates are associated with the operator, not with the value fed into the operator? [cut] So asking for the eigenstates of a quantum superposition is asking the wrong object for the property. Probab

[perl #76892] [BUG] There's nothing in $0 et al. after doing a regex match with infix: in Rakudo

2010-11-01 Thread Carl Mäsak via RT
masak (>): > rakudo: my $a = "fool!"; $a ~~ / (foo) /; say $0 > rakudo 9b6189: OUTPUT«foo␤» > rakudo: my $a = "fool!"; $a !~~ / (foo) /; say $0 > rakudo 9b6189: OUTPUT«Any()␤» > * masak submits rakudobug rakudo: my $a = "fool!"; $a ~~ / (foo) /; say $0 rakudo 5f5bae: OUTPUT«foo␤» rakudo: my

Re: Tweaking junctions

2010-11-01 Thread Buddha Buck
On Mon, Nov 1, 2010 at 7:24 AM, Moritz Lenz wrote: > On 10/22/2010 06:16 AM, Damian Conway wrote: >> That is, a C<$value> is an eigenstate of a C<$junction> if-and-only-if: >> >>     $value !~~ Junction  &&  $value ~~ $junction > > In general this definition makes it impossible to return a list of

[perl #78752] [BUG] LTA error message when declaring two-colon-sigil variable ::Foo in Rakudo

2010-11-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #78752] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=78752 > rakudo: my ::A rakudo 5f5bae: OUTPUT«===SORRY!===␤Malformed my at line 22, near "::A"␤

[perl #78748] [BUG] Smartmatching against a class yields an Int result, not a Bool result in Rakudo

2010-11-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #78748] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=78748 > rakudo: class A {}; subset B of A; say A ~~ B; say B ~~ A rakudo 5f5bae: OUTPUT«Bool::

Re: Tweaking junctions

2010-11-01 Thread Moritz Lenz
Food for thought, a few non-junction solutions: On 10/22/2010 06:16 AM, Damian Conway wrote: > # Find the list of common elements in two lists... > sub intersection (@list1, @list2) { > (any(@list1) & any(@list2).eigenstates; > } sub intersection(@list1, @list2) { uniq gat

Re: Tweaking junctions

2010-11-01 Thread Moritz Lenz
On 11/01/2010 12:41 PM, Damian Conway wrote: > Moritz wrote: > >>> $value !~~ Junction && $value ~~ $junction >> >> In general this definition makes it impossible to return a list of >> eigenstates from the junction. Just think of junctions containing Code >> objects. > > Well, that's a d

Re: Tweaking junctions

2010-11-01 Thread Damian Conway
Moritz wrote: >>     $value !~~ Junction  &&  $value ~~ $junction > > In general this definition makes it impossible to return a list of > eigenstates from the junction. Just think of junctions containing Code > objects. Well, that's a deficiency in smartmatching: that Callable ~~ Code doesn't ch

Re: Tweaking junctions

2010-11-01 Thread Moritz Lenz
On 10/22/2010 06:16 AM, Damian Conway wrote: > That is, a C<$value> is an eigenstate of a C<$junction> if-and-only-if: > > $value !~~ Junction && $value ~~ $junction In general this definition makes it impossible to return a list of eigenstates from the junction. Just think of junctions con