[perl #75594] patch to remove need_ext fossils in pmcs

2010-06-09 Thread jn...@jnthn.net via RT
On Mon Jun 07 14:26:44 2010, cognominal wrote: > bash-3.2$ git diff > diff --git a/src/pmc/mutablevar.pmc b/src/pmc/mutablevar.pmc > index 1e5d075..0d083ac 100644 > --- a/src/pmc/mutablevar.pmc > +++ b/src/pmc/mutablevar.pmc > @@ -19,7 +19,7 @@ needed as scalar containers forward to their > content

[perl #75594] patch to remove need_ext fossils in pmcs

2010-06-08 Thread via RT
# New Ticket Created by Stephane Payrard # Please include the string: [perl #75594] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75594 > bash-3.2$ git diff diff --git a/src/pmc/mutablevar.pmc b/src/pmc/mutablevar.pmc inde

Re: [perl #55308] [TODO] [MMD] add_sub sanely adds MultiSub PMCs to a namespace

2009-02-02 Thread Patrick R. Michaud
On Mon, Feb 02, 2009 at 09:27:10AM -0800, Andrew Whitworth via RT wrote: > On Wed Jun 04 16:04:07 2008, pmichaud wrote: > > I'm just about to commit a change to namespace.pmc that allows > > the 'add_sub' method to store MultiSub PMCs as well as Sub PMCs. &g

Re: [perl #57968] Fix issues with Int type constraint and Integer PMCs

2008-11-25 Thread Jonathan Worthington
Patrick R. Michaud via RT wrote: Is this still an issue? If so, can we enumerate the exact things we want this ticket to address? There's nothing in this area I know of that needs addressing. I suggest closing the ticket and if we find any specific issues relating to this, we can open one w

[perl #57968] Fix issues with Int type constraint and Integer PMCs

2008-11-25 Thread Patrick R. Michaud via RT
Is this still an issue? If so, can we enumerate the exact things we want this ticket to address? Pm

[perl #57968] Fix issues with Int type constraint and Integer PMCs

2008-11-25 Thread Patrick R. Michaud via RT
Is this still an issue? If so, can we enumerate the exact things we want this ticket to address? Pm

Re: [perl #60564] [TODO] Refactor contexts to be PMCs

2008-11-17 Thread Allison Randal
Patrick R. Michaud via RT wrote: Can (should) we do one or more of the following...? 1. Mark GC as a dependency for this ticket 2. Mark this ticket as "stalled" waiting for GC issues 3. Move this ticket to the new Trac ticket queue This would help remove this from our "active ticket" queue,

Re: [perl #60564] [TODO] Refactor contexts to be PMCs

2008-11-16 Thread Allison Randal
Andrew Whitworth via RT wrote: Since I'm monkeying around in the relevant code anyway, this might be a good task for the next calling_conventions branch. Or, if you prefer, we could create a second branch for this conversion and do the work there. The general consensus on this one is to wait un

Re: [perl #60564] [TODO] Refactor contexts to be PMCs

2008-11-16 Thread Vasily Chekalkin
Andrew Whitworth wrote: Since I'm monkeying around in the relevant code anyway, this might be a good task for the next calling_conventions branch. Or, if you prefer, we could create a second branch for this conversion and do the work there. Looks like it can be part of lex2 branch. -- Bacek

Re: [perl #60564] [TODO] Refactor contexts to be PMCs

2008-11-16 Thread Andrew Whitworth
the partial conversion of contexts to PMCs that I > did at YAPC::NA 2008. We found a quicker solution to the immediate > problem, but this is still a change we'd like to make. > > - The patch probably won't apply cleanly (we've removed some code since > then). &g

[perl #52478] [BUG] unwanted string -> int conversion for array-like PMCs

2008-10-13 Thread Christoph Otto via RT
surprise and makes it unnecessarily difficult to test > > whether an element exists within an array. > > > > It would be much more logical if the array-like PMCs threw an > > exception in this circumstance. > > > > .sub _main > > .local pmc a > &

[perl #54220] [BUG] Segfault when iterating with PMCs instead of strings

2008-09-29 Thread NotFound via RT
> It turns out that the namespace was a red herring. The real problem is > that when iterating over a hash, you cannot assign to a PMC register; it > must be a string register. So if the base collection is a hash, this > segfaults: > > $P0 = shift iterator > > But this works fine: > >

[perl #58636] Must Instantiate Class PMCs Before Using Them in HLL Mappings

2008-09-13 Thread Will Coleda via RT
On Sat Sep 13 06:37:12 2008, coke wrote: > Merged the two relevant tickets. -- Will "Coke" Coleda

[perl #58636] Must Instantiate Class PMCs Before Using Them in HLL Mappings

2008-09-09 Thread François PERRAD via RT
With this commit r30847, partcl & lua are broken. $ ./parrot languages/lua/lua.pbc Segmentation fault #0 0xb7c93a03 in pmc_new_noinit (interp=0x804f040, base_type=86) at src/pmc.c:300 #1 0xb7c4dd5b in Parrot_register_HLL_type (interp=0x804f040, hll_id=1, core_type=17, hll_type=86) at src/hll.c:

[perl #58636] Must Instantiate Class PMCs Before Using Them in HLL Mappings

2008-09-07 Thread via RT
# New Ticket Created by chromatic # Please include the string: [perl #58636] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58636 > Patrick's example code for RT #30843 creates an infinite loop (before the workaround check

[perl #57968] Fix issues with Int type constraint and Integer PMCs

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #57968] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57968 > - awaiting .HLL capabilities

[perl #48645] [CAGE] Make PMCs depend on Parrot::Pmc2c::* Modules

2008-06-05 Thread Will Coleda via RT
On Sat Dec 15 00:39:19 2007, [EMAIL PROTECTED] wrote: > If you modify one of the Perl modules that turns .pmc files into .c files, > then run make again, nothing happens. The .pmc rules should each have a > dependency on the appropriate .pm file. > > This task requires a minor amount of Perl kn

[perl #55308] [TODO] add_sub sanely adds MultiSub PMCs to a namespace

2008-06-04 Thread via RT
'add_sub' method to store MultiSub PMCs as well as Sub PMCs. However, the change I'm committing is a little naive in that a subsequent call to add_sub will overwrite any existing MultiSub. Instead, adding a MultiSub to a namespace symbol that already contains a MultiSub should probably merge them together. Pm

Re: [perl #52478] [BUG] unwanted string -> int conversion for array-like PMCs

2008-04-08 Thread Patrick R. Michaud
r an element exists within an array. > > It would be much more logical if the array-like PMCs threw an > exception in this circumstance. > > .sub _main > .local pmc a > .local string s > a = new 'ResizablePMCArray' > a['foo'] = '

[perl #52478] [BUG] unwanted string -> int conversion for array-like PMCs

2008-04-05 Thread Christoph Otto (Volt)
ish thing and implicitly converts s to an int. This violates the principle of least surprise and makes it unnecessarily difficult to test whether an element exists within an array. It would be much more logical if the array-like PMCs threw an exception in this circumstance. .sub _main

[perl #52316] [BUG] undeclared dependency between role and namespace PMCs

2008-03-31 Thread Will Coleda via RT
On Mon Mar 31 11:27:06 2008, [EMAIL PROTECTED] wrote: > Building with make -j occasionally (about 20% of the time) causes the > build process to fail. The problem seems to be an undeclared > dependency beteen src/pmc/role.pmc and src/pmc/pmc_namespace.h. > The error is below: > ./src/pmc/role.pmc:

[perl #52316] [BUG] undeclared dependency between role and namespace PMCs

2008-03-31 Thread Christoph Otto (Volt)
# New Ticket Created by "Christoph Otto (Volt)" # Please include the string: [perl #52316] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=52316 > Building with make -j occasionally (about 20% of the time) causes the build

Re: [perl #48587] [BUG] pmc.num contains missing PMCs

2008-03-29 Thread chromatic
On Thursday 13 December 2007 19:32:11 Will Coleda wrote: > For example, parrotclass.pmc, parrotobject.pmc. > > ... Should this file be auto-generated? That's not easy, because config/auto/pmc.pm uses it to allow people to select at configuration time which PMCs to include and exc

[perl #39043] [CAGE] Dynamic PMCs should not include 'parrot/parrot.h'

2008-03-17 Thread James Keenan via RT
On Mon May 01 06:47:17 2006, bernhard wrote: > In 'include/parrot/parrot.h' it quite sensibly says: > > /* Only parrot core files should include this file. >Extensions should include . >Programs embedding parrot should include . > */ > > However all d

Re: Constant STRINGs, PMCs, Garbage Collection, and PBC

2008-02-26 Thread Allison Randal
more cleverness. So, you're saying it is legal to invoke a setter on a constant PObj? In what sense then is that PObj a constant? That depends. Is a hash declared with: .const Hash foo .. constant as a reference or a referent or an aggregate or some combination of all three

Re: Constant STRINGs, PMCs, Garbage Collection, and PBC

2008-02-24 Thread Bob Rogers
. Is a hash declared with: .const Hash foo ... constant as a reference or a referent or an aggregate or some combination of all three? No fair; I asked you "What *is* the purpose of constant PMCs?" first. ;-} The purpose and the definition have to agree. In fact, we've been

Re: Constant STRINGs, PMCs, Garbage Collection, and PBC

2008-02-24 Thread chromatic
hat might be the right approach altogether -- I like how it separates the responsibility for purifying things out of object construction. > So I gather that the purpose of read-only PMCs in the current design is > something other than GC efficiency. I think it *is* for GC efficiency,

Re: Constant STRINGs, PMCs, Garbage Collection, and PBC

2008-02-24 Thread Bob Rogers
From: chromatic <[EMAIL PROTECTED]> Date: Sun, 24 Feb 2008 17:22:19 -0800 On Sunday 24 February 2008 16:55:48 Bob Rogers wrote: > Why do constant PMCs ever need to point to non-constant ones? In other > words, why are those pointed-to PObjs not also constant? T

Re: Constant STRINGs, PMCs, Garbage Collection, and PBC

2008-02-24 Thread chromatic
articularly the "strange" part. I suspect that Kea-CL has > been hard hit lately because it may do things differently. Is there > something I should be looking out for? The use of things freed inappropriately -- PMCs with vtable pointers of 0xdeadbeef or STRINGs where strstart and

Constant STRINGs, PMCs, Garbage Collection, and PBC

2008-02-24 Thread Bob Rogers
arbage collector doesn't sweep the constant pools to recollect them. This is not normally a problem for most constant PObjs. It's mostly fine for strings, and it's fine for PMCs that do not have a special mark() vtable entry. PMCs that *do* need a special m

Re: Constant STRINGs, PMCs, Garbage Collection, and PBC

2008-02-24 Thread chromatic
On Sunday 24 February 2008 07:33:30 Leopold Toetsch wrote: > Am Sonntag, 24. Februar 2008 10:55 schrieb chromatic: > > PMCs that *do* need a special mark() are troublesome; they may contain > > pointers to non-constant PObjs that *do* need live marking, lest they get > >

Re: Constant STRINGs, PMCs, Garbage Collection, and PBC

2008-02-24 Thread Leopold Toetsch
Am Sonntag, 24. Februar 2008 10:55 schrieb chromatic: > PMCs that *do* need a special mark() are troublesome; they may contain > pointers to non-constant PObjs that *do* need live marking, lest they get > swept away during the second half of GC. If these constant PObjs don't get >

Constant STRINGs, PMCs, Garbage Collection, and PBC

2008-02-24 Thread chromatic
), but the garbage collector doesn't sweep the constant pools to recollect them. This is not normally a problem for most constant PObjs. It's mostly fine for strings, and it's fine for PMCs that do not have a special mark() vtable entry. PMCs that *do* need a special mark()

[perl #48645] [CAGE] Make PMCs depend on Parrot::Pmc2c::* Modules

2007-12-15 Thread via RT
# New Ticket Created by chromatic # Please include the string: [perl #48645] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=48645 > If you modify one of the Perl modules that turns .pmc files into .c files, then run make a

[perl #48587] [BUG] pmc.num contains missing PMCs

2007-12-13 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #48587] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=48587 > For example, parrotclass.pmc, parrotobject.pmc. ... Should this file be auto-generated??

[perl #46819] [TODO] [Pir] Should core PMCs emit warnings?

2007-10-24 Thread via RT
XXX This is the behavior of Parrot 0.4.3 # It looks like core PMCs never emit warning. # Look in perlundef.t for a more sane test of 'warningson' in subs Looking at the following test it seems as if the core PMCs aren't supposed to emit warnings. Is this the correct behaviour?

[perl #46641] [TODO] [C] PMCs extending Hash should probably register themselves

2007-10-22 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #46641] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46641 > In src/pmc/hash.pmc there is the todo item: TODO: PMCs extending Hash should proba

Re: PDD17 - PMCs

2007-10-09 Thread Allison Randal
Leopold Toetsch wrote: This implies (for me), that whatever silly morph requests like above would be issued, a PMC always has the needs of 'one size fits all'. This will preclude any optimzations of creating smaller spezialised PMCs as well as it seems to going the "PMC_data i

PDD17 - PMCs

2007-10-07 Thread Leopold Toetsch
7;s mostly a summary of current state - some new good things (roles) are defined, which aren't yet in src/role/ - the old "bugs", which IMHO, a rigid PMC structure and morph are, are still present: ... IMPLEMENTATION Internal structure All PMCs have the form: ...

[perl #46123] [TODO] Correctly handle comparisons of PMCs with constants

2007-10-05 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #46123] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46123 > In src/debug.c:PDB_cond() there is the todo item: else if (condition->type & PDB_cond_

inheriting from low-level PMCs

2007-09-14 Thread Allison Randal
I just checked in (r21293) a substantial change to the PDD 17 section "PMCs and high-level objects", detailing the inheritance strategy from low-level PMCs to high-level classes. We've been poking around the edges of the problem since we started the new metamodel, but th

[perl #45367] [TODO] Limit the required interface for PMCs

2007-09-11 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #45367] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=45367 > In the pdd03 design document there is the todo item (with context): =item 5 C (P o

Comparison of PMCs + incosistent comparison of NaNs

2007-08-29 Thread Mehmet Yavuz Selim Soyturk
er issue I encountered with my workaround for my previous problem. Ok, Parrot does not want me to generate an NaN by doing 0.0/0.0, but that does not prevent me from storing NaNs in them (which come from PjsNumber PMCs). But when $N0 is NaN, comparing $N0 <= $N0 gives inconsistent results. For the

Re: [GC] Pin Key PMCs During Method Lookup

2007-06-14 Thread Leopold Toetsch
Am Mittwoch, 13. Juni 2007 05:02 schrieb chromatic: > PMC   * const key = VTABLE_nextkey_keyed(interp, key_new(interp), > ns, ITERATE_FROM_START); > > If a GC run happens in the rest of this function, it could collect the > newly created Key -- PMCs created and held outsid

[GC] Pin Key PMCs During Method Lookup

2007-06-12 Thread chromatic
newly created Key -- PMCs created and held outside of structures visible to GC are vulnerable to collection. Unfortunately, I can't reproduce the problem on Linux on x86. However, I do think that storing the key temporarily in a place where it will get marked appropriately may fix things.

Why You Can Only Call Sub PMCs from C

2007-05-22 Thread chromatic
If you have a Sub PMC (or subclass), you can invoke that PMC from C code using Parrot_call_sub() or a similar function. Of course, if you want to pass arguments to that PMC, something needs to translate those arguments from C's calling conventions to Parrot's calling conventions. That somethin

Re: My brain dump for the PMCs PDD

2007-04-24 Thread Allison Randal
Leopold Toetsch wrote: This is what the cstruct-Proposal is for. The cstruct is describing the internals of a PMC (which happen to consist of C structure items) Aye. For general information, these are the current draft PDDs that I'm merging into 1 (or 2) PMC PDDs. pdd02_vtables.pod pdd04_d

Re: My brain dump for the PMCs PDD

2007-04-24 Thread Leopold Toetsch
Am Montag, 23. April 2007 23:18 schrieb Jonathan Worthington: > Proposal: PMCs can have attributes just as classes in HLLs have > attributes. This is somewhat related to variable sized PMCs; note you > can leave PMC headers fixed size and just have a pmc_ext like structure > that is

Re: My brain dump for the PMCs PDD

2007-04-23 Thread Allison Randal
Jonathan Worthington wrote: Hi all, Here's my semi-coherent collection of random thoughts about PMCs. Wonderful! Anyone else who has encountered problems with the current implementation of PMCs, or wishes for features PMCs don't have yet (or features that are only partially i

My brain dump for the PMCs PDD

2007-04-23 Thread Jonathan Worthington
Hi all, Here's my semi-coherent collection of random thoughts about PMCs, typed up while sitting in a nice sunny park in London last week. A lot of details will need hashing out with these ideas. I am primarily trying to address: * Interaction between PMCs and classes built with Class

[perl #41781] [RFE] Store HLL information in invokable PMCs

2007-03-10 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #41781] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=41781 > from docs/BROKEN.pod Give invokable PMCs a canonical way to store their associated

[perl #41780] [BUG] Nested *Struct PMCs Share State

2007-03-10 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #41780] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=41780 > From docs/BROKEN.pod "chromatic has a test case almost ready to show this."

[perl #41374] test MMD with non-perl PMCs

2007-01-29 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #41374] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=41374 > To replace removal of Perl PMCs* from core: still should test this functionality.

[perl #41239] [TODO] undertested pmcs

2007-01-11 Thread via RT
# New Ticket Created by Jerry Gay # Please include the string: [perl #41239] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=41239 > many, if not all, core pmcs are undertested. here's a brief survey of obvious exam

[perl #41238] [TODO] Perl PMCs

2007-01-11 Thread via RT
# New Ticket Created by Jerry Gay # Please include the string: [perl #41238] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=41238 > from DEPRECATED.pod: =item Perl PMCs The dynamic PMCS PerlString, PerlUndef,

PMCs exact allocated size

2006-10-17 Thread Karl Forner
Hi, It could be useful to have a way to know the exact memory footprint of any PMC. For instance, suppose that each PMC must override/implement a method get_allocated_size(), it could be used to optimize programs that takes too much memory, or to debug/optimize PMC implementation. That method cou

Re: Calling Methods on Class PMCs

2006-10-09 Thread Leopold Toetsch
Am Montag, 9. Oktober 2006 05:12 schrieb chromatic: > I'm experimenting with better forms of OO in PIR. I want to add a > get_parents() method on the Class PMC. Normally, I'd do something like the > attached patch, but the attached example file I use for testing shows that > it doesn't work for m

Calling Methods on Class PMCs

2006-10-08 Thread chromatic
I'm experimenting with better forms of OO in PIR. I want to add a get_parents() method on the Class PMC. Normally, I'd do something like the attached patch, but the attached example file I use for testing shows that it doesn't work for me. I dug around a bit and couldn't find a reason for why

Re: External PMCs and GC Implications

2006-10-08 Thread Leopold Toetsch
Am Sonntag, 8. Oktober 2006 04:25 schrieb chromatic: > I'm doing more work on the embedding interface.  Given that some Parrot > functions may legitimately send and receive PMCs, what are the implications > for garbage collection? If a PMC isn't stored into some other stru

External PMCs and GC Implications

2006-10-07 Thread chromatic
Hi there, I'm doing more work on the embedding interface. Given that some Parrot functions may legitimately send and receive PMCs, what are the implications for garbage collection? I don't worry too much about the Sub and variable PMCs I get back from the find_global*() functions,

Prototyping variable-sized PMCs

2006-09-27 Thread Allison Randal
Leo and I just chatted on the phone for a bit. I'll summarize here. We went over two proposals that he put together, one on variable-sized PMCs and one on creating a shared base class for some of the common PMC types. (He's checking the proposals into the repository, so you can all

Re: Why does writing PMCs suck?

2006-08-30 Thread chromatic
On Tuesday 29 August 2006 19:51, Matt Diephouse wrote: > It's been said that writing PMCs sucks. This is your chance to tell > the world why. Because for things to get better, we have to know what > sucks. > > I'll get things started: > > 1) pmc2c.pl is very

Why does writing PMCs suck?

2006-08-29 Thread Matt Diephouse
It's been said that writing PMCs sucks. This is your chance to tell the world why. Because for things to get better, we have to know what sucks. I'll get things started: 1) pmc2c.pl is very fragile - when it gets input it doesn't like, it just ignores it (see RT#39313) 2

Re: [perl #40058] Disambiguate usage of class PMCs from class name lookup (pdd15, pdd06, pdd19)

2006-08-07 Thread Martin Kealey
On Sun, 6 Aug 2006, chromatic wrote: > If my code depends on the undefinedness of certain symbols, and those symbols > may or may not appear in some namespace somewhere due to something totally > unrelated to my code, I have a problem. Ah. I thought we were considering the namespace which the lang

Re: [perl #40058] Disambiguate usage of class PMCs from class name lookup (pdd15, pdd06, pdd19)

2006-08-06 Thread chromatic
On Sunday 06 August 2006 16:57, Martin Kealey wrote: > The naive reaction to this is that if you define ['myHLL';'foo'] then > whether ['parrot';'foo'] is defined (or later becomes defined) is of no > concern. If my code depends on the undefinedness of certain symbols, and those symbols may or m

Re: [perl #40058] Disambiguate usage of class PMCs from class name lookup (pdd15, pdd06, pdd19)

2006-08-06 Thread Martin Kealey
On Sun, 6 Aug 2006, chromatic wrote: > > Any reason to treat HLL namespaces differently from classes, at > > least in respect of being an inheritance hierachy? > Preventative measures against future additions to 'parrot' breaking > your code without your knowledge. It's the same reason many langu

Re: [perl #40058] Disambiguate usage of class PMCs from class name lookup (pdd15, pdd06, pdd19)

2006-08-06 Thread chromatic
On Sunday 06 August 2006 16:00, Martin D Kealey wrote: > Any reason to treat HLL namespaces differently from classes, at least in > respect of being an inheritance hierachy? Preventative measures against future additions to 'parrot' breaking your code without your knowledge. It's the same reaso

Re: [perl #40058] Disambiguate usage of class PMCs from class name lookup (pdd15, pdd06, pdd19)

2006-08-06 Thread Martin D Kealey
On Thu, 3 Aug 2006, Chip Salzenberg wrote: > KNOWN FUTURE DEVELOPMENTS > > It's already decided that we're moving class PMCs into the normal namespace > tree. This change will eliminate many uses of the class-lookup opcodes, but > not all: There's a two-level search

[perl #40058] Disambiguate usage of class PMCs from class name lookup (pdd15, pdd06, pdd19)

2006-08-03 Thread via RT
between class names and class PMCs; merely being a PMC or not isn't enough to distinguish the intent of specifying class vs. class name. (Keys are PMCs.) This should be resolved in a general way for all class-accepting opcodes. CURRENT STATE OF PLAY There are currently five distinct ways t

Re: Readonly PMCs and types

2006-06-16 Thread Leopold Toetsch
On Jun 16, 2006, at 17:29, Klaas-Jan Stol wrote: Wouldn't it be an idea to have a property 'is_read_only' or something like that? Then, when attempting to do a write action on a r/o PMC, an exception is thrown. It would seem to me that this is a typical case for using a property. A "Parrot

Re: Readonly PMCs and types

2006-06-16 Thread Larry Wall
On Fri, Jun 16, 2006 at 10:27:06AM -0700, chromatic wrote: : On Friday 16 June 2006 08:29, Klaas-Jan Stol wrote: : : > Wouldn't it be an idea to have a property 'is_read_only' or something : > like that? Then, when attempting to do a write action on a r/o PMC, an : > exception is thrown. It would

Re: Readonly PMCs and types

2006-06-16 Thread chromatic
On Friday 16 June 2006 08:29, Klaas-Jan Stol wrote: > Wouldn't it be an idea to have a property 'is_read_only' or something > like that? Then, when attempting to do a write action on a r/o PMC, an > exception is thrown. It would seem to me that this is a typical case for > using a property. > > Th

Re: Readonly PMCs and types

2006-06-16 Thread Klaas-Jan Stol
Leopold Toetsch wrote: Recently on IRC: @woggle> leo: So, for read-only PMC variants, I'm presuming that it's okay to have the read-only variants have their own type number and type name (like was done for ConstSArray)... My 2 c: A distinct type number would cause e.g. dif

Readonly PMCs and types

2006-06-16 Thread Leopold Toetsch
Recently on IRC: @woggle> leo: So, for read-only PMC variants, I'm presuming that it's okay to have the read-only variants have their own type number and type name (like was done for ConstSArray)... My 2 c: A distinct type number would cause e.g. different MMD behavior and I

Re: HLL's, PMCs...

2006-05-14 Thread Patrick R. Michaud
On Sun, May 14, 2006 at 04:17:31PM -0400, Will Coleda wrote: > Is it possible to load a languages PMCs and create the .PMCtype > constants without using the .HLL pragma? Try :immediate. .sub _immediate :immediate $P1 = loadlib 'tcl_group' .end .sub main :

HLL's, PMCs...

2006-05-14 Thread Will Coleda
Is it possible to load a languages PMCs and create the .PMCtype constants without using the .HLL pragma? .HLL mucks with namespaces, which I don't want to (am not prepared to) deal with at the moment in APL. I do, however, want to dynamically load a library containing a PMC for APL t

[perl #39043] [TODO] Dynamic PMCs should not include 'parrot/parrot.h'

2006-05-01 Thread via RT
y parrot core files should include this file. Extensions should include . Programs embedding parrot should include . */ However all dynamic PMCs in src/dynpmc and most, if not all, language PMCs are also including 'parrot/parrot.h'. So the dependencies on symbols not defined in 'extend.h' should go away.

[perl #38202] [TODO] divide by zero exceptions for PMCs

2006-04-23 Thread Jonathan Worthington via RT
> [guest - Sat Apr 22 18:25:09 2006]: > > The attached patch implements and tests divide by zero exceptions for > BigInt and Complex PMCs. > > It also tests divide by zero exceptions for float PMCs. float and > integer PMCs are already properly handling divide by zer

Re: Value PMCs in Parrot?

2006-04-12 Thread Leopold Toetsch
x27;complex' type ...) and not targeted now. 2. "Reference Model" for value objects In Parrot, this mostly amounts to unique read-only PMCs. We'll have the read-only part, but the "unique" part, probably not. Can I/we read this as: "morphing for Parrot

Re: Value PMCs in Parrot?

2006-04-11 Thread Chip Salzenberg
1.0 will _not_ have native support for anything like value types. > > Parrot 1.0's type universe will consist entirely of [ISNP]. > > A value PMC is just a PMC. I don't see a need to extend the type system, > when supporting value PMCs. I see these more as just another PMC wi

Re: [perl #32642] [TODO] Remove Perl* PMCs from parrot's basic PMCs, src and languages

2006-04-07 Thread Matt Diephouse
lot of old behavior that makes it mostly worthless now, I think. Some of the other languages are in a similar boat. It'd be nice if there was some policy for deleting unmaintained, unworking, and unfinished languages. We're using source control -- it's trivial to get them back if we want

Re: [perl #32642] [TODO] Remove Perl* PMCs from parrot's basic PMCs, src and languages

2006-04-07 Thread Will Coleda
On Apr 6, 2006, at 5:22 PM, Will Coleda wrote: On Apr 6, 2006, at 5:08 PM, Patrick R. Michaud wrote: On Thu, Apr 06, 2006 at 02:04:06PM -0700, Bernhard Schmalhofer via RT wrote: Hi, as far as I see, the Perl* PMCs are no longer used in the Parrot core. Thanks, Bernhard. There is

Re: [perl #32642] [TODO] Remove Perl* PMCs from parrot's basic PMCs, src and languages

2006-04-07 Thread Nicholas Clark
On Thu, Apr 06, 2006 at 02:17:21PM -0700, chromatic wrote: > On Thursday 06 April 2006 14:04, Bernhard Schmalhofer via RT wrote: > > > 'punie' seems to be the only maintained language implementation using > > Perl* PMCs. > > What about Ponie? Ponie isn't using them. Nicholas Clark

Re: [perl #32642] [TODO] Remove Perl* PMCs from parrot's basic PMCs, src and languages

2006-04-06 Thread Will Coleda
On Apr 6, 2006, at 5:08 PM, Patrick R. Michaud wrote: On Thu, Apr 06, 2006 at 02:04:06PM -0700, Bernhard Schmalhofer via RT wrote: Hi, as far as I see, the Perl* PMCs are no longer used in the Parrot core. Thanks, Bernhard. There is still some usage in unmaintained language

Re: [perl #32642] [TODO] Remove Perl* PMCs from parrot's basic PMCs, src and languages

2006-04-06 Thread chromatic
On Thursday 06 April 2006 14:04, Bernhard Schmalhofer via RT wrote: > 'punie' seems to be the only maintained language implementation using > Perl* PMCs. What about Ponie? > Also some tests and examples are using the Perl* PMCs. I agree that they probably shouldn't,

Re: [perl #32642] [TODO] Remove Perl* PMCs from parrot's basic PMCs, src and languages

2006-04-06 Thread Patrick R. Michaud
On Thu, Apr 06, 2006 at 02:04:06PM -0700, Bernhard Schmalhofer via RT wrote: > Hi, > > as far as I see, the Perl* PMCs are no longer used in the Parrot core. > > There is still some usage in unmaintained language implementations: > > BASIC/compiler unmaintained

[perl #32642] [TODO] Remove Perl* PMCs from parrot's basic PMCs, src and languages

2006-04-06 Thread Bernhard Schmalhofer via RT
Hi, as far as I see, the Perl* PMCs are no longer used in the Parrot core. There is still some usage in unmaintained language implementations: BASIC/compiler unmaintained ? BASIC/interpreter unmaintained ? forth unmaintained ? miniperlunmaintained ? parakeet

Re: Value PMCs in Parrot?

2006-04-04 Thread Chip Salzenberg
ist entirely of [ISNP]. Thus, any implementation (emulation?) of value semantics will be built on PMCs like other types, and will thus continue to live in the GC universe, all a la JValue. On Sun, Mar 12, 2006 at 02:35:11AM +0800, Audrey Tang wrote: > The easy workaround for now is to hav

Re: Value PMCs in Parrot?

2006-03-12 Thread Leopold Toetsch
On Mar 12, 2006, at 2:55, Joshua Isom wrote: If the compiler goes through all the constants at compile time to find identical ones, why not use ".const float number = 0.0"? That covers only a small part of the problem. 'Const's are still mutable, they still morph, an

Re: Value PMCs in Parrot?

2006-03-11 Thread Joshua Isom
, int, buf, str, num, complex... "Value" classes: Undef, Ref, List, Bit, Int, Str, ... "Container" classes: Scalar, Array, Hash, ... Container classes are naturally PMCs. We can map "int", "str" and "num" to registers, and "bit"/"

A tale of two PMCs.

2006-03-11 Thread Audrey Tang
s great for eg. porting the Perl 6 macro system to Perl 5. As a consequence, the release of v6.pm and Pugs::Compiler::Rule has been delayed for one day, so that we can have more robust cross-validation between .pm and .pmc files, and have them play nicely with other Filter::PMC technologies. I

Value PMCs in Parrot?

2006-03-11 Thread Audrey Tang
kinds of classes in Perl 6: "Native" classes: bit, int, buf, str, num, complex... "Value" classes: Undef, Ref, List, Bit, Int, Str, ... "Container" classes: Scalar, Array, Hash, ... Container classes are naturally PMCs. We can map "int", "

FYI: HLL-mapped .Sub PMCs (r11852)

2006-03-10 Thread Leopold Toetsch
Hi all, now the following should work: .HLL "Foo", "Foo_group" .HLL_map .Sub, .FooSub .sub foo # typeof gives 'FooSub' ... (given that the HLL 'Foo' has defined a 'FooSub', which C Sub [1]) Closures and coroutines should be mappable too now. There is one test[2], which is

Re: Deprecated PMCs

2006-02-16 Thread Leopold Toetsch
On Jan 12, 2006, at 12:46, Leopold Toetsch wrote: The following PMCs wil be removed soon: - FloatvalArray - use {Fixed,Resizable}FloatArray instead - StringArray - use {Fixed,Resizable}StringArray instead The latter is a dummy wrapper around ResizablePMCArray BTW. These PMCs are gone now

Deprecated PMCs

2006-01-12 Thread Leopold Toetsch
The following PMCs wil be removed soon: - FloatvalArray - use {Fixed,Resizable}FloatArray instead - StringArray - use {Fixed,Resizable}StringArray instead The latter is a dummy wrapper around ResizablePMCArray BTW. leo

[perl #38202] [TODO] divide by zero exceptions for PMCs

2006-01-10 Thread via RT
Updates for Integer, Float, Complex, BigInt PMCs are welcome. leo

Re: Call frame introspection (was Re: PDD20 - Call frames as PMCs)

2005-11-21 Thread Nicholas Clark
On Tue, Nov 15, 2005 at 10:30:38AM -0800, Chip Salzenberg wrote: > [*] an inode may have as few as zero or as many as USHORT_MAX[**] names, > and finding them all requires scanning a disks's entire directory tree Although one should note that you can loose valid names off the top of your dire

Call frame introspection (was Re: PDD20 - Call frames as PMCs)

2005-11-15 Thread Chip Salzenberg
On Tue, Nov 15, 2005 at 10:17:30AM +0100, Leopold Toetsch wrote: > Autrijus mentioned on #parrot that we'd need weak pointers at some > time. Then we can reconsider callframe PMCs. Ah, weak pointers. I remember a time without weak pointers. It was a happy time. Birds chirped i

Re: PDD20: An idea: Call frames as PMCs

2005-11-15 Thread Leopold Toetsch
sider callframe PMCs. interp."get_caller"(n_levels)# interpreter method or sub_class = getclass 'Sub' sub_class."get_caller"(n_levels) # class method 0 = this sub, 1 = caller, ... a_sub."get_caller"(nlevels) # obj method, if you alr

Re: PDD20: An idea: Call frames as PMCs

2005-11-14 Thread Chip Salzenberg
On Sun, Nov 13, 2005 at 11:33:07AM +0100, Leopold Toetsch wrote: > On Nov 13, 2005, at 4:45, Chip Salzenberg wrote: > > $P0 = callframe 1 > > We already have this kind of introspection: $ grep caller t/pmc/sub.t OK, the Interpreter PMC interface is certainly flexible enough to handle the introsp

  1   2   3   4   5   6   >