[perl #31143] [TODO] Interpreter - share MMD tables

2008-10-30 Thread Allison Randal via RT
On Wed Oct 15 17:48:28 2008, Whiteknight wrote: With the pdd27mmd branch merged in now, what's the status of this request? The MMD table is now just a namespace, and namespaces are shareable between interpreters. So, resolved. Allison

[perl #46677] [TODO] [C] Merge fixedbooleanarray.pmc with functions from BigInt PMC

2008-10-20 Thread Allison Randal via RT
On Tue Sep 23 22:34:38 2008, cotto wrote: I propose to reject this ticket. Reducing code duplication is a good idea, but it's not at all clear to me what this ticket is referring to. If someone cares to point out what code should be merged, great. Otherwise this ticket is too vague to be

[perl #40392] [CAGE] convert Cexit_fatal to a catchable exception

2008-10-20 Thread Allison Randal via RT
On Mon Sep 22 06:37:24 2008, Whiteknight wrote: Sept 08 milestone came and went. Any updates on this ticket? Maybe this ticket should be closed out (since it's vague) and replaced with another ticket or tickets for individual places where exit_fatal should be replaced with real_exception,

[perl #38432] [BUG] Exception thrown from constructor leads to oddness

2008-10-16 Thread Allison Randal via RT
On Wed Oct 15 12:42:23 2008, coke wrote: Here's yet another updated version (this time for the exception handler) of the test that doesn't segfault, but still generates incorrect output (generates both an OK line and a NOK line) It looks like the exception handler is resuming after the

[perl #39117] [TODO] Using v?snprintf/strlcpy/strlcat when useful

2008-09-08 Thread Allison Randal via RT
Agreed that this particular ticket is not useful. Resolve it and replace it with a [CAGE] ticket with explicit instructions on converting all existing 'sprintf', 'strcat', etc calls with calls to 'snprintf', 'strlcat', etc. (Also include a list of all calls that should be converted.) This can

[perl #47992] [RFE] 'parrot foo' automatically finds and invokes foo.pbc

2008-08-31 Thread Allison Randal via RT
As mentioned in RT #49168, I'm in favor of a --language flag, that selects the default PBC/PIR file to run, and passes all other arguments to the ':main' sub in that file. It can also select default paths based on the options set the the configuration file for that language. Then, using the

[perl #58088] [PATCH] [pdd27mmd] Rename Parrot_mmd_sort_candidate_list

2008-08-20 Thread Allison Randal via RT
Thanks, applied in r30349.

[perl #56800] [META] merge pdd25cx branch back into trunk

2008-08-03 Thread Allison Randal via RT
Merged pdd25cx branch into trunk in r29952. Deleted branch in r29953.

[perl #56786] [pdd25cx] Segfault with tcl

2008-08-03 Thread Allison Randal via RT
Committed a fix to tcl in branch (r29940) to pull from the correct slot. All tests now pass. I'd like to see this segfault/assert/boom addressed before we merge back, just in case. Resolved in r29941, by throwing an exception when requesting an attribute that doesn't exist, or an attribute

[perl #56800] [META] merge pdd25cx branch back into trunk

2008-08-02 Thread Allison Randal via RT
chromatic and I have fixed the majority of the language issues (see child tickets for specific comments). I will merge the branch back into trunk first thing tomorrow morning (Saturday, August 2nd).

[perl #56786] [pdd25cx] Segfault with tcl

2008-08-02 Thread Allison Randal via RT
In r29934 of the branch, I can't even get tcl to build, it keeps complaining about calls to tcl_error_s which it says doesn't exist. Since you mentioned you were eliminating the versions of tcl_error identical to 'die', I went through and replaced the calls to tcl_error with calls to die. It

[perl #48014] [DEPRECATED] PMC union struct

2008-07-13 Thread Allison Randal via RT
On Fri Jul 11 09:41:21 2008, julianalbo wrote: There is a problem with the autogenerated name: in several cases there are other things with that name. For example, for the float.pmc we have the Parrot_Float type defined in include/parrot/config.h Given that the name will be mainly used via

[perl #48014] [DEPRECATED] PMC union struct

2008-07-03 Thread Allison Randal via RT
A bit more detail on the conversion process for a PMC: 1) Find the core data of the PMC, and convert it into a series of ATTR statement at the beginning of the pmclass block. So, if the PMC uses only 'PMC_int_val', create a single entry: 'ATTR INTVAL integer_data;' (Pick a meaningful name, and

[perl #55080] [BUG] segfault on 64-bit Ubuntu, in TGE on isa_i_p_p

2008-06-01 Thread Allison Randal via RT
Resolved in r28017.

[perl #45907] [TODO] Get rid of internal_exceptions ??

2008-05-10 Thread Allison Randal via RT
There will always be a few situations where it's not possible to throw a real exception (because there's no interpreter argument, or it's an error within the exception subsystem, etc.). So, we need to keep one simple fatal error sub around. I replaced 'internal_exception' with 'exit_fatal' in the

[perl #49001] [PROPOSAL][DOCS] Change word compilation_unit into something else (like sub)

2008-05-06 Thread Allison Randal via RT
Yes, PDD 19 can talk about 'subroutines' rather than 'compilation units'. (I just did a quick skim of the file, and a simple search and replace changing 'compilation unit' to 'subroutine' will work fine.) In imcc.y, change 'compilation_unit' and 'compilation_units' to something more general like

[perl #50996] [BUG] gc bug with perl6grammar in pdd17pmc branch

2008-03-06 Thread Allison Randal via RT
Alright, I set up a windows box with MSVC and ActivePerl and did a binary search. The commit that caused the breakage is r25266, when we updated the PMC struct. Tomorrow I'll experiment with reverting parts of that commit.

[perl #50996] [BUG] gc bug with perl6grammar in pdd17pmc branch

2008-03-06 Thread Allison Randal via RT
The problem was in the conversion of pobj_t to the new flattened structure for PDD17. I've reverted that part of r25266 for now (in r26254). The problem is probably an incomplete conversion, with some parts of the code still expecting the multi-level structure. I'll work on a more complete

[perl #50056] [BUG] Undefined symbols on OS X

2008-01-27 Thread Allison Randal via RT
The attached patch removes '-flat_namespace' and consistently uses '-undefined dynamic_lookup'. It also restricts the changes to just the darwin config hints file, which seems like a more appropriate place. It resolves all the test failures related to undefined symbols on OS X. (t/src/intlist.t is

[perl #50056] [BUG] Undefined symbols on OS X

2008-01-27 Thread Allison Randal via RT
On Sun Jan 27 09:19:32 2008, [EMAIL PROTECTED] wrote: Allison: I have 3 different patches from you in this thread in the last day. Which one or which combination do you most want tried out? Test the most recent one, darwin_full_dynamic_symbol_lookup.patch. (moi: ppc-darwin 10.4.11)

[perl #50056] [BUG] Undefined symbols on OS X

2008-01-26 Thread Allison Randal via RT
Update: Nat Torkington wrote a test case for the features we're using (compiling a dynamic library, and compiling an executable that uses that library), which I've attached. The test case works, and is fundamentally the same as what Parrot is doing. I've been stepping through the differences

[perl #50056] [BUG] Undefined symbols on OS X

2008-01-26 Thread Allison Randal via RT
The attached patch allows 'make' to complete on my OS X box, and passes 'make test'. It gets a segfault when running 'make perl6', at the point where it runs 'pbc_to_exe perl6.pbc'. The segfault appears to be a standard GC-style error attempting to access reclaimed memory, and not related to

[perl #50056] [BUG] Undefined symbols on OS X

2008-01-23 Thread Allison Randal via RT
It also works as a shared binary if I append the following to the compile line (pretty much exactly the contents of $O_FILES in the Makefile): c++ -o pbc_to_exe pbc_to_exe.o -L/usr/local/lib -L/opt/local/lib -L/sw/lib -L/sw/lib -L/opt/local/lib -L/sw/lib

[perl #50056] [BUG] Undefined symbols on OS X

2008-01-22 Thread Allison Randal via RT
From http://osdir.com/ml/lib.libtom/2005-01/msg00010.html: By default common symbols are not included in static archive table of contents. If you use the ranlib(1) -c option you can get Linux behavior. And from 'man ranlib' on 10.4.11: -c Include common symbols as definitions with respect

[perl #50056] [BUG] Undefined symbols on OS X

2008-01-22 Thread Allison Randal via RT
On Tue Jan 22 15:38:11 2008, [EMAIL PROTECTED] wrote: Are you building a static or a shared binary? Did this problem only show up after Coke switched the default to shared? Shared. I don't know the exact timing of the change in relation to the failure starting. But, changing

[perl #46907] [TODO] Resolve Copyright in tools/build/pbc2c.pl

2008-01-15 Thread Allison Randal via RT
Cleaned up copyright, after talking to Gregor (who is sending in a signed contributor agreement). Resolved in r24885.

[perl #38253] [TODO] PMC introspection API from PASM

2008-01-12 Thread Allison Randal via RT
Supplied through 'inspect' and 'inspect_str' vtable functions.

[perl #43371] Transfer Design Tickets to Launchpad

2008-01-12 Thread Allison Randal via RT
All PDD tickets and all found design tickets moved to Launchpad. Please submit design requests to https://blueprints.launchpad.net/parrot/.

[perl #42292] [TODO] modify PCCMETHOD syntax to more closely match PDD03

2008-01-12 Thread Allison Randal via RT
chromatic, go ahead and apply this in the pdd17pmc branch. Was already updated in docs/dev/pccmethod.pod. I'm noting the change in DEPRECATED.pod.

[perl #46499] [RFE] Allow comment lines in PIR .param list

2008-01-12 Thread Allison Randal via RT
General idea approved, pending review of implementation changes.

[perl #46667] [TODO] [C] Do we need properties in the default object system?

2008-01-12 Thread Allison Randal via RT
On Mon Oct 22 09:34:51 2007, ptc wrote: In src/pmc/default.pmc:get_attr_str() there is the todo item: /* let's look for props first * XXX do we need that in the default object system? We require an answer to this question, and quite possibly further development depending upon the

[perl #49242] [CAGE] MANIFEST shouldn't skip every file containing the word 'debian'

2008-01-01 Thread Allison Randal via RT
Now correctly adds debian_packaging_guide.pod to the MANIFEST. New directory structure good. Resolving. Allison

[perl #47828] [TODO] Implement the 'copy' opcode

2007-12-11 Thread Allison Randal via RT
Task description: Add an opcode 'copy' to src/ops/set.ops. Similar to 'clone'. - It takes two PMC arguments - It calls VTABLE_morph on $1, and then VTABLE_assign on the two. - It needs to call VTABLE_type to get the type of the source PMC to pass to 'morph' instead of calling

[perl #47924] [BUG] test failures in t/oo/mro-c3.t

2007-12-04 Thread Allison Randal via RT
Resolved in r23461.

[perl #42865] [BUG] There's no way to set a vtable function with a Sub at runtime

2007-11-21 Thread Allison Randal via RT
Implemented with the new object model. There are now two ways to set a vtable override at runtime: calling the 'add_method' method with the named parameter vtable = 1, or calling the vtable function 'add_vtable_override'.

[perl #45925] [RFC][IMCC] pcc directives .pcc_ prefix

2007-10-27 Thread Allison Randal via RT
On Mon Oct 01 21:21:42 2007, kjs wrote: Is it still necessary to prefix these directives with pcc_ (as it is the only calling conventions)? Other directives such as .yield and .return also use the PCC, but do not have this prefix. This difference seems arbitrary and inconsistent

[perl #46541] [BUG] t/pmc/objects.t test failures

2007-10-22 Thread Allison Randal via RT
Underlying code issue resolved in r22405. The MMD methods were directly poking into the union value of Integer, which doesn't work when the multi-method is being called as the closest match for a subclass of Integer.

[perl #46515] [BUG] t/pmc/threads.t test failures

2007-10-19 Thread Allison Randal via RT
The problem is specifically with vtable overrides in classes that are cloned into a thread (which is a cloned interpreter object). The sub object for the vtable override loses its 'seg' member, as demonstrated in the gdb output below. The particular vtable override in tests 13 and 14 of

[perl #46517] [BUG] t/stm/llqueue.t test failures

2007-10-18 Thread Allison Randal via RT
Resolved in r22217.

[perl #43424] [TODO] pdd15 objects documentation incorrect (callmethod)

2007-10-14 Thread Allison Randal via RT
Resolved in r22089 with a patch from Juan Natera (Pabellon) at the PPW Hackathon.

[perl #44307] PIR tutorial

2007-10-13 Thread Allison Randal via RT
A good place to start is by adding POD to the tutorial files already in the directory. I added POD to many, but not to all. In r22071, I added a one sentence descriptions this illustrates X to the files that had no POD, which could be expanded into full descriptions.

[perl #43422] test names do not match tested in object-meths.t for callmethod/callmethodcc

2007-10-13 Thread Allison Randal via RT
Thanks! Applied to the pdd15oo branch in r22075, to be rolled into trunk along with the rest of the branch.

[perl #42352] [TODO] fix or remove strange TODO item in hash() op

2007-09-15 Thread Allison Randal via RT
The hash opcode and vtable function are deprecated in PDD 17. (Neither are used or useful.)

[perl #42769] Should 'object' and basic PMC names be keywords in PIR

2007-09-11 Thread Allison Randal via RT
We will deprecate all types for .local other than string, num, int, and pmc. Allison

[perl #33603] Undef != Undef

2007-07-26 Thread Allison Randal via RT
PMCNULL is a singleton, so PMCNULL always equals PMCNULL. Undef allows morphing and interesting values of Undef (with attached properties and possibly roles) so it can't be just a singleton. But, Undef can report itself as equal to other Undefs. Let's make it so. It's likely that undefined

[perl #43165] [TODO] replace dual Artistic/GPL license with Artistic 2.0 only

2007-06-18 Thread Allison Randal via RT
Resolved in r19096.

[perl #31980] Factorial example gives incorrect result

2007-06-16 Thread Allison Randal via RT
On Mon Feb 20 16:23:46 2006, jhoblitt !-- x -- at hawaii.edu wrote: On Tue, Feb 21, 2006 at 01:03:59AM +0100, Leopold Toetsch wrote: On Feb 20, 2006, at 23:44, Joshua Hoblitt via RT wrote: What happened to the factorial PASM example? It seems to have disappeared and it hasn't

[perl #42919] [BUG] and [PATCH] overriding 'invoke' requires current object to be explicitly passed

2007-05-14 Thread Allison Randal via RT
And reverted in r18541. The patch is fragile. Broken on Windows, and fixing it for Windows breaks it for OSX and Linux. Allison

[perl #42898] [PATCH] src/library.c , honor PARROT_PREFER_SOURCE in extension guessing

2007-05-12 Thread Allison Randal via RT
Reverted in r18519. This feature is still being reviewed. (Previous patches implementing portions of this behavior may also be reverted.) Mike is writing a proposal for the mailing list to discuss. Allison

[perl #41386] MANIFEST must die.

2007-05-12 Thread Allison Randal via RT
On Sun Feb 18 17:13:40 2007, coke wrote: If I'm understanding correctly: - MANIFEST indicates which files are to be in the distribution. - svn:ignore indicates which files in a build tree are to be ignored as part of svn status and other svn commands. - MANIFEST.SKIP indicates

[perl #39063] [TODO] ResizableBooleanArray uses 64 bytes per bit of information

2007-04-15 Thread Allison Randal via RT
The current implementation of ResizableBooleanArray appears to use 64 bytes for each element. It would be nice to reduce that significantly. Either ResizableBooleanArray has been significantly refactored since this ticket was submitted last year (it has been), or the ticket was never true in

[perl #39784] Make Parrot's default namespace be untyped

2007-04-14 Thread Allison Randal via RT
On Mon Jul 10 17:25:13 2006, chip wrote: Parrot's default namespace implementation should be 100% untyped -- basically just a hash with some additional methods. Making this happen requires solving the problem of Parrot's currently requiring classes and class method namespaces to have the

[perl #41918] [PATCH] spelling fixes in src/library.c

2007-03-21 Thread Allison Randal via RT
Thanks, applied in r17680.

[perl #41505] [CAGE] Cleanup and reorganise documentation related to svn properties

2007-03-18 Thread Allison Randal via RT
Made a few more text edits in r17591. Paul Cochrane's changes approved, ticket resolved.

[perl #41878] [TODO] create exporter pmc

2007-03-17 Thread Allison Randal via RT
Jerry Gay (via RT) wrote: ...an Exporter PMC that defines an api for exporting. Proposed interface: $P0 = new Exporter $P0.import($P1, ['KeyTo'; 'ImportedNamespace'], $P2) where $P1 is the current namespace, and $P2 is an array of sub names to import. It'd be even better if we could have the

[perl #41808] [PATCH 1/6] [library] Test::More: use hllmacros.pir in man page example

2007-03-16 Thread Allison Randal via RT
Namespaces have an export feature. A bit clunky, but a definite improvement over the .IMPORT macro. I've replaced all instances of .IMPORT with the export_to method, except languages/PIR/examples/test.pir, because it seems to just be a generic syntax example.

[perl #41805] [library/Test::More] add isnt() to test inequality - ints only

2007-03-15 Thread Allison Randal via RT
On Tue Mar 13 16:10:04 2007, [EMAIL PROTECTED] wrote: [library/Test::More] add isnt() to test inequality - ints only refactor the is() :multi for integers into a _cmp_ok() function, and then use that to provide is() and isnt() I spent some time poking at refactoring this patch and #41806

[perl #41636] [PATCH] Updates for PDD06

2007-03-13 Thread Allison Randal via RT
Thanks, applied in r17469.

[perl #41577] docs/ROADMAP.pod refers to python bytecode translator, pie-thon test suite

2007-02-27 Thread Allison Randal via RT
Fixed in r17210.

[perl #41235] [PATCH] Add get_name() Method to Namespaces

2007-02-17 Thread Allison Randal via RT
On Thu Jan 11 09:58:32 2007, [EMAIL PROTECTED] wrote: I've held off on applying it because Allison said we need a deprecation cycle for the name() - get_name() rename. I've made a note in DEPRECATED.pod that the method is being renamed (r17030). Go ahead and apply this patch immediately after

[perl #41364] [PATCH] Fixed object vtable method overrides in PIR

2007-02-17 Thread Allison Randal via RT
On Sat Jan 27 11:39:15 2007, [EMAIL PROTECTED] wrote: This patch allows object vtable method overrides for find_method, get_attr, get_attr, get_attr_str, set_attr, set_attr_str, and get_class. Now these can be overridden in PIR using the :vtable flag or prefixing their respective names with

[perl #32667] [TODO] IMCC - documentation needs updating

2007-01-17 Thread Allison Randal via RT
On Tue Jan 16 12:05:17 2007, [EMAIL PROTECTED] wrote: Attached patch adds new syntax documentation to docs/imcc/syntax.pod and fixes some typos there. It now also indicates where various flags are explained. Applied in r16678. Is the shorthand syntax for function calls (($P0, a :slurpy) =

[perl #41237] [TODO] PMC Class name IDs will require a dot in front

2007-01-14 Thread Allison Randal via RT
PMC Class name IDs ... will require a dot in front My preference is to eliminate the dot in classname IDs. Lodge your objections now, before it's made fact in 0.4.9. Allison

[perl #40443] Separate vtable functions from methods (using :vtable)

2007-01-14 Thread Allison Randal via RT
The :vtable feature has been implemented. Any remaining bugs in the implementation should be submitted as separate tickets.

[perl #33962] readline returns one too many lines

2006-12-17 Thread Allison Randal via RT
On Sat Jan 29 06:17:10 2005, leo wrote: Matt Diephouse [EMAIL PROTECTED] wrote: I already use that workaround in some of my code, but that sorta defeats the purpose of testing the filehandle itself. The filehandle should become false after it returns the last line of the file - not the