Re: More object stuff

2004-01-11 Thread Leopold Toetsch
Harry Jackson <[EMAIL PROTECTED]> wrote: > I am at the point now where I need to know what type of format you want > the data to come out in. The first question is: how are these data returned in C. If that's a defined structure, I'd overlay this structure with an UnManagedStruct PMC and then acc

Re: More object stuff

2004-01-11 Thread Harry Jackson
Harry Jackson wrote: Dan Sugalski wrote: > getting back a full row as an array, getting back a full row as a hash, and stuff like that. Nothing fancy, and nothing that high-level, but enough to work the basics without quite as manual work as the current libpg requires. OK. I am at the poi

Questions about abstract pmcs

2004-01-11 Thread Stéphane Payrard
Abstract pmcs should appear in core_pmcs.h and pmctypes.pasm because one needs them as base pmcs so as to declare pseudo-registers. This is a prerequisite to add pmc type checking to imcc. Working on a patch to fix that, I got some questions to be answered. Unlike other pmcs, abstract pmcs have na

Re: .sym var removed/replaced?

2004-01-11 Thread Jonathan Worthington
> At 11:01 PM + 1/11/04, Jonathan Worthington wrote: > >Hi, > > > >In t/examples/pni/win32api.t I have this:- > > > > # Load user32.dll library and the MessageBoxA API. > > .sym var libuser32 > > .sym var MessageBoxA > > loadlib libuser32, "user32" > > dlfunc MessageBoxA, libuser32, "Messa

Re: .sym var removed/replaced?

2004-01-11 Thread Dan Sugalski
At 11:01 PM + 1/11/04, Jonathan Worthington wrote: Hi, In t/examples/pni/win32api.t I have this:- # Load user32.dll library and the MessageBoxA API. .sym var libuser32 .sym var MessageBoxA loadlib libuser32, "user32" dlfunc MessageBoxA, libuser32, "MessageBoxA", "llttl" Which used to wor

.sym var removed/replaced?

2004-01-11 Thread Jonathan Worthington
Hi, In t/examples/pni/win32api.t I have this:- # Load user32.dll library and the MessageBoxA API. .sym var libuser32 .sym var MessageBoxA loadlib libuser32, "user32" dlfunc MessageBoxA, libuser32, "MessageBoxA", "llttl" Which used to work fine, however now I get:- error:imcc:Unknown PMC ty

lookahead for parrot/perl[5|6]?

2004-01-11 Thread Ewan Birney
First off apologies if there is some posting/site which details this well - I started at www.parrotcode.org and spent a while fruitlessly wondering why noone had posted at the mailing list archive nicely html'ified http://archive.develooper.com/[EMAIL PROTECTED]/ for a while before finding the fa

