Re: Where is Manhattan Dispatch discussion?

2008-05-06 Thread Ovid
--- John M. Dlugosz [EMAIL PROTECTED] wrote: I want to review and collect the wisdom of what has been discussed before. Someone mentioned this the other day, as being a significant consensus. But I can't find anything in the forum archives. Can someone point to the discussion, position

my TypeName $x;

2008-05-06 Thread Jonathan Worthington
Hi, I'm looking for answers/clarification on what (if taken as individual programs) $x is in each case. my Int $x; # $x is Int protoobject say $x; # Int say $x.WHAT; # Int class Foo { } my Foo $x; # $x is Foo protoobject say $x; # Foo say $x.WHAT; # Foo # This

Re: my TypeName $x;

2008-05-06 Thread Jon Lang
My thoughts: .HOW returns information concerning the implementation type; .WHAT returns information concerning the value type. .HOW and .WHAT stringify to something resembling the declarations that would be used to create them. Also bear in mind that Perl 6 uses prototype-based object

Re: [perl #53750] [BUG] The WHAT method of Protobject returns only the last component of the name

2008-05-06 Thread Stéphane Payrard
I have a fix which currently suits my need. But the real problem, like you said in IRC is to eventually merge the PGE and the rakudo implementations of protoobjects. I note that S12 that .WHAT and .WHO should return objects that stringifies to strings and not directly strings like in PGE

Re: nested 'our' subs - senseless?

2008-05-06 Thread TSa
HaloO, David Green wrote: On 2008-May-3, at 5:04 pm, John M. Dlugosz wrote: What does this mean? our sub outer () { ... our sub inner () { ... } } inner; # defined? I don't know why it would be any more illegal than sub foo { our $var... }. The inner sub would be in the package's

Re: [perl #53714] [PATCH] parrot segfaults when dyna-loading main program

2008-05-06 Thread Tom Erdevig
chromatic wrote: I prefer this patch. It fixes the problem closer to its source. Does it work for you? Yes, that works for me. However the fix does not get exercised without the new test case (or something similar) added in the original patch. Thanks! Tom

[perl #53748] rakudo bug: can't assign undef to Int variable

2008-05-06 Thread [EMAIL PROTECTED] via RT
Hi, This has been resolved as of r27337. Thanks! Jonathan

Re: my TypeName $x;

2008-05-06 Thread Jon Lang
Upon further review: It might be possible that $x.WHAT returns a Signature object, with the value type of $x as the invocant (or return type?), and everything else empty. But that merely begs the question of how to introspect a Signature object. If I tell Perl 6 to say a Signature, what gets

Re: my TypeName $x;

2008-05-06 Thread Brandon S. Allbery KF8NH
On 2008 May 6, at 10:15, Jon Lang wrote: Signature? If so, what kind of object does the Signature object return if I ask it to give me its invocant? Surely not another Signature object? Whatever it is that Perl 6 returns in that case Turtle? :) -- brandon s. allbery

[perl #53018] grammar not behaving as class

2008-05-06 Thread [EMAIL PROTECTED] via RT
Hi, I've now made grammars a whole lot more class like. They get proto-objects and inheritance works too, plus the regexen go in the correct namespaces. There is some work to do getting Foo::bar to work now (where Foo is a grammar name and bar is a regex name in the grammar), but that's a

[perl #50220] patch implementing get_string for rakudo junctions

2008-05-06 Thread [EMAIL PROTECTED] via RT
Hi, I wound up tweaking this patch into shape, as discussed in previous patches, and applying it with the tweaks. So now Junctions have .perl. :-) Thanks! Jonathan

Re: [perl #53714] [PATCH] parrot segfaults when dyna-loading main program

2008-05-06 Thread NotFound
On Tue, May 6, 2008 at 7:42 AM, chromatic [EMAIL PROTECTED] wrote: I prefer this patch. It fixes the problem closer to its source. Does it work for you? Works for me, but I wonder if the set_string_native function still needs the fix, or an assertion about a forbidden combination of

Re: Where is Manhattan Dispatch discussion?

2008-05-06 Thread John M. Dlugosz
I'm still in the dark... I find an positions for manhattan distance but no definition of what that is. I did find the alternative pod page earlier. --John Ovid publiustemp-perl6language2-at-yahoo.com |Perl 6| wrote: --- John M. Dlugosz [EMAIL PROTECTED] wrote: I want to review and

Re: Where is Manhattan Dispatch discussion?

2008-05-06 Thread Carl Mäsak
John (): I'm still in the dark... I find an positions for manhattan distance but no definition of what that is. I did find the alternative pod page earlier. I don't have a whole answer for you, but a part that may help. What is generally meant by Manhattan distance is so-called L1 distance,

Re: Where is Manhattan Dispatch discussion?

2008-05-06 Thread Mark A. Biggar
Carl Mäsak wrote: John (): I'm still in the dark... I find an positions for manhattan distance but no definition of what that is. I did find the alternative pod page earlier. I don't have a whole answer for you, but a part that may help. What is generally meant by Manhattan distance is

Re: my TypeName $x;

2008-05-06 Thread TSa
HaloO, Jon Lang wrote: My thoughts: .HOW returns information concerning the implementation type; .WHAT returns information concerning the value type. My addition to these thoughts is that the WHAT and HOW are cascaded. Let's say we start at level 0 with the objects, thingies or however we

Re: Where is Manhattan Dispatch discussion?

2008-05-06 Thread TSa
HaloO, Mark A. Biggar wrote: To do multi method dispatch, you want to select the method that best matches the parameters in the call. The fundamental flaw of metric mmd is that it trades degrees of specificity. Consider the subtype chain E : D : C : B : A where the rule is that having an E it

MMD thoughts 2008

2008-05-06 Thread John M. Dlugosz
TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote: The fundamental flaw of metric mmd is that it trades degrees of specificity. Consider the subtype chain E : D : C : B : A where the rule is that having an E it is better handled by a method dealing with a D than one dealing with an A. The same is

Re: [PROPOSED PATCH] Improving the Sub Not Found Error Message

2008-05-06 Thread Patrick R. Michaud
On Fri, May 02, 2008 at 02:16:01AM -0500, Patrick R. Michaud wrote: When you try to invoke a sub that doesn't exist, Parrot currently gives the unhelpful error message Null PMC access in invoke(). Sometimes you can figure out what's wrong given the backtrace. Often you can't. ... The

Re: my TypeName $x;

2008-05-06 Thread Jon Lang
TSa wrote: Jon Lang wrote: My thoughts: .HOW returns information concerning the implementation type; .WHAT returns information concerning the value type. BTW, S12 more or less confirms the above: .WHAT returns a prototype object that stringifies to its short name, while .HOW allows

[perl #49972] Error message for misspelled sub name in PIR code is confusing

2008-05-06 Thread Patrick R. Michaud via RT
In r27351 I've added code to PCT to check for non-existent subs and throw an exception at the point of the call. So, the problem is solved for PCT-based languages, at least. It still doesn't help with the case of non-existent sub names in PIR, though, for which I recommend something along the

Minimal Distance (Re: Where is Manhattan Dispatch discussion?)

2008-05-06 Thread John M. Dlugosz
Mark A. Biggar mark-at-biggar.org |Perl 6| wrote: To do multi method dispatch, you want to select the method that best matches the parameters in the call. One way to do that is to define a measure for distances between types and they use the method that's at the minimum distance. One simple

Re: Minimal Distance (Re: Where is Manhattan Dispatch discussion?)

2008-05-06 Thread TSa
HaloO, John M. Dlugosz wrote: In C++, which must be resolved at compile time, the overloading resolution mechanism demands that =every= parameter be at least as good of a match, and one strictly better match. So the implementation never guesses if worse-left/better-right is a better fit than

Re: nested 'our' subs - senseless?

2008-05-06 Thread David Green
On 2008-May-6, at 6:07 am, TSa wrote: Just to ensure that I get the our behavior right, consider sub foo { our $inner = 3; } sub bar { our $inner = 4; # redeclaration error? } say $inner; Does this print 3 even when foo was never called? No, it throws an

Re: MMD thoughts 2008

2008-05-06 Thread TSa
HaloO, John M. Dlugosz wrote: OK, why would someone create those forms in the first place? I would think they grow like that historically. A five steps long subtyping chain is not particularly extraordinary. Note that multi entries live outside of classes and their single dispatch. The

Re: Minimal Distance (Re: Where is Manhattan Dispatch discussion?)

2008-05-06 Thread chromatic
On Tuesday 06 May 2008 10:38:38 John M. Dlugosz wrote: I have problems with a simple sum.  The distance is artificially inflated if you make lots of small derivation steps vs one large change.  The concept of derivation steps is ill-defined for parameterized types and types that change

Re: [perl #49972] Error message for misspelled sub name in PIR code is confusing

2008-05-06 Thread chromatic
On Tuesday 06 May 2008 11:03:08 Patrick R. Michaud via RT wrote: It still doesn't help with the case of non-existent sub names in PIR, though, for which I recommend something along the lines of the patch described by chromatic in

Re: [perl #51122] GC bug in bytecode loading (again)

2008-05-06 Thread chromatic
On Saturday 23 February 2008 15:48:23 Bob Rogers wrote: Oops; I spoke too soon. It turns out that r26025 causes the #50040 test case to break again (I checked that it still worked in r26024). So perhaps the change chromatic made didn't actually fix it . . . Are you still seeing breakage?

[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

Re: nested 'our' subs - senseless?

2008-05-06 Thread TSa
HaloO, David Green wrote: The assignment happens only when foo() is invoked. However, the variable $*Main::inner is declared at compile-time. Similarly, an our sub inner inside foo() would declare the name, but you couldn't call inner() until after running foo() --or bar()-- since you can't

Re: [svn:parrot] r27357 - in branches/pdd25cx: compilers/imcc include/parrot src src/charset src/gc src/ops src/pmc t/pmc

2008-05-06 Thread chromatic
On Tuesday 06 May 2008 12:52:35 [EMAIL PROTECTED] wrote: Author: allison Date: Tue May 6 12:52:34 2008 New Revision: 27357 Log: [pdd25cx] * Several header changes from rerunning 'make headerizer'. Modified: branches/pdd25cx/compilers/imcc/optimizer.c

Re: [perl #53762] Moving languages out of the repository (a 1.0 question)

2008-05-06 Thread Allison Randal
Will Coleda wrote: On Tue, May 6, 2008 at 1:23 AM, Will Coleda [EMAIL PROTECTED] wrote: The goal for 1.0 is to ship languages separately from parrot; Can we get a brief summary of what sort of licensing/copyright issues apply when the languages are removed from perl.org repository? My

[perl #46121] [TODO] [PATCH] Add while loop to increment through commands correctly in PDB_cond()

2008-05-06 Thread NotFound
On Fri, Oct 5, 2007 at 10:50 PM, via RT Paul Cochrane [EMAIL PROTECTED] wrote: In src/debug.c:PDB_cond() there is the todo item: /* XXX Does /this/ have to do with the fact that PASM registers used to * have * maximum of 2 digits? If so, there should be a while loop, I think. */

Re: Minimal Distance (Re: Where is Manhattan Dispatch discussion?)

2008-05-06 Thread Larry Wall
On Tue, May 06, 2008 at 08:20:40PM +0200, TSa wrote: HaloO, John M. Dlugosz wrote: In C++, which must be resolved at compile time, the overloading resolution mechanism demands that =every= parameter be at least as good of a match, and one strictly better match. So the implementation never

Re: MMD thoughts 2008

2008-05-06 Thread Buddha Buck
Sorry to reply to the wrong comment, but I lost the original thread in my mail archives and didn't notice this until now. On Tue, May 6, 2008 at 1:54 PM, John M. Dlugosz [EMAIL PROTECTED] wrote: TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote: The fundamental flaw of metric mmd is that it

Re: my TypeName $x;

2008-05-06 Thread Larry Wall
On Tue, May 06, 2008 at 10:54:51AM +0200, Jonathan Worthington wrote: Hi, I'm looking for answers/clarification on what (if taken as individual programs) $x is in each case. my Int $x; # $x is Int protoobject say $x; # Int say $x.WHAT; # Int What they said. $x is

[perl #46139] [TODO] Do more in the parrot debugger

2008-05-06 Thread Will Coleda via RT
This ticket is too vague. There are plenty of specific PDB tickets already; those will serve. Rejecting ticket.

[perl #44393] something funny in dod/gc blocking macros

2008-05-06 Thread Will Coleda via RT
On Fri Aug 03 13:43:42 2007, [EMAIL PROTECTED] wrote: On Friday 03 August 2007 13:29:53 Jerry Gay wrote: i'm having trouble on x86_64. when running a 32bit parrot, i get occasional deadlock at the OS level, after Parrot_exit. when running a 64bit parrot, it segfaults within Parrot_exit,

[perl #47421] [BUG] Illegal instruction when Invoking Parrot to generate runtime/parrot/include/config.fpmc

2008-05-06 Thread Will Coleda via RT
On Tue Nov 13 19:01:07 2007, [EMAIL PROTECTED] wrote: --- osname= freebsd osvers= 6.2-stable arch= sparc64-freebsd cc= cc --- Flags: category=install severity=high ack=no --- Parrot 0.4.17r22818 freebsd 6.2-sparc64 gcc 4.3 I have the output of the build up to

[perl #53762] Moving languages out of the repository (a 1.0 question)

2008-05-06 Thread Will Coleda via RT
On Tue May 06 13:31:40 2008, [EMAIL PROTECTED] wrote: Will Coleda wrote: On Tue, May 6, 2008 at 1:23 AM, Will Coleda [EMAIL PROTECTED] wrote: The goal for 1.0 is to ship languages separately from parrot; Can we get a brief summary of what sort of licensing/copyright issues apply when

[perl #40817] [TODO] track generated files during the configure/make process

2008-05-06 Thread James Keenan via RT
On Tue May 06 17:15:39 2008, coke wrote: If the patch is applied, can we close this ticket? No. I only figured out how to keep track of files generated during configuration, not during build. We need some of what, IIRC, particle termed makefile trickery to keep track of files generated

[perl #53600] [CAGE] config/auto/python.pm unused?

2008-05-06 Thread James Keenan via RT
Removing this config step class does not appear to have caused any smoke failures. Resolving teicket.

Re: [perl #53406] [TODO] Add 'long long' to types supported by NCI

2008-05-06 Thread chromatic
On Sunday 27 April 2008 18:08:08 Mark Glines wrote: In the future, INTVAL will probably be 128 bits for some platforms. I'd really like to see a set of fixed-width types (similar to what p5 has for pack and unpack), so you have the option of native int or exactly 32 bits or whatever you need.

Class Building

2008-05-06 Thread John M. Dlugosz
Building a class definition is an activity performed by Perl code that runs at compile time. Could you take a quick look at Section 2 in http://www.dlugosz.com/Perl6/class_building.pdf and make sure that view is orthodox according to @Larry? Then I will collect details that have been

Re: Minimal Distance (Re: Where is Manhattan Dispatch discussion?)

2008-05-06 Thread John M. Dlugosz
TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote: HaloO, John M. Dlugosz wrote: In C++, which must be resolved at compile time, the overloading resolution mechanism demands that =every= parameter be at least as good of a match, and one strictly better match. So the implementation never

Re: MMD thoughts 2008

2008-05-06 Thread John M. Dlugosz
Sorry, you're not following me at all. I'll try again later. TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote: HaloO, John M. Dlugosz wrote: OK, why would someone create those forms in the first place? I would think they grow like that historically. A five steps long subtyping chain is not

Re: Minimal Distance (Re: Where is Manhattan Dispatch discussion?)

2008-05-06 Thread John M. Dlugosz
Larry Wall larry-at-wall.org |Perl 6| wrote: On Tue, May 06, 2008 at 08:20:40PM +0200, TSa wrote: HaloO, John M. Dlugosz wrote: In C++, which must be resolved at compile time, the overloading resolution mechanism demands that =every= parameter be at least as good of a match, and one

Re: Minimal Distance (Re: Where is Manhattan Dispatch discussion?)

2008-05-06 Thread Larry Wall
On Tue, May 06, 2008 at 08:47:47PM -0500, John M. Dlugosz wrote: Larry Wall larry-at-wall.org |Perl 6| wrote: On Tue, May 06, 2008 at 08:20:40PM +0200, TSa wrote: HaloO, John M. Dlugosz wrote: In C++, which must be resolved at compile time, the overloading resolution mechanism

Re: [PATCH] Re: [perl #53264] [PATCH] Re: [svn:parrot] r27144 - in trunk: include/parrot src src/pmc

2008-05-06 Thread chromatic
On Friday 25 April 2008 10:49:19 Andy Dougherty wrote: Ok.  Fixed.  This version avoids both type-punning and cast alignment warnings by declaring the 'data' element of a Stack_Chunk_t to be of type Stack_Entry_t, since that's the only way it is ever used, at least as far as I could tell.

Re: my TypeName $x;

2008-05-06 Thread Jon Lang
Larry Wall wrote: Jonathan Worthington wrote: role Bar { } my Bar $x; # $x is ??? say $x; # ??? say $x.WHAT; # ??? # This means we can only assign to $x something that does Bar? Correct, and for the same reason. The container checks the role--it has little to do

Re: [perl #53430] [PATCH] Concat call_list.txt from fragments in config step

2008-05-06 Thread Geoffrey Broadwell
On Mon, 2008-04-28 at 08:44 -0700, Geoffrey Broadwell wrote: I'm not wedded to splitting them up as much as I did. In fact, I'd be fine with core.in, opengl.in, and misc.in. Better for you? chromatic confirmed on IRC that this was his preference, saying also that this arrangement solves

Re: [perl #51122] GC bug in bytecode loading (again)

2008-05-06 Thread Bob Rogers
From: chromatic via RT [EMAIL PROTECTED] Date: Tue, 06 May 2008 12:18:19 -0700 On Saturday 23 February 2008 15:48:23 Bob Rogers wrote: Oops; I spoke too soon. It turns out that r26025 causes the #50040 test case to break again (I checked that it still worked in r26024). So

Re: my TypeName $x;

2008-05-06 Thread Larry Wall
On Tue, May 06, 2008 at 07:01:29PM -0700, Jon Lang wrote: : 1. Apparently, my presumption that $x.WHAT was for retrieving the : value type was wrong; from the above, it's sounding like it is : supposed to retrieve the implementation type. I don't know what you mean by those terms. .WHAT gives

Re: my TypeName $x;

2008-05-06 Thread Jon Lang
On Tue, May 6, 2008 at 8:09 PM, Larry Wall [EMAIL PROTECTED] wrote: On Tue, May 06, 2008 at 07:01:29PM -0700, Jon Lang wrote: : 1. Apparently, my presumption that $x.WHAT was for retrieving the : value type was wrong; from the above, it's sounding like it is : supposed to retrieve the

[perl #39329] Check to make sure PMC_str_val, etc. are used appropriately

2008-05-06 Thread Patrick R. Michaud via RT
I think this ticket is ready to be closed. A lot of the PMC_* items were likely fixed as part of the pdd15oo change, and the problem I cited has apparently been fixed. Pm

Re: [perl #53430] [PATCH] Concat call_list.txt from fragments in config step

2008-05-06 Thread chromatic
On Tuesday 06 May 2008 19:26:46 Geoffrey Broadwell wrote: On Mon, 2008-04-28 at 08:44 -0700, Geoffrey Broadwell wrote: I'm not wedded to splitting them up as much as I did. In fact, I'd be fine with core.in, opengl.in, and misc.in. Better for you? chromatic confirmed on IRC that this