Re: using MD5 parrot library in Q:PIR block

2010-06-10 Thread Gerd Pokorra
I think the easiest way would be to add a method in the file runtime/parrot/library/Digest/MD5.pir that gives the md5 checksum back as a string. I can look at the source code and try to do this for you if you want and add a method may be called _md5_sum_get. -- Gerd Am Mittwoch, den 09.06.2010,

Re: using MD5 parrot library in Q:PIR block

2010-06-10 Thread Cosimo Streppone
In data 10 giugno 2010 alle ore 08:48:42, Gerd Pokorra g...@zimt.uni-siegen.de ha scritto: I think the easiest way would be to add a method in the file runtime/parrot/library/Digest/MD5.pir that gives the md5 checksum back as a string. I can look at the source code and try to do this for you

Re: The obligation of free stuff: Google Storage

2010-06-10 Thread Richard Hainsworth
Ideally [at least, what I would like], managing a file on a remote resource should be the same as managing one locally, eg. my Amazon $fn = open($path-to-input-file-location/$file-name, :r) or die $!; for $fn.readlines { }; $fn.close; my Google $fn =

Re: using MD5 parrot library in Q:PIR block

2010-06-10 Thread Gerd Pokorra
I am wrong. As I just looked at the source code I saw that there is already a method (_md5_hex) that can be used to get the checksum as string. #!/usr/bin/perl6 Q:PIR { load_bytecode 'Digest/MD5.pbc' .local pmc md5sum, md5_sum_get md5sum = get_root_global ['parrot'; 'Digest'],

Re: using MD5 parrot library in Q:PIR block

2010-06-10 Thread Cosimo Streppone
On Thu, 10 Jun 2010 09:17:23 +0200, Gerd Pokorra g...@zimt.uni-siegen.de wrote: #!/usr/bin/perl6 Q:PIR { load_bytecode 'Digest/MD5.pbc' .local pmc md5sum, md5_sum_get md5sum = get_root_global ['parrot'; 'Digest'], '_md5sum' $P0 = md5sum('foo') md5_sum_get =

[perl #75634] Rakudo goes into infinite loop on multiplied zero-width matches like: + or ws+

2010-06-10 Thread via RT
# New Ticket Created by Paweł Pabian # Please include the string: [perl #75634] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75634 [16:25] bbkr rakudo: grammar X { token TOP { ws+ } }; X.parse( ); # why it goes

Contribution to Perl 6 Week 6: help improve the sidebars in the book

2010-06-10 Thread Dean Serenevy
Here are some patches which 1) Modify Pod::PseudoPod::LaTeX to (when requested) emit LaTeX code which requires that certain environments be defined (rather than enforcing style in Pod::PseudoPod::LaTeX itself). In particular, the sidebar environment. Tests included. 2) Add a sidebar

[perl #75636] Hash slices not working with Array or GatherIterator

2010-06-10 Thread via RT
# New Ticket Created by Paweł Pabian # Please include the string: [perl #75636] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75636 Erlangen build: # testing with Array perl6 -e 'my @t=1,2; my %h; %...@t}=one,two;

[perl #75638] Multis are not exported by default

2010-06-10 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #75638] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75638 IIRC the spec says that multis should be exported by default, in Rakudo they are not

[perl #75644] [BUG] Error when reporting an error during parsing caused by doing a role with Lions containing each other in Rakudo

2010-06-10 Thread Carl Mäsak
# New Ticket Created by Carl Mäsak # Please include the string: [perl #75644] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75644 masak rakudo: role Lion[::T] {}; class LionMadeOfLions does Lion[Lion] {} p6eval

[perl #75646] [BUG] Null PMC access when printing a variable typed as ::foo in Rakudo

2010-06-10 Thread Carl Mäsak
# New Ticket Created by Carl Mäsak # Please include the string: [perl #75646] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75646 diakopter rakudo: my ::foo $x; say $x p6eval rakudo a54677: OUTPUT«Null PMC access in

[perl #75648] [BUG] [WEIRD] Internal parser error when parsing 'my ::a a' in Rakudo

2010-06-10 Thread Carl Mäsak
# New Ticket Created by Carl Mäsak # Please include the string: [perl #75648] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75648 diakopter rakudo: my ::a a p6eval rakudo a54677:

[perl #75650] [PATCH] Add test for loading perl6.pbc as bytecode

2010-06-10 Thread Jonathan Leto
# New Ticket Created by Jonathan Leto # Please include the string: [perl #75650] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75650 Howdy, I have attached a small patch that adds a test for loading perl6.pbc via

[perl #75654] Infinite list with ..

2010-06-10 Thread via RT
# New Ticket Created by Johnathan Swan # Please include the string: [perl #75654] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75654 Hi I discovered this a few days ago when messing around. My program tried to a

Re: The obligation of free stuff: Google Storage

2010-06-10 Thread Leon Timmermans
On Thu, Jun 10, 2010 at 9:15 AM, Richard Hainsworth rich...@rusrating.ru wrote: Ideally [at least, what I would like], managing a file on a remote resource should be the same as managing one locally, eg. my Amazon $fn = open($path-to-input-file-location/$file-name, :r) or die $!; for

[perl #75640] calling nextsame in an proto causes a Null PMC Access

2010-06-10 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #75640] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75640 proto sub a($x) is export { say in proto; nextsame } sub a(Str $x) { say Str $x };

[perl #75604] [BUG] [mod] doesn't work in Rakudo

2010-06-10 Thread jn...@jnthn.net via RT
On Tue Jun 08 06:03:24 2010, masak wrote: masak rakudo: say [mod] 100, 99, 88, 77, 66, 55, 44 p6eval rakudo 34c1ba: OUTPUT«===SORRY!===␤Could not find sub infix:mod␤» masak huh?colomon huh. masak rakudo: say 100 mod 99 p6eval rakudo 34c1ba: OUTPUT«1␤» * masak submits rakudobug colomon

Re: The obligation of free stuff: Google Storage

2010-06-10 Thread Mark J. Reed
On Thursday, June 10, 2010, Leon Timmermans faw...@gmail.com wrote: I agree it should be similar to normal FS interactoin to make matters as intuitive as possible, but I horrified by the idea of overloading open() that way But open is already overloaded in p5, with pipes etc. We don't want to

Re: Contribution to Perl 6 Week 6: help improve the sidebars in the book

2010-06-10 Thread Moritz Lenz
Hi Dean, thank you very much for your patches. I've incorporated them, and I'm really grateful for the useful input from somebody with stronger LaTeX-fu than me. Dean Serenevy wrote: 1) Modify Pod::PseudoPod::LaTeX to (when requested) emit LaTeX code which requires that certain environments

Re: The obligation of free stuff: Google Storage

2010-06-10 Thread Brandon S. Allbery KF8NH
On Jun 10, 2010, at 07:22 , Leon Timmermans wrote: I agree it should be similar to normal FS interactoin to make matters as intuitive as possible, but I horrified by the idea of overloading open() that way. That's a PHP mistake I wouldn't like seeing repeated. If you want open to do something