Compiler Toolkit

2009-11-24 Thread Ovid
because it refers me to non-existent files. Anyone know about about this area and can fix up a few things so people can dive back into writing compilers? Cheers, Ovid -- Buy the book - http://www.oreilly..com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal

Re: Compiler Toolkit

2009-11-24 Thread Ovid
installable_xyz strip: can't open file: installable_xyz (No such file or directory) Cheers, Ovid -- Buy the book - http://www.oreilly..com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
- Original Message From: Ovid publiustemp-perl6interna...@yahoo.com This patch implements the .trim() method for strings. Now that I'm reading S29, I see there is no .trim() method there. I got that because it was referenced in pugs in the cookbook (not in tests, though

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
- Original Message From: jesse je...@fsck.com On Mon, Jan 12, 2009 at 07:01:25AM -0800, Ovid wrote: I could optionally make the following work: $string.trim(:leading0); $string.trim(:trailing0); Alternatively, those could be ltrim() and rtrim(). 'left

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
- Original Message From: Larry Wall la...@wall.org On Mon, Jan 12, 2009 at 05:04:50AM -0800, Ovid wrote: : ...the trivial $string.trim and trim($string) case. Hmm, I'd think .trim should work like .chomp, and return the trimmed string without changing the original. You'd use

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
it, though. You'd have to figure out which methods to call. Or all could be allowed and $string.trim(:leading0) could all $string.rtrim internally. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter

[PATCH] Revised .trim patch

2009-01-12 Thread Ovid
and now has tests. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6 trim.patch Description: Binary data

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
wanted to take that lead... How about .trim(:start) and .trim(:end)? So if: 1. No params, trim all 2. :start or :end, only trim that bit (not a negated option :) 3. If both, goto 1 Sound good? Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
of how one *would* properly override trim's concept of whitespace Change your locale to one with a different concept of whitespace (are there any?) Otherwise, would this be trying to stuff too much into one function? Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog

[PATCH] Add .trim method

2009-01-11 Thread Ovid
, there are no tests because I couldn't find any pugs tests for this :( What's the appropriate procedure for this? However, all tests pass and a small test program passed (including calling trim() as a function). Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks

[PATCH]: implement .trim method

