PHP/Parrot

2003-07-29 Thread Stephen Thorne
G'day, I'm doing a bit of research and having a bit of fun reimplementing the PHP parser, I've been using Python and dParser.sf.net (http://dparser.sf.net A scannerless GLR parser). I'm almost to the point where I can start taking an AST and doing code generation, and I'd really like to be

Re: PHP/Parrot

2003-07-29 Thread Luke Palmer
G'day, I'm doing a bit of research and having a bit of fun reimplementing the PHP parser, I've been using Python and dParser.sf.net (http://dparser.sf.net A scannerless GLR parser). I'm almost to the point where I can start taking an AST and doing code generation, and I'd really like to

Re: tcc failures

2003-07-29 Thread Leopold Toetsch
Josh Wilmes wrote: For some reason, this only occurs when imcc is built with tcc- it works fine with the other compilers. I don't know what this error is meant to mean, so i'm not quite sure how to troubleshoot it. Any ideas? [EMAIL PROTECTED]:~/devel/parrot% ./parrot t/op/arithmetics_38.pasm

Re: [perl #23135] Build fails under Win32

2003-07-29 Thread Vladimir Lipskiy
Jonathan Worthington: LIB : fatal error LNK1181: cannot open input file jit_cpu.obj NMAKE : fatal error U1077: 'lib' : return code '0x49d' Stop. There *is* code in config/auto/jit.pl to disable JIT on Win32, so I'm not sure why Parrot's trying to compile it. I *do* know that it was

Re: approaching python

2003-07-29 Thread Joseph F. Ryan
Benjamin Goldberg wrote: Joseph Ryan wrote: Benjamin Goldberg wrote: K Stol wrote: The register stuff, I presume, is register allocation and the like? When targeting IMCC, you can use an infinite amount of registers. Just keep a counter in the code generator, each time a new register is

Re: [CVS ci] make: print filenames only

2003-07-29 Thread Vladimir Lipskiy
Echoing all compiler flags clutters the screen too much, so that warnings easily can get missed. Earlier I used to run make -s which silents make. Still better would be: - echo compiler flags once - echo filenames only - let the work depending on -s was given to make or not or such Yepper.

Patch status

2003-07-29 Thread Juergen Boemmels
I have a question about the status of my patches: [perl #23034][PATCH] Implementation of methods for PIOs [perl #23124][PATCH] [PATCH] Standard filehandles in the interpreter are now PMCs. There was very little feedback to this. Can someone give me some feedback to the patches or if

Re: [RfC] Clean up of the ParrotIOLayerAPI

2003-07-29 Thread Juergen Boemmels
This should go to the list also: Gregor N. Purdy [EMAIL PROTECTED] writes: Juergen -- Juergen Boemmels wrote: Write PutS Why are there two diffrent calls to write data to an io, with only a slightly different prototype. This is code-duplication in every layer. I can't think

Re: Patch status

2003-07-29 Thread Dan Sugalski
At 15:10 +0200 7/29/03, Juergen Boemmels wrote: I have a question about the status of my patches: [perl #23034][PATCH] Implementation of methods for PIOs [perl #23124][PATCH] [PATCH] Standard filehandles in the interpreter are now PMCs. There was very little feedback to this. Can

[perl #23159] Parrot SIGSEGV in scratchpad_find

2003-07-29 Thread via RT
# New Ticket Created by Jos Visser # Please include the string: [perl #23159] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt2/Ticket/Display.html?id=23159 Description:

Why we went with CPS for parrot

2003-07-29 Thread Dan Sugalski
Klaas-Jan asked about this a while back--sorry it's taken so long to get an answer. If you read back through the list and other stuff I've written, it's pretty clear that while I like CPS, I wasn't convinced that CPS was the way to go, but if you look at the parrot code now, we use CPS. Why?

Re: Patch status

2003-07-29 Thread Leopold Toetsch
Juergen Boemmels wrote: I have a question about the status of my patches: [perl #23034][PATCH] Implementation of methods for PIOs [perl #23124][PATCH] [PATCH] Standard filehandles in the interpreter are now PMCs. There was very little feedback to this. I didn't have a closer look

This week's Perl 6 Summary

2003-07-29 Thread Piers Cawley
Perl 6 Summary for the week ending 20030727 Welcome to another in the ongoing series of Perl 6 summaries in which your faintly frazzled summarizer attempts to find a native speaker of Esperanto to translate this opening paragraph in honour of the huge amount of money (1371 Euros)

Re: [perl #23159] Parrot SIGSEGV in scratchpad_find

2003-07-29 Thread Mr. Nobody
--- Jos Visser [EMAIL PROTECTED] wrote: # New Ticket Created by Jos Visser # Please include the string: [perl #23159] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt2/Ticket/Display.html?id=23159

Re: parrot on HP-UX etc

2003-07-29 Thread H.Merijn Brand
On Tue 29 Jul 2003 16:40, Leopold Toetsch [EMAIL PROTECTED] wrote: Hi Merijn, Available: HP-UX 11.00 32bit 1 or 2 CPU's HP C-ANSI-C and gcc-3.3 HP-UX 11.00 64bit 1 or 2 CPU's HP C-ANSI-C and gcc-3.3 HP-UX 10.20 32bit HP C-ANSI-C and gcc-3.3 AIX 4.3 32bit

Re: [perl #23135] Build fails under Win32

2003-07-29 Thread Lars Balker Rasmussen
Vladimir Lipskiy [EMAIL PROTECTED] writes: if (-e jit/$cpuarch/core.jit and not $osname == 'MSWin32'){ ITYM: if (-e jit/$cpuarch/core.jit and $osname ne 'MSWin32') { -- Lars Balker Rasmussen Consult::Perl

Re: parrot on HP-UX etc

2003-07-29 Thread Simon Glover
On Tue, 29 Jul 2003, H.Merijn Brand wrote: On Tue 29 Jul 2003 16:40, Leopold Toetsch [EMAIL PROTECTED] wrote: Hi Merijn, HP-UX 11.00/32 2 CPU: : io/io_buf.c cpp: io/io_buf.c, line 65: warning 2001: Redefinition of macro MAX. cpp: io/io_buf.c, line 66: warning 2001: Redefinition of

[CVS ci] PCC 1-3

2003-07-29 Thread Leopold Toetsch
Parrot now has basic PCC (Parrot Calling Convention) support inside the PIR assembler. 1) no fancy stuff like register renumbering 2) only the upper half of all registers are preserved currently TODO: - tests - more tests - docs - still more tests - optimize register usage - tail call

Re: [perl #23135] Build fails under Win32

2003-07-29 Thread Vladimir Lipskiy
There *is* code in config/auto/jit.pl to disable JIT on Win32, so I'm not sure why Parrot's trying to compile it. I *do* know that it was working fine before the exec stuff went in--perhaps looking at the diffs on jit.pl will be enlightening. Unfortunately, I'm away from my home

Re: [perl #23135] Build fails under Win32

2003-07-29 Thread Vladimir Lipskiy
if (-e jit/$cpuarch/core.jit and $osname ne 'MSWin32') { Yeah, you're right. Thanks. Index: jit.pl === RCS file: /cvs/public/parrot/config/auto/jit.pl,v retrieving revision 1.18 diff -r1.18 jit.pl 71c71 if (-e

Re: parrot on HP-UX etc

2003-07-29 Thread Juergen Boemmels
Index: io/io_buf.c === RCS file: /cvs/public/parrot/io/io_buf.c,v retrieving revision 1.6 diff -u -r1.6 io_buf.c --- io/io_buf.c 21 Jul 2003 18:00:45 - 1.6 +++ io/io_buf.c 29 Jul 2003 18:31:39 - @@ -62,9 +62,6 @@ size_t

Re: parrot on HP-UX etc

2003-07-29 Thread Simon Glover
On 29 Jul 2003, Juergen Boemmels wrote: Simon Glover [EMAIL PROTECTED] writes: On Tue, 29 Jul 2003, H.Merijn Brand wrote: iii) protect them with #ifdef MAX/#endif I bet the definition of MAX and MIN on HP-UX is identical to my definition. I would not be surprised. Ok, here is the

[perl #23162] [PATCH] get miniparrot compile

2003-07-29 Thread Jürgen
# New Ticket Created by Jürgen Bömmels # Please include the string: [perl #23162] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt2/Ticket/Display.html?id=23162 Hi, I just tried to get perl Configure.pl --miniparrot running following

Re: PHP/Parrot

2003-07-29 Thread Simon Glover
On 29 Jul 2003, Luke Palmer wrote: G'day, For a complete list of instructions, grab the cvs and look at the various .ops files. They are scattered with POD documentation about each op they implement. The same documentation can also be found in the docs/ops/ subdirectory -- it's

Re: [perl #23162] [PATCH] get miniparrot compile

2003-07-29 Thread Simon Glover
On Tue, 29 Jul 2003, Jürgen Bömmels wrote: # New Ticket Created by Jürgen Bömmels # Please include the string: [perl #23162] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt2/Ticket/Display.html?id=23162 Thanks, applied. miniparrot

Re: [perl #23159] Parrot SIGSEGV in scratchpad_find

2003-07-29 Thread Jos Visser
On Tue, Jul 29, 2003 at 09:11:15AM -0700 it came to pass that Mr. Nobody wrote: I don't think it's worth adding extra overhead to lexical variables just to support broken pasm. There are many ways to crash parrot with bad code - but it's OK, since compilers of higher level languages simply

Re: [perl #23159] Parrot SIGSEGV in scratchpad_find

2003-07-29 Thread Simon Glover
On Tue, 29 Jul 2003, Jos Visser wrote: On Tue, Jul 29, 2003 at 09:11:15AM -0700 it came to pass that Mr. Nobody wrote: I don't think it's worth adding extra overhead to lexical variables just to support broken pasm. There are many ways to crash parrot with bad code - but it's OK, since

Re: cvs commit: parrot/docs/pdds pdd02_vtables.pod

2003-07-29 Thread Leopold Toetsch
Simon Glover [EMAIL PROTECTED] wrote: Try and explain what invoke is supposed to do. NB this still needs work [ snip ] +=item void* invoke(INTERP, PMC* self, void* next) [ snap ] +It should set up the environment for the sub, and should return the +location at which operation flow

Re: cvs commit: parrot/docs/pdds pdd02_vtables.pod

2003-07-29 Thread Simon Glover
On Tue, 29 Jul 2003, Leopold Toetsch wrote: Simon Glover [EMAIL PROTECTED] wrote: Try and explain what invoke is supposed to do. NB this still needs work [ snip ] +=item void* invoke(INTERP, PMC* self, void* next) [ snap ] +It should set up the environment for the sub, and

Re: [perl #23159] Parrot SIGSEGV in scratchpad_find

2003-07-29 Thread Leopold Toetsch
Simon Glover wrote: Therefore the decision was taken that we should not guarantee that Parrot should never segfault when fed bad assembler; ... in the fast run case, but we will provide a save environment, that does do all kinds of bounds checking, check byte code, have a reduced and

Task for the interested: Coverage

2003-07-29 Thread Dan Sugalski
One thing we don't have is a complete set of coverage tests for the parrot opcodes. (Nor stats as to which ops do actually get covered by our current test suite) This would be a good thing to have, especially if we could add it into the make test target to generate a coverage report as part of

Re: This week's Perl 6 Summary

2003-07-29 Thread Leopold Toetsch
Piers Cawley [EMAIL PROTECTED] wrote: Okay, okay, PONIE really stands for 'Perl On New Internal Engine'. That's that what they say. Actually it was: PONIEPONIE: Perl5 Obsoletes Nasty Internals Entirely: Parrot Occupies Numerous Interpreters Everywhere But that was to bulky. Or too many

[CVS ci] Exec argument.

2003-07-29 Thread Daniel Grunblatt
I have checked in a patch to make the following work: ./parrot -o life.o examples/assembly/life.pbc So, don't use test_main anymore. I made this storing the pointer to the -o argument in the interpreter string register 0 to make it visible from inside the core, instead of adding another

Re: Task for the interested: Coverage

2003-07-29 Thread Leopold Toetsch
Dan Sugalski wrote: One thing we don't have is a complete set of coverage tests for the parrot opcodes. (Nor stats as to which ops do actually get covered by our current test suite) This would be a good thing to have, especially if we could add it into the make test target to generate a

Re: Task for the interested: Coverage

2003-07-29 Thread Josh Wilmes
There is http://www.hitchhiker.org/parrot_coverage/, which is built by tools/dev/parrot_coverage.pl. Any enhancements made there should show up in the next run. I disabled it about a month ago when it started going into an endless loop on a test. I'll try turning it back on though. --Josh

Re: [perl #23159] Parrot SIGSEGV in scratchpad_find

2003-07-29 Thread chromatic
On Tuesday, July 29, 2003, at 02:41 PM, Simon Glover wrote: Therefore the decision was taken that we should not guarantee that Parrot should never segfault when fed bad assembler; the creation of invalid assembler is a compiler bug, and should be fixed at the compiler level. If people write

Re: [perl #23159] Parrot SIGSEGV in scratchpad_find

2003-07-29 Thread Daniel Grunblatt
On Tuesday 29 July 2003 21:10, chromatic wrote: On Tuesday, July 29, 2003, at 02:41 PM, Simon Glover wrote: Therefore the decision was taken that we should not guarantee that Parrot should never segfault when fed bad assembler; the creation of invalid assembler is a compiler bug, and

Re: [perl #23159] Parrot SIGSEGV in scratchpad_find

2003-07-29 Thread Dan Sugalski
At 20:54 -0300 7/29/03, Daniel Grunblatt wrote: On Tuesday 29 July 2003 21:10, chromatic wrote: On Tuesday, July 29, 2003, at 02:41 PM, Simon Glover wrote: Therefore the decision was taken that we should not guarantee that Parrot should never segfault when fed bad assembler; the creation