minimal Parrot for small (embedded) system

2008-03-11 Thread Wim Vanderbauwhede
I would like to use Parrot on a small platform (embedded microprocessor system). The system would need a minimal parrot that should only run precompiled bytecode, nothing else, and it does not even need the PGE. But it should be very small (say 250K). I compiled parrot --without almost everything

minimal Parrot for embedded system

2008-03-09 Thread Wim Vanderbauwhede
I would like to use Parrot on an embedded microprocessor system. It needs a minimal parrot that should only run precompiled bytecode, nothing else, and it does not even need the PGE (eventually, it would need JIT for PowerPC or MicroBlaze). But it should be very small (say 250K). I compiled parrot

Re: Perl 6 fundraising and related topics.

2008-02-21 Thread Wim Vanderbauwhede
On 21/02/2008, Juerd Waalboer [EMAIL PROTECTED] wrote: (Someone wrote:) And who decides that it's the one based on parrot? It is the original plan to implement Perl 6 on Parrot, and the project that gets most developer attention. What happens if parrot turns out to be a dead end?

pugspc: Perl 6 to PIR with Pugs

2008-02-14 Thread Wim Vanderbauwhede
I'd like to announce the first commit of pugspc. pugspc is a stand-alone Perl 6 to PIR compiler branched off from Pugs. My aim with pugspc is not to compete with rakudo but to preserve and maintain the know-how built into Pugs. Currently pugspc passes fewer tests than rakudo, mainly because the

pugs with ghc 6.8.1

2007-11-17 Thread Wim Vanderbauwhede
I have patched Pugs for compilation with GHC 6.8.1. However, the changes break the 6.6.1 build (a.o. because of the change in the bytestring API and the way wobbly types are handled). So do we stick with 6.6.1 or upgrade to 6.8.1? Cheers, Wim

Re: pugs bugs (or features?)

2007-09-07 Thread Wim Vanderbauwhede
On 07/09/2007, Chas Owens [EMAIL PROTECTED] wrote: On 9/7/07, Wim Vanderbauwhede [EMAIL PROTECTED] wrote: The following program works fine in pugs r17041 (which is the rev of /usr/bin/pugs on feather): my $r=\{say $x+1}; my $x=2; $r(); With r17041, this gives 3; However

pugs bugs (or features?)

2007-09-07 Thread Wim Vanderbauwhede
The following program works fine in pugs r17041 (which is the rev of /usr/bin/pugs on feather): my $r=\{say $x+1}; my $x=2; $r(); With r17041, this gives 3; However, on the latest pugs (r17615 or later), it gives an error: *** Unexpected $r expecting =, ::, context, : or ( Variable

Re: pugs bugs (or features?)

2007-09-07 Thread Wim Vanderbauwhede
I think it could be a GHC bug: I rebuilt r17041 with ghc-6.6.1 (just a few changes to use the new filepath package in Pugs.hs and Pugs/Run.hs) and it shows the bug. I assume the pugs on feather really is r17041, to be really sure I should build r17041 with ghc-6.6. I should manage that next week.

interactive pugs fails in safe mode

2007-04-12 Thread Wim Vanderbauwhede
Hi, Since a week or so interactive pugs fails when run with PUGS_SAFEMODE=1: Loading Prelude... Reloading Prelude from source...pugs: user error (*** *** Can't modify constant item: VUndef at prelude line 781, column 9-46 prelude line 781, column 9-46 at) Wim -- If it's

Operator overloading/Inheritance from built-in types?

2006-10-05 Thread Wim Vanderbauwhede
Hi all, I want to create a kind of bitvector object. Ideally, I'd like to inherit from Array and then overload [],=, +,- etc. I tried to overload the '+' operator, but I can't get it to work as a method. Also, I'd like to overload the assignment operator. Is that at all possible? Below is my

error when using - as lambda function

2006-10-03 Thread Wim Vanderbauwhede
Hi all, I encountered this strange error in pugs (in 6.2.11,6.2.12 and the latest svn) My first program (lambda1.p6) calculates the factorial of 5 using - as lambda functions: say (- $n { - $f { $f($n,$f) }.( - $n, $f { $n2 ?? 1 !! $n*$f($n-1,$f) }) }).(5); say OK; say OK; $ pugs lambda1.p6