Re: cvs commit: parrot/src runops_cores.c

2003-10-25 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: jsr where is an immediate address rather than a register generates bad code. Cjsr takes an absolute bytecode address, which IMHO never can be an immediate integer. The op should be defined as jsr(invar INT). leo

Re: cvs commit: parrot/src runops_cores.c

2003-10-25 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: Runtime code generation works mostly, but for some reason the sequence Another note: jsr/ret are not prepared to do inter-segment branches. A compiled code segments is currently an entirely new packfile (it should be only a new packfile directory finally)

reducing size of the Devel::Cover html report

2003-10-25 Thread Gabor Szabo
The HTML files generated by Devel::Cover are huge. I ran coverage on HTML::Template and while the source code is ~100K the HTML report is 2.5Mb So I think some work should be done to reduce this size. I made a simple change - removing leading spaces from the templates - this reduced the file

Re: [perl #24289] [PATCH] Make parrot/languages/Makefile happy

2003-10-25 Thread Leopold Toetsch
Bernhard Schmalhofer [EMAIL PROTECTED] wrote: 'make all' failed at the target 'cola'. The reason was a 'cd ../imcc; make'. Removed some more imcc trails. 'make test' failed at 'perl6.test'. For some reason 'perl/t/harness' returns an error 29, at least on my Linux notebook. I don't have

[RfC] key strings/numbers/PMCs

2003-10-25 Thread Leopold Toetsch
Currently there is no simple way, to packout a Key that has number or string key members. PackFile_Constant_pack() for PFC_KEY does a linear lookup (find_in_const) to get at the index of the string or number in the constant table. This is really ugly. So I'd change that, so that key

Q: hash entries

2003-10-25 Thread Leopold Toetsch
I have generalized the hash a bit. There is now a variant that can C strings as keys too. But what I always wanted to know is: do we really need the HASH_ENTRY as storage for hash items, or just PMCs as Array/PerlArray does? I think that the entry adds some overhead (type + union = 3 or 4

Re: [RfC] key strings/numbers/PMCs

2003-10-25 Thread Dan Sugalski
At 2:19 PM +0200 10/25/03, Leopold Toetsch wrote: Currently there is no simple way, to packout a Key that has number or string key members. PackFile_Constant_pack() for PFC_KEY does a linear lookup (find_in_const) to get at the index of the string or number in the constant table. This is really

Re: cvs commit: parrot/src runops_cores.c

2003-10-25 Thread Dan Sugalski
At 10:10 AM +0200 10/25/03, Leopold Toetsch wrote: Dan Sugalski [EMAIL PROTECTED] wrote: jsr where is an immediate address rather than a register generates bad code. Cjsr takes an absolute bytecode address, which IMHO never can be an immediate integer. The op should be defined as

PMC initialization

2003-10-25 Thread Dan Sugalski
Okay, it's time to address this. It's damned useful to be able to pass in initialization data to a PMC--much more sensible to do it all in one go, rather than separate new/init methods. And, unfortunately that's somewhat problematic at the moment, as there are all sorts of reasonable ways to

Re: Ordered destruction and object graph traversal

2003-10-25 Thread Gordon Henriksen
On Monday, October 20, 2003, at 11:40 , Jeff Clites wrote: My solution was to define a new vtable method--I've called it visit(), though the name's not the important part--to which you pass a callback (plus an optional context argument). It's job is to invoke that callback on each of it's

Re: cvs commit: parrot/src runops_cores.c

2003-10-25 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: At 10:10 AM +0200 10/25/03, Leopold Toetsch wrote: Oh, it certainly can be an absolute address, if you know what the address is when you're generating the code. Did you ever try, what the assembler considers needing fixup: a _non_local label. I don't

Re: PMC initialization

2003-10-25 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: The seconds assumes its parameters are in the registers, with standard calling conventions, and goes from there. Seems to heavy to me. We already have init_pmc (taking one additional initializer) and init_pmc_props, taking a NULL or real initializer PMC

Re: [RfC] key strings/numbers/PMCs

2003-10-25 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: At 2:19 PM +0200 10/25/03, Leopold Toetsch wrote: Currently there is no simple way, to packout a Key that has number or string key members. PackFile_Constant_pack() for PFC_KEY does a linear lookup (find_in_const) to get at the index of the string or number

Re: Alternately named arguments

2003-10-25 Thread Luke Palmer
David Storrs writes: On Fri, Oct 24, 2003 at 12:57:18AM -0600, Luke Palmer wrote: Presuming you can do: (who = $name, why = $reason) := (why = $because, who = me); (from A6) Does that imply that you can do: sub routine (name = $nombre, date = $fecha) {...}

Re: Trying to spear a phalanx shield for pod

2003-10-25 Thread Andrew Savige
Michael G Schwern wrote: Since skip_all will exit immediately you can fold that big everything inside the else block away. eval 'use Test::Pod'; my $have_testpod = !$@ and $Test::Pod::VERSION = 0.95; plan skip_all = Test::Pod v0.95 required for testing POD unless $have_testpod; my