Re: [perl #24866] [PATCH] Unified harness for IMCC tests

2004-01-11 Thread Jeff Clites
On Jan 11, 2004, at 3:10 AM, Leopold Toetsch wrote: Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: 'make fulltest' gives 6 reports. 5 reports for different parrot options plus 1 report for t/src/*.t. Dou you see a simple way, to run all tests in one harness for "fulltest". That would need some

Re: yield op?

2004-01-11 Thread Michal Wallace
On Sun, 11 Jan 2004, Leopold Toetsch wrote: > Michal Wallace <[EMAIL PROTECTED]> wrote: > > When you invoke a Coroutine, it calls swap_context() > > from src/sub.c ... There's an else clause in there > > that either swaps or restores theinterpreter stack, > > but as far as I can tell, swap_conte

Re: patch to support nums, strings and pmcs as attributes

2004-01-11 Thread Stéphane Payrard
On Sun, Jan 11, 2004 at 12:33:16PM +0100, Leopold Toetsch wrote: > Stéphane Payrard <[EMAIL PROTECTED]> wrote: > > Thanks, applied - plus ... > > > INTVAL get_integer_keyed (PMC* attr) { > > - return SELF.get_integer_keyed_str(key_string(interpreter, attr)); > > +int flag = PObj_ge

Re: More object stuff

2004-01-11 Thread Harry Jackson
Dan Sugalski wrote: > getting back a full row as an array, getting back a full row as a hash, and stuff like that. Nothing fancy, and nothing that high-level, but enough to work the basics without quite as manual work as the current libpg requires. OK. I am at the point now where I need to k

[RESEND] Q: Array vs SArray

2004-01-11 Thread Leopold Toetsch
[ warnocked ] Leopold Toetsch <[EMAIL PROTECTED]> wrote: > The set_integer_native() vtable method of arrays is implemented > inconsistently. The old historical way in Array was to set an initial > size. My implementation in SArray OTOH only reserves the needed store, > but doesn't change the eleme

[RESEND] Re: pdd03 and method calls

2004-01-11 Thread Leopold Toetsch
[ I think this still needs some clarification ] Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Dan Sugalski <[EMAIL PROTECTED]> wrote: >> At 10:42 PM +0100 12/17/03, Leopold Toetsch wrote: >>>While playing with calling threaded subs, I came along a thing which >>>I think might be suboptimal: >>>pdd0

Re: yield op?

2004-01-11 Thread Leopold Toetsch
Michal Wallace <[EMAIL PROTECTED]> wrote: > Hey all, > When you invoke a Coroutine, it calls swap_context() > from src/sub.c ... There's an else clause in there > that either swaps or restores theinterpreter stack, > but as far as I can tell, swap_context() is ONLY > called when entering a corou

Re: additional test file for parrotobject.pmc

2004-01-11 Thread Nicholas Clark
On Sat, Jan 10, 2004 at 10:30:47PM +0100, Stéphane Payrard wrote: > retry You're trying to attache a file with a name ending in .t ? They get eaten. I forget why. And I forget why it's not been possible to change the configuration on the list software to tell it that it's on a diet. Nicholas Cla

Re: Some imc questions

2004-01-11 Thread Harry Jackson
Leopold Toetsch wrote: Harry Jackson <[EMAIL PROTECTED]> wrote: 251 .local pmc CONN 252 .local int int_answer 253 print "About to Connect\n" 254 P0 = C[0] 255 S5 = s 256 invoke 257 CONN = P5 Calling the sub is something like this (untested)

Re: [perl #24868] [PATCH] floor/ceil ops

2004-01-11 Thread Leopold Toetsch
Lars Balker Rasmussen <[EMAIL PROTECTED]> wrote: > I have added floor and ceil ops (like I did for floor in september, > but noone noticed). Thanks, applied. leo

Re: configure on windows

2004-01-11 Thread Nicholas Clark
On Tue, Nov 18, 2003 at 09:57:02AM -0500, Dan Sugalski wrote: > FWIW, with these changes rather than using the literal "perl" use $^X > instead. That picks up the perl being used rather than whatever comes > first in the search path, which may not be the perl being used for > configure. There was

Re: [perl #24866] [PATCH] Unified harness for IMCC tests

2004-01-11 Thread Nicholas Clark
On Sun, Jan 11, 2004 at 12:10:16PM +0100, Leopold Toetsch wrote: > Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > > Hi, > > > this patch is an attempt at resolving an item from 'parrot/TODO': > >Unify t/* and imcc/t/* tests, so that one harness has just one > > result summary. > > Fine

Re: [perl #24866] [PATCH] Unified harness for IMCC tests

2004-01-11 Thread Leopold Toetsch
Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > Hi, > this patch is an attempt at resolving an item from 'parrot/TODO': >Unify t/* and imcc/t/* tests, so that one harness has just one > result summary. Fine, thanks - applied. > 'make fulltest' gives 6 reports. 5 reports for different p

Re: [perl #24867] [PATCH] more t/src cleanup

2004-01-11 Thread Leopold Toetsch
Lars Balker Rasmussen <[EMAIL PROTECTED]> wrote: > I have rewritten some more of the tests in t/src to use the "proper" > approach to doing resource-juggling. The tests that I haven't touched > don't seem to be reliant on this. Thanks, applied leo

Re: patch to support nums, strings and pmcs as attributes

2004-01-11 Thread Leopold Toetsch
Stéphane Payrard <[EMAIL PROTECTED]> wrote: Thanks, applied - plus ... > INTVAL get_integer_keyed (PMC* attr) { > - return SELF.get_integer_keyed_str(key_string(interpreter, attr)); > +int flag = PObj_get_FLAGS(attr) & KEY_type_FLAGS; ... a comment, why we might need that. leo

Re: [PATCH] The Return of the Priority DOD

2004-01-11 Thread Nicholas Clark
On Sat, Jan 10, 2004 at 04:25:58PM -0800, Jeff Clites wrote: > allocate chunks of memory with arbitrary power-of-2 alignment. So all > the platforms being tested on the tinders probably have this. (Of > course, you can manually set ARENA_DOD_FLAGS to false in the source, > for testing.) My tin

Re: Some imc questions

2004-01-11 Thread Leopold Toetsch
Harry Jackson <[EMAIL PROTECTED]> wrote: > Commanlib.imc is where I will build an array to contain all the subs to > call. >1 .local PerlArray Command >2 Command = new PerlArray >3 >4 Command[0] = PQCONNECTSTART I'd toss that part that generateds the command array

Re: [PATCH] The Return of the Priority DOD

2004-01-11 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > How come most tinderboxes kept going without failing? What's making the > choice on the value of ARENA_DOD_FLAGS ? ARENA_DOD_FLAGS is turned on by default. If there is no memalign or such library function (which it depends on), this define is disabled.

Re: [PATCH] bug in clear_live_bits

2004-01-11 Thread Leopold Toetsch
Luke Palmer <[EMAIL PROTECTED]> wrote: > sweep 0 was making parrot segfault for me. The patch explains why. Oops, thanks - applied, leo

Re: Contextual calls

2004-01-11 Thread Leopold Toetsch
Luke Palmer <[EMAIL PROTECTED]> wrote: > I was uneasy when the C and C vtable entries were first > proposed. Sure, they get the job done for Perl 5, but Perl 6 is > expanding its notion of context beyond those compiled in. You're > supposed to be able to add, say, "nontransitive ring" context if

Contextual calls

2004-01-11 Thread Luke Palmer
I was uneasy when the C and C vtable entries were first proposed. Sure, they get the job done for Perl 5, but Perl 6 is expanding its notion of context beyond those compiled in. You're supposed to be able to add, say, "nontransitive ring" context if you want. There needs to be a way to pass cont