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 = open("$path-to-output-file-location/$fil

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'], '_md5su

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 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 = get_root_global ['parrot'; 'Digest'],

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

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. # http://rt.perl.org/rt3/Ticket/Display.html?id=75634 > [16:25] rakudo: grammar X { token TOP { + } }; X.parse(" "); # why it goes into infini

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" envir

[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. # 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"; s

[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. # 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 (mak

[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. # http://rt.perl.org/rt3/Ticket/Display.html?id=75644 > rakudo: role Lion[::T] {}; class LionMadeOfLions does Lion[Lion] {} rakudo a54677: OUT

[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. # http://rt.perl.org/rt3/Ticket/Display.html?id=75646 > rakudo: my ::foo $x; say $x rakudo a54677: OUTPUT«Null PMC access in type() [...] * ma

[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. # http://rt.perl.org/rt3/Ticket/Display.html?id=75648 > rakudo: my ::&a &a rakudo a54677: OUTPUT«===SORRY!===␤ResizablePMCArray: Can't pop fro

[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. # 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 load

[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. # 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 create

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 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 $fn.readlines { }; >

[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. # 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" }; su

[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: > rakudo: say [mod] 100, 99, 88, 77, 66, 55, 44 > rakudo 34c1ba: OUTPUT«===SORRY!===␤Could not find sub > &infix:␤» > huh? huh. > rakudo: say 100 mod 99 > rakudo 34c1ba: OUTPUT«1␤» > * masak submits rakudobug > rakudo: say [div] 100, 99, 88, 77, 66, 5

Re: The obligation of free stuff: Google Storage

2010-06-10 Thread Mark J. Reed
On Thursday, June 10, 2010, 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 But open is already overloaded in p5, with pipes etc. We don't want to repeat the mi

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 tha

r31189 -[S06] print default usage messag to standard output, by petition from avar++

2010-06-10 Thread pugs-commits
Author: moritz Date: 2010-06-11 08:11:20 +0200 (Fri, 11 Jun 2010) New Revision: 31189 Modified: docs/Perl6/Spec/S06-routines.pod Log: [S06] print default usage messag to standard output, by petition from avar++ Modified: docs/Perl6/Spec/S06-routines.pod