Re: Printing literal \0 in parrot

2002-05-18 Thread Dan Sugalski
At 6:47 PM +0200 5/15/02, Joe Yates wrote: Dear all, I'm trying to print the following string: \0 I.e. the output of the perl instruction print \\0; See attached test. It's getting treated as a string terminator. Am I escaping incorrectly, or is it incorrect treatment of \0

Re: gcc vs ICC comparison

2002-05-18 Thread Dan Sugalski
At 8:41 PM +0300 5/15/02, [EMAIL PROTECTED] wrote: Does Parrot compile on ICC , if yes is it faster ? I don't know that anyone's tried. Care to download it and take a shot? (I don't have the free disk space on my Linux box at the moment) -- Dan

Re: From the Too Much Time on My Hands Department...

2002-05-18 Thread Dan Sugalski
At 2:49 PM -0700 5/15/02, Tony Payne wrote: Towers of Hanoi in parrot assembler. Feel free to use it as an example, or just as a test-case for PerlArrays. Added to the repository. Thanks! -- Dan --it's like

Re: [netlabs #590] Can't Print the Sequence slash + zero

2002-05-18 Thread Dan Sugalski
At 1:38 PM + 5/16/02, Joe Yates (via RT) wrote: # New Ticket Created by Joe Yates # Please include the string: [netlabs #590] # in the subject line of all future correspondence about this issue. # URL: http://bugs6.perl.org/rt2/Ticket/Display.html?id=590 Dear all, In parrot code, I'm

RE: [COMMIT] Embedding overhaul

2002-05-18 Thread Dan Sugalski
At 1:14 PM -0700 5/15/02, Brent Dax wrote: Dan Sugalski: # At 12:51 AM -0700 5/15/02, Brent Dax wrote: # -Parrot becomes Parrot_Interp # -Parrot_String is gone and the string_funcs.h functions are # no longer # externally visible. -A few structures have been renamed. # -config.h has been

Re: Test op/stacks:29 dying.

2002-05-18 Thread Dan Sugalski
At 4:19 PM -0400 5/15/02, Kevin Falcone wrote: BD == Brent Dax [EMAIL PROTECTED] writes: BD Chris Ball: BD # (Note: My first attempt at this message bounced from BD # onion.perl.org, which is why it's going to p6i. Reported to BD # [EMAIL PROTECTED], who's looking into it.) BD # == BD #

Re: More memory management changes

2002-05-18 Thread Dan Sugalski
At 9:53 PM +0200 5/15/02, Peter Gibbs wrote: The attached patch is the next set of proposed changes to the memory management routines, with the copy-on-write logic removed. Peter, did these go in? -- Dan --it's like

Re: Where to put #ifs

2002-05-18 Thread Dan Sugalski
At 2:27 PM -0400 5/16/02, Melvin Smith wrote: If we are not to put non-embed visible in config.h, we must pre-process parrot.h, because I need to put symbls such as EXP_NETWORKING somewhere. Put anything that alters how Parrot works in config.h. It won't ultimately be included by embedders. --

Re: CVS Access

2002-05-18 Thread Dan Sugalski
At 12:45 PM -0500 5/16/02, David M. Lloyd wrote: Is CVS access for Parrot still invitation-only? If not, I would like to request CVS access. I have posted mildly useful patches (mostly warning fixes really) in the past; I don't think any have ever been rejected. The CVS page at

Perl6 currying

2002-05-18 Thread Angel Faus
Hi, I was reading Damian's new excellent diary entry in which he explains the new currying syntax for Perl6. (For the lazy ones it's reachable at http://www.yetanother.org/damian/diary_latest.html) This new feature allows to partially fill place-holder functions, such as: my div = {$^x /

Re: More memory management changes

2002-05-18 Thread Steve Fink
On Sat, May 18, 2002 at 12:18:14PM -0400, Dan Sugalski wrote: At 9:53 PM +0200 5/15/02, Peter Gibbs wrote: The attached patch is the next set of proposed changes to the memory management routines, with the copy-on-write logic removed. Peter, did these go in? I don't think so, and I don't

Re: More memory management changes

2002-05-18 Thread Dan Sugalski
At 10:29 AM -0700 5/18/02, Steve Fink wrote: On Sat, May 18, 2002 at 12:18:14PM -0400, Dan Sugalski wrote: At 9:53 PM +0200 5/15/02, Peter Gibbs wrote: The attached patch is the next set of proposed changes to the memory management routines, with the copy-on-write logic removed. Peter,

Re: Perl6 currying

2002-05-18 Thread 3uke Palmer
On Sat, 18 May 2002, Angel Faus wrote: ...curry example... But I am not sure I like the syntax. The problems I see are: - You only can curry placeholder-generated functions. So if you intend to make a function curryiable, you are forced to use place-holders, even if that's not the cleanest

Re: Perl6 currying

2002-05-18 Thread Larry Wall
Angel Faus writes: : Hi, : : I was reading Damian's new excellent diary entry in which he explains the : new currying syntax for Perl6. : : (For the lazy ones it's reachable at : http://www.yetanother.org/damian/diary_latest.html) : : This new feature allows to partially fill place-holder

Re: Perl6 currying

2002-05-18 Thread Larry Wall
3uke Palmer writes: : Perhaps if it's generated with placeholders, the C.curry would be : implicit. That way we can stay terse when the situation is simple. Like : with Damian's Cgiven...Cwhen example. When I'm writing scripts, I : don't want to type those 6 characters, but if I'm doing

Re: More memory management changes

2002-05-18 Thread Peter Gibbs
The COW patch has been revised for minimal impact to the outside world. The only files changed are: resources.h, resources.c, string.h, string.c There is one API change: Parrot_reallocate_string has an additional parameter. However, nobody outside string.c really has any business calling that

RE: [COMMIT] Embedding overhaul

2002-05-18 Thread Brent Dax
Dan Sugalski: # At 1:14 PM -0700 5/15/02, Brent Dax wrote: # Dan Sugalski: # # At 12:51 AM -0700 5/15/02, Brent Dax wrote: # # -Parrot becomes Parrot_Interp # # -Parrot_String is gone and the string_funcs.h functions are # no # longer # externally visible. -A few structures have been renamed. #

RE: [COMMIT] Embedding overhaul

2002-05-18 Thread Dan Sugalski
At 3:16 PM -0700 5/18/02, Brent Dax wrote: Dan Sugalski: # At 1:14 PM -0700 5/15/02, Brent Dax wrote: # Dan Sugalski: # # At 12:51 AM -0700 5/15/02, Brent Dax wrote: # # -Parrot becomes Parrot_Interp # # -Parrot_String is gone and the string_funcs.h functions are # no # longer # externally

Re: More memory management changes

2002-05-18 Thread Dan Sugalski
At 11:05 PM +0200 5/18/02, Peter Gibbs wrote: The COW patch has been revised for minimal impact to the outside world. The only files changed are: resources.h, resources.c, string.h, string.c There is one API change: Parrot_reallocate_string has an additional parameter. However, nobody outside

Profiling PMCs

2002-05-18 Thread Melvin Smith
I decided to do some profiling and tinkering and I picked the PerlInt class since its one of the most common. There is a large gap between our MOPS benchmarks when using the plain INT registers as opposed to the PMC regs. There seems to be much room for optimization in the PMC virtual methods,

RE: [COMMIT] Embedding overhaul

2002-05-18 Thread Melvin Smith
At 07:25 PM 5/18/2002 -0400, Dan Sugalski wrote: # Flag handling, or at least feature enabling, should probably be done # by core code. We should provide a set_feature() function Right now we have something like this: Parrot_setflag(interpreter, PARROT_CGOTO_FLAG, NULL); I'm not sure

Re: Profiling PMCs

2002-05-18 Thread Dan Sugalski
At 7:25 PM -0400 5/18/02, Melvin Smith wrote: Yeh I know that word is yucky and from Java land, but in this case, I think that system PMCs should take liberties for optimization. *All* PMCs should take liberties for optimization. PMC vtable entries are the only things that should know the

RE: [COMMIT] Embedding overhaul

2002-05-18 Thread Dan Sugalski
At 7:31 PM -0400 5/18/02, Melvin Smith wrote: At 07:25 PM 5/18/2002 -0400, Dan Sugalski wrote: # Flag handling, or at least feature enabling, should probably be done # by core code. We should provide a set_feature() function Right now we have something like this:

Re: Profiling PMCs

2002-05-18 Thread Melvin Smith
At 07:33 PM 5/18/2002 -0400, Dan Sugalski wrote: At 7:25 PM -0400 5/18/02, Melvin Smith wrote: Yeh I know that word is yucky and from Java land, but in this case, I think that system PMCs should take liberties for optimization. *All* PMCs should take liberties for optimization. PMC vtable

Re: Profiling PMCs

2002-05-18 Thread Dan Sugalski
At 7:35 PM -0400 5/18/02, Melvin Smith wrote: At 07:33 PM 5/18/2002 -0400, Dan Sugalski wrote: At 7:25 PM -0400 5/18/02, Melvin Smith wrote: Yeh I know that word is yucky and from Java land, but in this case, I think that system PMCs should take liberties for optimization. *All* PMCs should

Re: Profiling PMCs

2002-05-18 Thread Melvin Smith
Also, it's perfectly fine for a coordinated group of PMCs (like, say, the ones that provide perl's base scalar behavior) to share grubby internal knowledge, though I'd like to keep that under control, as it's easy to get out of sync. Ok, now that I'm looking closer, it appears my

RE: [COMMIT] Embedding overhaul

2002-05-18 Thread Brent Dax
Dan Sugalski: # At 3:16 PM -0700 5/18/02, Brent Dax wrote: # Dan Sugalski: # # At 1:14 PM -0700 5/15/02, Brent Dax wrote: # # Dan Sugalski: # # # At 12:51 AM -0700 5/15/02, Brent Dax wrote: # # # -Parrot becomes Parrot_Interp # # # -Parrot_String is gone and the string_funcs.h # functions are #

RE: [COMMIT] Embedding overhaul

2002-05-18 Thread Brent Dax
Melvin Smith: # At 07:25 PM 5/18/2002 -0400, Dan Sugalski wrote: # # Flag handling, or at least feature enabling, should # probably be done # # by core code. We should provide a set_feature() function # # Right now we have something like this: # # Parrot_setflag(interpreter,

Re: FIRST, BETWEEN, etc.. (was Re: Loop controls)

2002-05-18 Thread Allison Randal
On Fri, May 17, 2002 at 05:40:30PM -0600, Luke Palmer wrote: Back to from where this arose, however, I think LAST (and BETWEEN, if it will exist) should probably be PRE blocks. This is the only way it could be consistently possible to implement. It wouldn't make any sense to have it a PRE

New assembler difficulties.

2002-05-18 Thread Clinton A. Pierce
So here I am, hacking BASIC to use keyed PMC's for variables to make it blazingly fast when I find out that to do this I need to use the new assembler. So I pop into lib\parrot and proceed with the build and I get this mess: C:\projects\parrot\parrot\lib\Parrotperl makefile.pl Writing

Re: Methods, and such

2002-05-18 Thread Larry Wall
Aaron Sherman writes: : On Wed, 2002-05-15 at 21:38, root wrote: : : I've always liked how VB allowed you to define instance methods. : Basically a more elegant way of doing callbacks, plus allows some : structure within your callbacks. Will Perl6 allow this (Perl5 sortof did, : but

Re: New assembler difficulties.

2002-05-18 Thread Jeff
Clinton A Pierce wrote: So here I am, hacking BASIC to use keyed PMC's for variables to make it blazingly fast when I find out that to do this I need to use the new assembler. So I pop into lib\parrot and proceed with the build and I get this mess: --snip-- So the new assembler's

Re: New assembler difficulties.

2002-05-18 Thread Jeff
Jeff wrote: Clinton A Pierce wrote: So here I am, hacking BASIC to use keyed PMC's for variables to make it blazingly fast when I find out that to do this I need to use the new assembler. So I pop into lib\parrot and proceed with the build and I get this mess: --snip-- So the

Re: New assembler difficulties.

2002-05-18 Thread Clinton A. Pierce
At 09:27 PM 5/18/2002 -0400, Jeff wrote: So the new assembler's unhappy. Suggestions? Well, it's unhappy when you do lots of things. The code I was given was not as complete/functional as I had been led to believe, inasmuch as it doesn't live past test series 2 without some major tweaks that

Re: New assembler difficulties.

2002-05-18 Thread Jeff
Clinton A Pierce wrote: At 09:27 PM 5/18/2002 -0400, Jeff wrote: So the new assembler's unhappy. Suggestions? Well, it's unhappy when you do lots of things. The code I was given was not as complete/functional as I had been led to believe, inasmuch as it doesn't live past test series 2

[netlabs #596] .XS build process needs to be more portable

2002-05-18 Thread via RT
# New Ticket Created by Jeffrey Goff # Please include the string: [netlabs #596] # in the subject line of all future correspondence about this issue. # URL: http://bugs6.perl.org/rt2/Ticket/Display.html?id=596 I've just patched lib/Parrot/Makefile.PL to check for a Win32 platform, and if

GC vtable method limitations?

2002-05-18 Thread Mike Lambert
So we're going to support some vtable operations for GC support. We currently have mark, and we're going to have collect. Is there a plan to make a freed method for when pmc header gets put back onto the free list? (This would require we call this method on all pmc's before moving anything to

GC Minor Doc Patch, Pool fix

2002-05-18 Thread Mike Lambert
Below adds docs at the top of each function about whether that function calls pool compaction or dod. The dod functions and compaction functions don't list the other one themselves, otherwise they'd be re-entrant. ;) Also fixes a bug I found with GC_DEBUG. Namely, that during compaction, when it