Re: DYNSUPER bust for dynamic PMCs

2005-04-29 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: >=item C Another note: we might as well create a C vtable call as well. We need some such (and an opcode) anyway for HLL objects. How could/should that beast look like? $ python >>> help(super) class super(object) | super(type) -> unbound super object

Re: parrot and refcounting semantics

2005-04-29 Thread Bob Rogers
From: Dan Sugalski <[EMAIL PROTECTED]> Date: Fri, 29 Apr 2005 15:23:47 -0400 At 10:55 PM -0400 4/28/05, Bob Rogers wrote: >From: Robin Redeker <[EMAIL PROTECTED]> >Date: Thu, 28 Apr 2005 00:12:50 +0200 >Refcounting does this with a little overhead, but in a fast and

Re: parrot and refcounting semantics

2005-04-29 Thread Dan Sugalski
At 10:55 PM -0400 4/28/05, Bob Rogers wrote: From: Robin Redeker <[EMAIL PROTECTED]> Date: Thu, 28 Apr 2005 00:12:50 +0200 Refcounting does this with a little overhead, but in a fast and deterministic O(1) way. This is the first half of an apples-to-oranges comparison, and so is mislead

Re: parrot and refcounting semantics

2005-04-29 Thread Dan Sugalski
At 12:37 AM -0400 4/29/05, Uri Guttman wrote: > "RR" == Robin Redeker <[EMAIL PROTECTED]> writes: RR> I don't think circular references are used that much. This is RR> maybe something a programmer still has to think a little bit RR> about. And if it means, that timely destruction maybe

Re: parrot and refcounting semantics

2005-04-29 Thread Dan Sugalski
At 3:05 PM +0200 4/29/05, Leopold Toetsch wrote: Gerald Butler <[EMAIL PROTECTED]> wrote: Isn't there something like: { my $s does LEAVE { destroy $s } = new CoolClass; # ... do stuff that may throw ... } Or something like that? Not currently. The

Re: unary and infix ops summary and todo

2005-04-29 Thread Leopold Toetsch
Jerry Gay <[EMAIL PROTECTED]> wrote: > On 4/29/05, Leopold Toetsch <[EMAIL PROTECTED]> wrote: >> 3) Proposal: PIR syntax enhancement >> >> .pragma n_operators >> ... >> Px = Py + 1 >> ... >> [EOF] >> >> Within this pragma (valid inside and until end of file) the shortcuts >> '+', '-', ...

Re: DYNSUPER bust for dynamic PMCs

2005-04-29 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > pmc2c.pl says: >=item C > As above, but uses the actual dynamic type of C. > but for a dynamic class, if I try to use it I get errors such as: > perl5null.pmc: In function `Parrot_Perl5NULL_set_pointer_keyed_int': > perl5null.pmc:24: `enum_class_Perl5

Re: unary and infix ops summary and todo

2005-04-29 Thread jerry gay
On 4/29/05, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > 3) Proposal: PIR syntax enhancement > > .pragma n_operators > ... > Px = Py + 1 > ... > [EOF] > > Within this pragma (valid inside and until end of file) the shortcuts > '+', '-', ... should translate to "n_add", "n_sub", ... > Th

DYNSUPER bust for dynamic PMCs

2005-04-29 Thread Nicholas Clark
pmc2c.pl says: =item C Calls the overridden implementation of the current method in the nearest superclass, using the static type of C. =item C As above, but uses the actual dynamic type of C. but for a dynamic class, if I try to use it I get errors such as: perl5null.pmc: In function `Parro

Re: parrot and refcounting semantics

2005-04-29 Thread Leopold Toetsch
Gerald Butler <[EMAIL PROTECTED]> wrote: > Isn't there something like: > { > my $s does LEAVE { destroy $s } = new CoolClass; > # ... do stuff that may throw ... > } > Or something like that? Not currently. There used to be a C opcode, but I've deleted it

Re: parrot and refcounting semantics

2005-04-29 Thread Larry Wall
On Fri, Apr 29, 2005 at 08:14:38AM -0400, Butler, Gerald wrote: : : Isn't there something like: : : { : my $s does LEAVE { destroy $s } = new CoolClass; : # ... do stuff that may throw ... : } : : Or something like that? Yes,it's my $s will leave { d

RE: parrot and refcounting semantics

2005-04-29 Thread Butler, Gerald
Isn't there something like: { my $s does LEAVE { destroy $s } = new CoolClass; # ... do stuff that may throw ... } Or something like that? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Martin D Kealey Sent:

Re: object/method tailcalls ?

2005-04-29 Thread Leopold Toetsch
Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > Is it (yet?) possible to use tailcalls from/to object methods? Well, there is a C opcode in ops/object.ops. But I don't know, if it works correctly. $ find t -name '*.t' | xargs grep tailcall t/pmc/sub.t:tailcall P0 t/pmc/sub.t:tailcall P0

Re: [svn:parrot] rev 7942 - in trunk: compilers/pge dynclasses runtime/parrot/dynext

2005-04-29 Thread Leopold Toetsch
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Author: boemmels > Date: Thu Apr 28 14:29:39 2005 > New Revision: 7942 > Modified: >trunk/compilers/pge/ (props changed) >trunk/dynclasses/ (props changed) >trunk/runtime/parrot/dynext/ (props changed) > Log: > Ignore some generated

unary and infix ops summary and todo

2005-04-29 Thread Leopold Toetsch
1) we now have a rather complete set of opcodes that return a new result PMC, all prefixed by "n_", e.g. n_add Px, Py, 1 n_abs Px, Py These opcodes can/should be used by HLLs like Python, which have the semantics of immutable scalars and newly created result PMCs. 2) Tests for all these opc

object/method tailcalls ?

2005-04-29 Thread Patrick R. Michaud
Is it (yet?) possible to use tailcalls from/to object methods? I looked through the various pod files and couldn't find anything, and I remember seeing some discussion about tailcalls in general a couple of months ago but didn't stumble across the answers in the archives. I'd appreciate any gentle

Re: [perl #35144] Core dump with computed-goto core

2005-04-29 Thread Leopold Toetsch
Nick Glencross <[EMAIL PROTECTED]> wrote: > Guys, > This isn't a highly critical segfault I imagine, although it might be of > interest to someone. > I discovered 'make fulltest' this evening. One of the debuginfo tests > (#7) fails as follows with r7942 on i386 Linux: > [EMAIL PROTECTED] parro