Still More Startup Optimizations

2007-06-03 Thread chromatic
If you're using a modern GNU ld, remove the shared library and add a few more flags to LINK_DYNAMIC in Makefile. Here's mine: LINK_DYNAMIC = -Wl,-E,-O1,-zdynsort,-hashvals,--hash-style=gnu,-zcombreloc These options seem to speed up the test suite for me by 10 - 15%. I'm curious to s

Re: 'x' vs. 'xx'

2007-06-03 Thread Chas Owens
On 6/3/07, Jonathan Lang <[EMAIL PROTECTED]> wrote: Chas Owens wrote: > Jonathan Lang wrote: > > Is there any reason why we can't simply define '$a x $n' as being > > shorthand for 'cat($a xx $n)'? In what way does the former differ > > from the latter, other than the use of a Whatever in place

Re: 'x' vs. 'xx'

2007-06-03 Thread Jonathan Lang
Chas Owens wrote: Jonathan Lang wrote: > Chas Owens wrote: > > Jonathan Lang wrote: > > > Is there any reason why we can't simply define '$a x $n' as being > > > shorthand for 'cat($a xx $n)'? In what way does the former differ > > > from the latter, other than the use of a Whatever in place of

Re: 'x' vs. 'xx'

2007-06-03 Thread Chas Owens
On 6/3/07, Jonathan Lang <[EMAIL PROTECTED]> wrote: Chas Owens wrote: > Jonathan Lang wrote: > > Chas Owens wrote: > > > Jonathan Lang wrote: > > > > Is there any reason why we can't simply define '$a x $n' as being > > > > shorthand for 'cat($a xx $n)'? In what way does the former differ > > >