2009-01-11 Thread Ovid
pugs tests for this :( What's the appropriate procedure for this? Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http

Re: [PATCH] Add .trim method

2009-01-11 Thread Ovid
:( Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Re: [perl #61052] [BUG]: r33482 Can't run 'make realclean' in languages/perl6 directory

2008-12-05 Thread Ovid
that. It comes from my 'rebuild' script and that's just finger memory on my part. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http

Parrot doesn't build on OS X

2008-11-01 Thread Ovid
error make[1]: *** Deleting file `PGE.pbc' make: *** [compilers.dummy] Error 2 $ uname -a Darwin curtis-poes-computer-2.local 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386 Cheers, Ovid -- Buy the book - http://www.oreilly.com

Known Bug in Rakudo?

2008-10-30 Thread Ovid
*** This is Parrot 0.8.0. $ uname -a Linux critix 2.6.8-2-686-smp #1 SMP Tue Aug 16 12:08:30 UTC 2005 i686 GNU/Linux Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl

Re: Parrot on mobile platforms?

2008-10-23 Thread Ovid
interested). Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Re: [perl #60016] [PATCH] Make basic Perl 6 tests pass

2008-10-21 Thread Ovid
, of course, this isn't supposed to be implemented yet, but that seems strange since it's in the basic tests. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official

Fw: Running Perl 6 Tests

2008-10-20 Thread Ovid
It would help if I sent this to the correct mailing list. Oops. Cheers, Ovid --- On Mon, 20/10/08, Ovid [EMAIL PROTECTED] wrote: I've been doing some work integrating Perl 6 into vim and now I'm trying to figure out how to run individual Perl 6 tests. It appears that the incantation

Re: Fw: Running Perl 6 Tests

2008-10-20 Thread Ovid
correct. Bummer. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Re: [perl #60016] AutoReply: [PATCH] Make basic Perl 6 tests pass

2008-10-20 Thread Ovid
want to play with Rakudo will see a test failure if they run 'make test' as the README instructs. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl

Re: [perl #60016] AutoReply: [PATCH] Make basic Perl 6 tests pass

2008-10-20 Thread Ovid
not notice the tests failing, but that's because make test seems to run the harness 3 times and the failing test is in the first run. If you don't notice this, you won't notice these tests failing. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http

Re: [perl #56236] [BUG]: Unable to 'make perl6' on OS X 10.4 PPC

2008-06-24 Thread Ovid
. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Re: [perl #56236] [BUG]: Unable to 'make perl6' on OS X 10.4 PPC

2008-06-24 Thread Ovid
--- Ovid [EMAIL PROTECTED] wrote: I tried again, and 'make perl6' succeeded at r27371. The plot thickens! w00t! I'll try this when I get home tonight. This is great news. Nope. 'make test' and 'make perl6' both return the following: ../../parrot -o perl6.pbc perl6.pir src

Re: [perl #56236] [BUG]: Unable to 'make perl6' on OS X 10.4 PPC

2008-06-24 Thread Ovid
Forget everything I wrote. I missed a couple of files in my cleaning. I got rid of them, did a 'make clean make perl6' and now everything is just dandy. Thanks for the help. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http

Re: [perl #56236] [BUG]: Unable to 'make perl6' on OS X 10.4 PPC

2008-06-24 Thread Ovid
;P6metaclass;register' pc 411 (runtime/parrot/library/P6object.pir:295) called from Sub 'parrot;Str;onload' pc 859 (src/gen_builtins.pir:584) called from Sub 'parrot;Perl6::Compiler;main' pc -1 ((unknown file):-1) I get the same error even if I do ../../parrot perl6.pbc hello.pl. Cheers, Ovid -- Buy

Bugs or Unimplemented Features?

2008-06-24 Thread Ovid
breaks from email from time to time). Cheers, Ovid Null PMC access in type() current instr.: 'fact' pc 334 (EVAL_15:127) called from Sub '_block11' pc 34 (EVAL_15:17) called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806 (src/PCT/HLLCompiler.pir:481) called from Sub 'parrot;PCT::HLLCompiler

Re: [perl #56020] [OK]: Report on Parrot Build Fest at YAPC

2008-06-19 Thread Ovid
an older version of Test::Harness. If you upgrade, it will break things down further, including telling you which test in which test program unexpectedly succeeded. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Personal blog - http://publius-ovidius.livejournal.com/ Tech

Re: [perl #56108] AutoReply: [BUG] make fails in languages/perl6

2008-06-19 Thread Ovid
: directory Schedule: normal Last Changed Author: jonathan Last Changed Rev: 28555 Last Changed Date: 2008-06-19 19:43:36 +0100 (Thu, 19 Jun 2008) Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Personal blog - http://publius-ovidius.livejournal.com/ Tech blog - http

Re: [perl #56108] AutoReply: [BUG] make fails in languages/perl6

2008-06-19 Thread Ovid
--- Jonathan Worthington [EMAIL PROTECTED] wrote: Hi, Ovid wrote: http://rt.perl.org/rt3/Ticket/Display.html?id=56108 This is related to Rakudo starting to use dynops (dynamic op libraries) today. I managed to mess up the makefile by forgetting to stick in the cleaning stuff

Re: [perl #56108] AutoReply: [BUG] make fails in languages/perl6

2008-06-19 Thread Ovid
there)/ # ' # './parrot /Users/ovid/code/parrot/t/dynoplibs/myops_3.pir' failed with exit code [SIGNAL 6] not ok 4 - a short cheating quine # Failed test 'a short cheating quine' # at t/dynoplibs/myops.t line 76. # Exited with error code: [SIGNAL 6] # Received: # src/interpreter.c:1030: failed

[PATCH] Perl::Critic Version Wrong

2008-06-18 Thread Ovid
state that default_forbidden words is a method, not a function. It was called as a function, but I changed it to a class method call to ensure that if it really is required to be a method in the future, things don't break. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks

Tutorial Question: catch blocks

2008-03-27 Thread Ovid
is in $S0? My pir is below. Is this actually correct and all will become clear later? Cheers, Ovid .namespace .sub _block10 push_eh catch_11 get_global $P15, _block12 newclosure $P15, $P15 $P14 = $P15() pop_eh goto catch_11_end catch_11: get_global $P19, _block16

make pbc_to_c fails

2007-12-30 Thread Ovid
:268) called from Sub 'main' pc 126 (pbc_to_c.pir:29) make: *** [pbc_to_c] Error 1 (More detailed error message below). Cheers, Ovid parrot $ make pbc_to_c perl tools/dev/pbc_to_c_gen.pl \ './CFLAGS cc -I./include -g -pipe -fno-common -no-cpp-precomp -I/usr/local/include -pipe -fno

Re: make pbc_to_c fails

2007-12-30 Thread Ovid
--- Ovid [EMAIL PROTECTED] wrote: On a related note, I received this error message: Ack, some files were missing! I can't continue running without everything here. Please try to find the above files and then try running Configure again. Configure.pl kept running yet the message

Re: make pbc_to_c fails

2007-12-30 Thread Ovid
can do, please let me know. Cheers, Ovid t/postconfigure/01-options...ok t/postconfigure/02-data_slurpok t/postconfigure/03-revision_no_DEVELOPINGok t/postconfigure/04-revision..ok t/postconfigure/05-trace

Re: [perl #49228] [BUG] 'make pbc_to_c' fails on Darwin

2007-12-30 Thread Ovid
the same error. I did a 'make realclean', rebuilt, and then manually edited the Makefile to get rid of just one of those and it still failed with the same error. I don't know Makefiles very well, so I suppose my cargo-culting around didn't help. Cheers, Ovid -- Buy the book - http