[perl #128667] Enum value matching type name obliterates said name for that type.

2016-07-18 Thread via RT
# New Ticket Created by  Faye 
# Please include the string:  [perl #128667]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=128667 >


$ perl6 -e 'say Int.WHAT; enum A ; say Int.WHAT'
(Int)
(A)

Note that the original type is still available under CORE:

$ perl6 -e 'say Int.WHAT; enum A ; say CORE::Int.WHAT'
(Int)
(Int)

But this ruins more than just what name you can use:

$ perl6 -e 'enum A ; say 42'
===SORRY!===
Cannot unbox a type object

I found this bug when coming across this error:

$ perl6 -e 'enum A ; enum C ;'
===SORRY!=== Error while compiling -e
Cannot resolve caller trait_mod:(C, A); none of these signatures match:
(Mu:U $doee, Mu:U $role)
(Variable:D $v, Mu:U $role)
at -e:1

The proper solution would be to not try to take that global in this case, 
and/or to allow the user to specify they don't want to pollute the global 
namespace in the first place.


Re: package build problem

2016-07-18 Thread Gerd Pokorra
Hello,

could you make it perfekt?

For building the package I have do disable the check of the BUILDROOT in
the spec file:

QA_SKIP_BUILD_ROOT=1
export QA_SKIP_BUILD_ROOT

Otherwise I get the following error message:


chmod --
755 
/home/gz016/rpmbuild/BUILDROOT/rakudo-star-0.0.2016.07.1-1.fc23.x86_64/usr/bin/perl6
+ /usr/lib/rpm/check-buildroot
Binary
file 
/home/gz016/rpmbuild/BUILDROOT/rakudo-star-0.0.2016.07.1-1.fc23.x86_64/usr/share/perl6/precomp/03419F43BFFCE0AEDE2CD622AE91E8513382EF49.1468884655.98131/C5/C57EBB9F7A3922A4DA48EE8FCF34A4DC55942942
 matches
Found
'/home/gz016/rpmbuild/BUILDROOT/rakudo-star-0.0.2016.07.1-1.fc23.x86_64'
in installed files; aborting
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.Plu9Ys (%
install)



Could you make install-core-dist.pl better that if do not touch the
BUILDROOT?

--Gerd



Re: package build problem

2016-07-18 Thread Gerd Pokorra
Hello,

sorry for the issue. By really using 2016.07.1 in place of 2016.07 it
works fine.

--Gerd

Am Dienstag, den 19.07.2016, 00:51 +0200 schrieb Gerd Pokorra:
> Hello,
> 
> was already someone successful to build a package (rpm) with the new
> rakudo 2016.07.1 release?
> 
> I built and installed system packages for moarvm and nqp
> (--prefix=/usr).
> 
> By building the rakudo package on top of it I have the following problem
> with the new perl6 install-core-dist.pl script:
> 
> ./perl6-m
> tools/build/upgrade-repository.pl 
> /home/gerd/rpmbuild/BUILDROOT/rakudo-star-0.0.2016.07-1.fc23.x86_64/usr/share/perl6/site
> ./perl6-m
> tools/build/install-core-dist.pl 
> /home/gerd/rpmbuild/BUILDROOT/rakudo-star-0.0.2016.07-1.fc23.x86_64/usr/share/perl6
> ===SORRY!===
> Could not find CompUnit::Repository::Staging at line 0 in:
> /usr/share/perl6
> CompUnit::Repository::AbsolutePath<93970426352016>
> CompUnit::Repository::NQP<93970412556504>
> CompUnit::Repository::Perl5<93970412556544>
> 
>   in block  at tools/build/install-core-dist.pl line 21
> 
> Makefile:553: recipe for target 'm-install' failed
> make: *** [m-install] Error 1
> Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.LMCAcR (%
> install)
> 
> 
> --Gerd
> 
> 




package build problem

2016-07-18 Thread Gerd Pokorra
Hello,

was already someone successful to build a package (rpm) with the new
rakudo 2016.07.1 release?

I built and installed system packages for moarvm and nqp
(--prefix=/usr).

By building the rakudo package on top of it I have the following problem
with the new perl6 install-core-dist.pl script:

./perl6-m
tools/build/upgrade-repository.pl 
/home/gerd/rpmbuild/BUILDROOT/rakudo-star-0.0.2016.07-1.fc23.x86_64/usr/share/perl6/site
./perl6-m
tools/build/install-core-dist.pl 
/home/gerd/rpmbuild/BUILDROOT/rakudo-star-0.0.2016.07-1.fc23.x86_64/usr/share/perl6
===SORRY!===
Could not find CompUnit::Repository::Staging at line 0 in:
/usr/share/perl6
CompUnit::Repository::AbsolutePath<93970426352016>
CompUnit::Repository::NQP<93970412556504>
CompUnit::Repository::Perl5<93970412556544>

  in block  at tools/build/install-core-dist.pl line 21

Makefile:553: recipe for target 'm-install' failed
make: *** [m-install] Error 1
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.LMCAcR (%
install)


--Gerd




Re: [perl #128655] Mixup in candidates through optimizer

2016-07-18 Thread Will Coleda
Please reply to all on tickets, so that comments also end up back in
RT as well. (I linked the tickets based on your comment here.)

On Mon, Jul 18, 2016 at 4:10 AM, mt1957  wrote:
> Hi Elizabeth,
>
> Need to mention that there was a ticket #128624 created 'Buf initialization
> error'.
>
> Regards,
> Marcel Timmerman



-- 
Will "Coke" Coleda


[perl #128664] rakudo.org - icon image hardlinked to other site

2016-07-18 Thread via RT
# New Ticket Created by  Will Coleda 
# Please include the string:  [perl #128664]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=128664 >


The rakudo logo on each page is linked to:

http://rakudoperl.org/wp/wp-content/uploads/2011/04/rakudo-1001.png

But the image also exists on rakudo.org, so:

/wp/wp-content/uploads/2011/04/rakudo-1001.png

would be a better URL to use, loading from whatever host/protocol was used.

For example, rakudo.org is whitelisted at my $dayjob, but
rakudoperl.org is not, so the logo, by default, doesn't render for me.



-- 
Will "Coke" Coleda


Announce: Rakudo Perl 6 compiler, Release 2016.07.1

2016-07-18 Thread zoffix


On behalf of the Rakudo development team, I'm announcing an
out-of-schedule release of the Rakudo Perl 6 compiler.
Rakudo is an implementation of Perl 6 on the Moar Virtual Machine[^1].

This release is a point release in addition to the regular, monthly
releases. Rakudo 2016.07 (note: no .1) was discovered to have issues with
make DESTDIR[^3], which creates a problem for packagers. As this month
will also see the next Rakudo Star[^2] release, based on the latest Rakudo,
the development team decided it was worth it to make a point release
fixing the packaging issues.

The tarball for this release is available from  
.


Please note: This announcement is not for the Rakudo Star
distribution[^2] --- it’s announcing a new release of the compiler
only. For the latest Rakudo Star release, see
.

Other changes since the 2016.07 release are also included in this  
point release:


New in 2016.07.1:
 + Fixes:
   + `make DESTDIR` now correctly finds CompUnit::Repository::Staging
   + .polymod with a lazy list no longer loses mods if the list runs out
   + Output from Test.pm6's diag() is no longer lost in non-verbose  
prove output

 when called at the start of the test file or during TODO tests
   + Bitwise operators that return int/Int no longer fail with candidate error
 when given a native int argument
 + Additions:
   + Improved error message when IO::Path.new is given incorrect arguments
   + Improved error message when .polymod is given a zero as divisor
 + Efficiency:
   + Str.samecase is now 5x faster
   + Str.indices is 10% faster
   + Str.rindex is 30% faster
   + Str.index is 30% faster

The following people contributed to this release:

Zoffix Znet, Stefan Seifert, Elizabeth Mattijsen, Christian Bartolomäus

If you would like to contribute or find out more information, visit
, , ask on the
 mailing list, or ask on IRC #perl6 on freenode.

The next release of Rakudo (#102), is tentatively scheduled for 2016-08-20.

A list of the other planned release dates is available in the
“docs/release_guide.pod” file.

The development team appreciates feedback! If you’re using Rakudo, do
get back to us. Questions, comments, suggestions for improvements, cool
discoveries, incredible hacks, or any other feedback -- get in touch with
us through (the above-mentioned) mailing list or IRC channel. Enjoy!

Please note that recent releases have known issues running on the JVM.
We are working to get the JVM backend working again but do not yet have
an estimated delivery date.

[^1]: See 

[^2]: What’s the difference between the Rakudo compiler and the Rakudo
Star distribution?

[^3]: See https://rt.perl.org/Ticket/Display.html?id=128652

The Rakudo compiler is a compiler for the Perl 6 language.
Not much more.

The Rakudo Star distribution is the Rakudo compiler plus a selection
of useful Perl 6 modules, a module installer, the most recent
incarnation of the “Using Perl 6” book, and other software that can
be used with the Rakudo compiler to enhance its utility.




Re: [perl #128632] [BUG] get freezes terminal on x64 Windows implementation

2016-07-18 Thread Josh Helzer

What is the more recent version for Windows that I missed?

On 07/18/2016 08:21 AM, Zoffix Znet via RT wrote:

Thanks for the report.

Based on your description, it seems like the issue has already been resolved in 
more recent releases.

Would you, please, describe what needs to be done in order for this ticket to 
be considered as resolved?





[perl #128662] [@LARRY] samecase("") ok, samemark("") fails

2016-07-18 Thread via RT
# New Ticket Created by  Elizabeth Mattijsen 
# Please include the string:  [perl #128662]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=128662 >


$ 6 'say "foo".samecase("")'
foo
$ 6 'say "foo".samemark("")'
Must have at least 1 char of pattern with 'samemark'
  in block  at -e line 1

feels to me either should just return self silently, or both should fail on an 
empty pattern.


[perl #128661] [BUG] Inconsistent behavior of state variables across backends

2016-07-18 Thread via RT
# New Ticket Created by  Pepe Schwarz 
# Please include the string:  [perl #128661]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=128661 >


JVM and MoarVM behave differently with regards to state variables, as in the 
following example:

10:14 < psch> r: sub f { loop { say $++; last } }; f;f;f;f;
10:14 < camelia> rakudo-moar 8aaffa: OUTPUT«0␤0␤0␤0␤»
10:14 < camelia> ..rakudo-jvm cd19db: OUTPUT«0␤1␤2␤3␤»

This difference is the underlying issue in ticket #126528. 

http://irclog.perlgeek.de/perl6-dev/2016-07-18#i_12859256 and onward has some 
discussion regarding behavior, although no decision which of those two is or 
should be considered correct.


Re: [perl #128655] Mixup in candidates through optimizer

2016-07-18 Thread mt1957

Hi Elizabeth,

Need to mention that there was a ticket #128624 created 'Buf 
initialization error'.


Regards,
Marcel Timmerman