[perl #43107] t/tools/pmc2cutils/05-gen_c: Warnings being thrown in testing of Parrot::Pmc2c::Pmc2cMain

2007-06-03 Thread James Keenan
On Jun 2, 2007, at 10:32 AM, Bob Rogers via RT wrote: This seems like a lot of trouble just to keep dead code in the codebase. Is there some reason not to yank the useless methods? -- Bob Not that *I* know of. But my knowledge base only ext

Re: Still More Startup Optimizations

2007-06-03 Thread James E Keenan
chromatic wrote: If you're using a modern GNU ld, remove the shared library and add a few more flags to LINK_DYNAMIC in Makefile. Here's mine: LINK_DYNAMIC = -Wl,-E,-O1,-zdynsort,-hashvals,--hash-style=gnu,-zcombreloc Do you have to edit the Makefile for this, or can you set it wi

Re: Relocation of the pod_todo.t test

2007-06-03 Thread Paul Cochrane
On 02/06/07, chromatic <[EMAIL PROTECTED]> wrote: On Thursday 31 May 2007 13:48:04 Paul Cochrane wrote: > I recently added a test for TODO items in the pod source, but added it > to the t/doc/ test suite. It is more of a coding standards test > anyway, and I was wondering if it would be ok if I

Analysing a GC problem

2007-06-03 Thread Jonathan Worthington
Hi, At the moment, under Win32, virtually all of the Perl 6 test suite fails unless run with -G (disabling garbage collection). The problem for at least one of them is that the free list appears to be corrupted. First, a few notes on the free list. Parrot allocates large chunks of memory, ca

Re: 'x' vs. 'xx'

2007-06-03 Thread Jonathan Lang
Chas Owens wrote: I am almost certain that the following code is in list context. pugs> my @a = '-' x 5, 'foo', '-' x 5; pugs> @a ("-", "foo", "-") pugs> my @b = cat('-' xx 5), 'foo', cat('-' xx 5) ("-", "-", "-", "-", "-", "foo", "-", "-", "-", "-", "-") However, it does seem that Pug'

Re: 'x' vs. 'xx'

2007-06-03 Thread Mark J. Reed
Is "item context" what we're calling scalar these days, or something else? On 6/3/07, Jonathan Lang <[EMAIL PROTECTED]> wrote: Chas Owens wrote: > I am almost certain that the following code is in list context. > > pugs> my @a = '-' x 5, 'foo', '-' x 5; > pugs> @a > ("-", "foo", "-") > p

Re: Still More Startup Optimizations

2007-06-03 Thread chromatic
On Sunday 03 June 2007 05:39:01 James E Keenan wrote: > chromatic wrote: > > If you're using a modern GNU ld, remove the shared library and add a few > > more flags to LINK_DYNAMIC in Makefile. Here's mine: > > > > LINK_DYNAMIC = > > -Wl,-E,-O1,-zdynsort,-hashvals,--hash-style=gnu,-zcombrel

Re: 'x' vs. 'xx'

2007-06-03 Thread Jonathan Lang
Mark J. Reed wrote: Is "item context" what we're calling scalar these days, or something else? According to S03, it does indeed appear that "item context" is the current terminology for what perl 5 called "scalar context": The item contextualizer item foo() The new name for Perl 5's s

Re: 'x' vs. 'xx'

2007-06-03 Thread Chas Owens
On 6/3/07, Jonathan Lang <[EMAIL PROTECTED]> wrote: snip From what you're saying, I get the impression that you think that "'-' x 5" ought to produce a single string of five dashes regardless of whether the context is item or list. Correct? (Note: I'm not asking about what the spec says, since

[svn:parrot-pdd] r18781 - in trunk/docs: . pdds

2007-06-03 Thread paultcochrane
Author: paultcochrane Date: Sun Jun 3 07:38:04 2007 New Revision: 18781 Modified: trunk/docs/pdds/pdd00_pdd.pod trunk/docs/pdds/pdd07_codingstd.pod Changes in other areas also in this revision: Modified: trunk/docs/debug.pod trunk/docs/gettingstarted.pod Log: [docs] References to de

[perl #43105] [PATCH] function mmd.c::mmd_expand_y: newly allocated memory unitialized

2007-06-03 Thread Bernhard Schmalhofer via RT
> I grepped for other files that can make use of mem_sys_*_zeroed > variants. I attached a patch that affects objects.c, vtables.c, > gc/register.c and stm/waitlist.c. I have looked at the 'more_memory.patch' and I'm wondering about the portability. In that patch loops where pointers are explicit

Not Understanding TGE

2007-06-03 Thread Chris Yocum
Hi Everyone, I am not sure if this is the correct list to post this problem to but I will try here first. I am having a problem with understanding TGE and I was hoping someone might be able to give me some help. I am writing a parrot version of 1964 BASIC using the compiler tools and I have t

Re: 'x' vs. 'xx'

2007-06-03 Thread Jonathan Lang
Chas Owens wrote: The current Perl 5 behavior is [EMAIL PROTECTED]:~$ perl -le 'my @a = ("-" x 5, "foo", "-" x 5); print "@a"' - foo - [EMAIL PROTECTED]:~$ perl -le 'my @a = (("-") x 5, "foo", ("-") x 5); print "@a"' - - - - - foo - - - - - I am against anything other than that for x o

Re: [perl #43105] [PATCH] function mmd.c::mmd_expand_y: newly allocated memory unitialized

2007-06-03 Thread Nicholas Clark
On Sun, Jun 03, 2007 at 08:00:18AM -0700, Bernhard Schmalhofer via RT wrote: > I have looked at the 'more_memory.patch' and I'm wondering about the > portability. > In that patch loops where pointers are explicitly set to NULL > are replaced with a > memset( start, 0, len); > > What happens w

Re: [svn:perl6-synopsis] r14414 - doc/trunk/design/syn

2007-06-03 Thread Aaron Crane
[EMAIL PROTECTED] writes: > @@ -562,10 +625,10 @@ > @list xx $count > > Evaluates the left argument in list context, replicates the resulting > -Capture value the number of time specified by the right argument and > +C value the number of time specified by the right argument and Presumably

[svn:perl6-synopsis] r14415 - doc/trunk/design/syn

2007-06-03 Thread larry
Author: larry Date: Sun Jun 3 17:23:15 2007 New Revision: 14415 Modified: doc/trunk/design/syn/S03.pod doc/trunk/design/syn/S04.pod doc/trunk/design/syn/S06.pod Log: typo from Aaron Crane++ s/cat/list/ for flattening captures in order cat() now only produces pseudo-strings even in list

Cannot find tree rewrite rule

2007-06-03 Thread andrew cooke
Can anyone point out what I'm doing wrong, please? I'm seeing (first part if output from parsing, which is OK, second part is failure to apply rewrite rule): "VAR1" => PMC 'PGE::Match' => "myfun" @ 0 { => PMC 'PGE::Match' => "m" @ 0 } transforming Cannot find the attribute 'functio

Re: FOTW src/debug.c

2007-06-03 Thread chromatic
On Wednesday 23 May 2007 14:49:02 Leopold Toetsch wrote: > Am Mittwoch, 23. Mai 2007 15:26 schrieb Andy Dougherty: > > /* > >  * These constants correspond to the debugger commands and are > >  * used in src/debug.c. To map command strings to their > >  * numeric values, use the algorithm from par

Re: [perl #42624] Parrot compiles now but still fails tests.

2007-06-03 Thread chromatic
On Thursday 19 April 2007 19:45:29 Ryan Hinton wrote: > Here is my machine info: > FreeBSD 5.3-STABLE i386 > > Here is the complete report. Thanks for the report. How does a current checkout fare? Joshua Gatcomb, I believe, is also seeing dynamic loading failures on FreeBSD. Perhaps there are

Re: [perl #42624] Parrot compiles now but still fails tests.

2007-06-03 Thread Joshua Isom
You have to add LD_LIBRARY_PATH=.:blib/lib to your environment as in src/dynoplibs/README(not the best place, but it's where I first found it) to get it to work at the moment. I don't recall there always having been an issue but it exists at the moment. It should be noted probably that darwin

Re: [perl #42790] [BUG] Tailcall with slurpy argument passing causes a memory leak

2007-06-03 Thread chromatic
On Saturday 28 April 2007 16:43:06 Mehmet Yavuz Selim Soyturk wrote: > Next program makes a slurpy tailcall, and it causes a memory leak for me. Confirmed. Interestingly, the problem looks like a Key PMC somewhere gets garbage collected inappropriately. I tried various tricks to mark the call_

Re: [perl #41310] [CAGE] autogenerated PMC stubs kill compile

2007-06-03 Thread chromatic
On Sunday 21 January 2007 23:56:09 Allison Randal wrote: > When generating a stub PMC with F, the generated > stub terminates the compile process the first time miniparrot is run. > This is because the freshly generated stub overrides the C > method to return a null PMC. I can't reproduce this no

Re: [svn:perl6-synopsis] r14415 - doc/trunk/design/syn

2007-06-03 Thread Jonathan Lang
[EMAIL PROTECTED] wrote: Author: larry Date: Sun Jun 3 17:23:15 2007 New Revision: 14415 Modified: doc/trunk/design/syn/S03.pod doc/trunk/design/syn/S04.pod doc/trunk/design/syn/S06.pod Log: typo from Aaron Crane++ s/cat/list/ for flattening captures in order cat() now only produces p

Re: FOTW src/debug.c

2007-06-03 Thread Leopold Toetsch
Am Montag, 4. Juni 2007 03:40 schrieb chromatic: > > > #define c_b             25245 > > > > Another WTF from code history. > > > > leo - please remove this - kthx. > > We have to replace it with something; any ideas? Well, just the "normal" way of parsing commands. Chained ifs: if (!memcmp(cmd