Re: Lexical store semantics - Q for Tcl guys

2005-11-22 Thread Matt Diephouse
should be pretty straightforward to implement (assuming we have access to the caller's lex pad for [upvar]). But I assume that that's why things are implemented as they are. -- matt diephouse http://matt.diephouse.com

Re: Lexical store semantics - Q for Tcl guys

2005-11-23 Thread Matt Diephouse
Matt Diephouse <[EMAIL PROTECTED]> wrote: > I don't think it is, no. ParTcl implements global/lexical storage > rather naively at the moment (because I didn't understand that the lex > opcodes worked this way when I implemented this over the summer). > Right now we al

Re: parrot directory reorganization

2005-11-28 Thread Matt Diephouse
s a compiler writer, I see it as a core feature. I always seem to forget that there are docs in imcc/docs/ and end up grepping through docs/ instead (missing valuable information). -- matt diephouse http://matt.diephouse.com

Re: Solving '=' confusion: ':=' for aliasing

2005-11-29 Thread Matt Diephouse
`P0 = ...` is the same thing as `assign P0, ...`? Or, perhaps more accurately, `P1 := ...\n assign P0, P1`? -- matt diephouse http://matt.diephouse.com

Re: Solving '=' confusion: ':=' for aliasing

2005-11-29 Thread Matt Diephouse
Chip Salzenberg <[EMAIL PROTECTED]> wrote: > On Tue, Nov 29, 2005 at 03:25:13PM -0500, Matt Diephouse wrote: > > Or, perhaps more accurately, `P1 := ...\n assign P0, P1`? > > No, PIR doesn't do that kind of thing (allocating P registers) behind > your back. If a seque

Namespaces (At Long Last)

2005-12-01 Thread Matt Diephouse
After many months and lots of work, I'm happy to present you with the latest namespace spec draft. Comments are most welcome: to quote Chip, "The rest of the discussion would benefit from more eyes." Thanks, -- matt diephouse http://matt.diephouse.com Synopsis - Languages

Re: Namespaces (At Long Last)

2005-12-02 Thread Matt Diephouse
jerry gay <[EMAIL PROTECTED]> wrote: > On 12/1/05, Matt Diephouse <[EMAIL PROTECTED]> wrote: > > User Defined Namespaces > > All HLLs should prefix any namespaces with the lowercased name of > > the HLL (so there's no question of what to ca

Re: Namespaces (At Long Last)

2005-12-02 Thread Matt Diephouse
Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > On Dec 2, 2005, at 7:31, Matt Diephouse wrote: > > [ Just a few notes, more to come. I've to read it some more times. ] > > > Naming Conventions > > > HLL Private Namespaces > > HLLs sh

Re: Namespaces (At Long Last)

2005-12-02 Thread Matt Diephouse
e others to be all-lowercase too. I was advocating having (2) and (3) be all-lowercase. I'm not sure which are necessarily the same. > 5. THE FINAL EXAMPLE > > In the final example, what is the purpose of this line: > >add_namespace ["perl5"; "Some"; "Module"], $P1 > > As far as I can tell, the intent of the following line is to import > tcl:Some::Module 'w*' into the _current_ perl namespace, not into > ["perl5"; "Some"; "Module"]. Am I missing the point here? No, I meant to take that line out but I forgot. Thanks, Roger. Your email was helpful. -- matt diephouse http://matt.diephouse.com

Re: Namespaces: HLL Private namespaces

2005-12-02 Thread Matt Diephouse
rivate stuff. In that case, the HLL is responsible > for keeping its own private stuff private, and there is no need for the > spec to refer to unenforced private namespaces. I don't think you'll really be interested in importing the guts of the Tcl compiler into your program. But if that's what you really want, I'm not going to stop you. (And neither should Parrot.) -- matt diephouse http://matt.diephouse.com

Re: Namespaces (At Long Last)

2005-12-03 Thread Matt Diephouse
m missing the point, but I see these being used in the > implementation of "import_into" as a way for the source HLL to tell the > target HLL whether to treat each name as a sub, namespace, variable or > method. Yes, that's correct. -- matt diephouse http://matt.diephouse.com

Re: Namespaces (At Long Last)

2005-12-04 Thread Matt Diephouse
ent matter. Python's function may be variables, but Python still knows that they're functions. So Python can use add_sub to add the function to Tcl's namespace. This is both useful and necessary because function and variable names don't overlap in Tcl. > What am I missing? I hope this clears things up a bit. -- matt diephouse http://matt.diephouse.com

Re: [perl #37914] partcl expr bug.

2005-12-13 Thread Matt Diephouse
dies with this error: MMD function __i_multiply not foundfor types (1, -100) -- matt diephouse http://matt.diephouse.com

Variables, Aliasing, and Undefined-ness

2005-12-15 Thread Matt Diephouse
assignment fails with a "Null PMC access" error. So what am I supposed to do? It appears that using `null` to mark deleted/undefined variables won't work. But it's not clear to me that using a Null PMC is a good idea (then we must perform `'isa` tests on every read to see if that variable is undefined, which seems like it would be expensive). So what's the "correct" way to do this? -- matt diephouse http://matt.diephouse.com

Re: Variables, Aliasing, and Undefined-ness

2005-12-15 Thread Matt Diephouse
Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Matt Diephouse wrote: > > > $alias = undef > > > > translates to > > > > null $P1 > > $P2 = getinterp > > $P2 = $P2["lexpad"; 1] > > $P2['$alias'] = $P1 > >

Re: pdd21 notes

2006-01-24 Thread Matt Diephouse
on't have any comments here. If this can't be made to work, the other option is to use an array of strings. > *)export_to($P0, ...) > > Besides the va_list syntax the wild card support $P1.export_to($P0, > 'w*') seems to belong into the HLL. OTO

Re: pdd21 notes

2006-01-24 Thread Matt Diephouse
ir own types: compiler writers will have to write export code that uses the typed interface anyway. So this won't generate less code, but it's possible that it will improve interoperability (and possibly speed). At this point, I'd probably say to just leave this until later. I'm n

Re: Q: pdd21 relative vs absolute

2006-01-25 Thread Matt Diephouse
, I'd consider adding another opcode: $P1 = get_namespace # this exists - get the current namespace $P2 = get_namespace $P1, ["Foo"; "Bar"] # this doesn't - lookup Foo::Bar in $P1 (the current namespace) -- matt diephouse http://matt.diephouse.com

Re: Heureka - from the -Ofun department

2006-02-10 Thread Matt Diephouse
1 real0m3.502s user0m3.477s sys 0m0.021s GCC 4.0: time ./ack 11 Ack(3,11): 16381 real0m1.960s user0m1.948s sys 0m0.003s I didn't use the custom PIR he posted (which is faster), so Parrot didn't beat the GCC code. -- matt diephouse http://matt.diephouse.com

Re: [perl #38476] [PATCH] De-tab nativecall.pl

2006-02-11 Thread Matt Diephouse
via RT Brad Bowman <[EMAIL PROTECTED]> wrote: > The patch turns the mix of 4-tabs, 8-tabs and spaces in > nativecall.pl into just spaces. Only whitespace changes. Applied, thanks. -- matt diephouse http://matt.diephouse.com

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

2006-04-07 Thread Matt Diephouse
ed for anything besides a proof-of-concept. The only argument I can see for keeping them there is that they're compiled by default, so the build breaks if they do. And that's *my* 2ยข. :-) -- matt diephouse http://matt.diephouse.com

Re: [perl #38960] [BUG] test troubles

2006-04-21 Thread Matt Diephouse
-sanity/01-tap.t > line 1. > > (pugs isn't in any path on both machines) > This make all tests failing. On 10.4.6 (Intel) I get: languages/perl6 mdiep$ perl t/harness t/01-sanity/01-tap.t t/01-sanity/01-tapok 2/10 skipped: various reasons languages/perl6 mdiep$ pugs -bash: pugs: command not found -- matt diephouse http://matt.diephouse.com

Re: [perl #38957] hash test failures

2006-04-21 Thread Matt Diephouse
bly modified > after being freed, break at szone_error to debug > # hash_6(4373,0xa000ed98) malloc: *** set a breakpoint in szone_error > to debug > # ' > # expected: '42 The test passes for me on 10.4.6 Intel. -- matt diephouse http://matt.diephouse.com

Re: [perl #38958] hash/iterator failures

2006-04-21 Thread Matt Diephouse
only one getting them. > > The iterator failures are odd. some of the tests just... stop > iterating before they should: > > # Failed test (t/pmc/iterator.t at line 1019) > # got: '10 > # 20 > # 30 > # ok > # ' > # expected: '10 >

Re: [perl #38957] hash test failures

2006-04-22 Thread Matt Diephouse
Will Coleda <[EMAIL PROTECTED]> wrote: > I'm using gcc 4.0.1, an '--optimized' Configure, and perl 5.8.6 Ahh. When I do an '--optimized' Configure, I get a bunch of failed tests. The hash tests are still passing, but that may be coincidental. -- matt diephouse http://matt.diephouse.com

Re: [perl #39173] Multi-Dispatch Incompatible with :flat Params

2006-05-21 Thread Matt Diephouse
g, then you can write your multis for Integer and String (as chromatic did) and be done with it. -- matt diephouse http://matt.diephouse.com

languages/ Cleanup

2006-05-21 Thread Matt Diephouse
Its author is no longer involved with Parrot. It's doubtful that what's here would be of any use to anyone now. If no one has any objections, I'll remove these towards the end of the week or during the weekend. -- matt diephouse http://matt.diephouse.com

Re: [perl #39164] [PATCH] Cygwin: build with spaces in build_dir

2006-05-22 Thread Matt Diephouse
to build on Cygwin when build_dir contains spaces. How well does this play on other platforms? Works on OS X. Applied in r12755. Thanks, -- Matt Diephouse http://matt.diephouse.com

Re: languages/ Cleanup

2006-05-27 Thread Matt Diephouse
Matt Diephouse <[EMAIL PROTECTED]> wrote: If no one has any objections, I'll remove these towards the end of the week or during the weekend. This is done as of r12807. -- matt diephouse http://matt.diephouse.com

Re: lexical lookup and OUTER::

2006-06-23 Thread Matt Diephouse
;;depth] unless_null lexpad, got_lexpad # try again inc depth goto get_lexpad got_lexpad: variable = lexpad[variable_name] .return(variable) .end Of course, that doesn't mean that I wouldn't like an opcode to do it for me. :-) -- matt diephouse http://matt.diephouse.com

Re: [perl #39597] Problems with string constants in method calls

2006-06-23 Thread Matt Diephouse
via RT Matt Diephouse <[EMAIL PROTECTED]> wrote: # New Ticket Created by Matt Diephouse # Please include the string: [perl #39597] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=39597 > The following code in line

Namespaces Redux

2006-06-28 Thread Matt Diephouse
x27;t add find_global variants that lookup globals in HLL's? Right now we have find_global_p_p_s. Adding find_global_p_s_p_s would let me reach into Tcl's private very easily instead of having to crawl the namespaces myself. $P0 = find_global '_tcl', ['Foo'; 'Bar'], "baz" Thanks, -- matt diephouse http://matt.diephouse.com

Re: Re: Namespaces Redux

2006-06-30 Thread Matt Diephouse
Chip Salzenberg <[EMAIL PROTECTED]> wrote: On Wed, Jun 28, 2006 at 11:40:28PM -0700, Matt Diephouse wrote: > The get_namespace opcode gets namespaces from the root namespace. > Should it get namespaces from the HLL namespace instead? The PDD isn't > explicit either way [.

Re: test of get_namespace opcode vs. arrays

2006-07-01 Thread Matt Diephouse
able to get a namespace at runtime... which translates to the easiest way for Tcl to use namespaces. -- matt diephouse http://matt.diephouse.com

Re: Re: test of get_namespace opcode vs. arrays

2006-07-01 Thread Matt Diephouse
) $S0 = join "::", $P0 print $S0 print "\n" end .end mini:~/Projects/parrot mdiep$ parrot test.pir parrot mini:~/Projects/parrot mdiep$ -- matt diephouse http://matt.diephouse.com

Re: Re: Re: test of get_namespace opcode vs. arrays

2006-07-01 Thread Matt Diephouse
I'd prefer to have C< .namespace [] > so that we could also have the matching C< find_global [], 'foo' >. Otherwise find_global becomes a two step operation for finding globals in the root HLL namespace. Oh, and I've committed some more failing tests. :-) -- matt diephouse http://matt.diephouse.com

Re: Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-06 Thread Matt Diephouse
rst, I think C< [] > *is* a name. Second, any solution which involves giving the HLL namespace a different name will have to either (a) add new opcodes, (b) add more code for all the other cases by making all referencing originate at the root, or (c) add a special syntax, none of which is simple. -- matt diephouse http://matt.diephouse.com

Re: Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-08 Thread Matt Diephouse
icates that most of the code belongs in that namespace, so it's > likely that most of the variables do too. (There are variations, but > that's at least the common case.) Works for me. And that is the current meaning of two-parameter find_global, so it's not a stretch. Works for me too. I'm not sure that I like the rename (I can't decide), but the name itself doesn't matter much. The new opcodes (the presence of get_cur_global) may actually make things easier for Tcl if we ever compile to 100% inlined PIR. This is a different route than I was trying to take us, but it should be almost functionally equivalent, so I'm happy with it. -- matt diephouse http://matt.diephouse.com

Re: Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-10 Thread Matt Diephouse
ay technically. > > I've suggested that get_namespace follow exactly the same pattern, but > so far she hasn't commented on that suggestion at all. I really like both of these suggestions. We also noted on #parrot that get_hll_global would really simplify things for the Tcl folks, which currently go through a macro to achieve the same effect. You mean get_abs_global, actually. The proposed get_hll_global opcode mirrors the existing find_global exactly. :-) -- matt diephouse http://matt.diephouse.com

Re: Re: [perl #39777] Large Subroutine Segfaults IMCC

2006-07-10 Thread Matt Diephouse
g "too many .constants" instead of just segfaulting? Thanks again, -- matt diephouse http://matt.diephouse.com

Re: Checkin #13345

2006-07-18 Thread Matt Diephouse
ned being more clear in the svn log, but a comment would really be the most useful.) -- Matt Diephouse http://matt.diephouse.com

Re: Re: Checkin #13345

2006-07-18 Thread Matt Diephouse
chromatic <[EMAIL PROTECTED]> wrote: On Tuesday 18 July 2006 19:43, Matt Diephouse wrote: > I know I'm a little late to the game here, but in the future it would > be useful to mention this sort of info in a comment in the source. :-) > And a comment might be a nice additio

Inf and NaN

2006-07-30 Thread Matt Diephouse
ork with Tcl and let them grow organically. Does this sound good? (Chip? Allison?) -- Matt Diephouse http://matt.diephouse.com

Re: [svn:parrot-pdd] r13740 - in trunk: . docs/pdds

2006-08-01 Thread Matt Diephouse
ial part of the typed interface? -- Matt Diephouse http://matt.diephouse.com

Re: Re: resizablepmcarray, assign.

2006-08-04 Thread Matt Diephouse
IMO, if it's doable. But it's a little out of my reach as far as C goes, unfortunately. Otherwise I'd have fixed it already. :-) Thanks for taking a look at this. -- Matt Diephouse http://matt.diephouse.com

Re: Re: a premature optimization

2006-08-06 Thread Matt Diephouse
ax in both cases, and there's probably some wins there. Except this only works when the user is in the root HLL namespace or when the user is executing code in the current namespace. That doesn't mean it's not a valid option; just that it's not always valid. -- Matt Diephouse http://matt.diephouse.com

Re: Re: Re: resizablepmcarray, assign.

2006-08-08 Thread Matt Diephouse
g for Strings (and soon for other types as well). So if anyone ever finds himself or herself in the same position, a look at TclList's (languages/tcl/src/pmc/tcllist.pmc) assign_pmc method would probably be in order. -- Matt Diephouse http://matt.diephouse.com

PMC Methods, Inheritance, and User-visible Classes

2006-08-28 Thread Matt Diephouse
ted to use these as the basis for their array classes. Would these each need to be split into 2 classes as well? If so, we'd want to make multiple inheritance really work with PMCs. Any thoughts? -- Matt Diephouse http://matt.diephouse.com

Re: Re: PMC Methods, Inheritance, and User-visible Classes

2006-08-29 Thread Matt Diephouse
Joshua Juran <[EMAIL PROTECTED]> wrote: On Aug 28, 2006, at 12:18 PM, Matt Diephouse wrote: > I would like to add some sort methods as well: quicksort(), > mergesort(), etc. But as methods, there is potential for these to end > up in a user-visible space. > > Say for

Why does writing PMCs suck?

2006-08-29 Thread Matt Diephouse
) You can't use :slurpy, :optional, or :named arguments. Even if there's support under the hood, there's no way to write a PMC with these arguments. -- Matt Diephouse http://matt.diephouse.com

Re: Re: RFC: Consolidate stack-unwinding code

2006-09-23 Thread Matt Diephouse
t the problem was, but none of my guesses of what's causing it were correct. I hope I've given you enough information to fix it. If I haven't, let me know what else I can provide. Thanks, -- Matt Diephouse http://matt.diephouse.com

Re: Re: Re: RFC: Consolidate stack-unwinding code

2006-09-23 Thread Matt Diephouse
? That *does* work. I haven't applied it because it's not necessarily urgent that Tcl work in trunk. I'm okay with waiting a couple days to see if an actual fix can be found - instead of merely using a workaround. You can feel free to apply it yourself, of course.

Re: Re: Re: Re: RFC: Consolidate stack-unwinding code

2006-09-23 Thread Matt Diephouse
Bob Rogers <[EMAIL PROTECTED]> wrote: From: "Matt Diephouse" <[EMAIL PROTECTED]> Date: Sat, 23 Sep 2006 20:21:32 -0400 Bob Rogers <[EMAIL PROTECTED]> wrote: > Try the attached patch . . . That *does* work. I haven't applied it because it&#

Re: Re: FYI compiling PIR function calls

2006-09-28 Thread Matt Diephouse
we handle subroutines? That is, why don't we have a find_method opcode that returns a bound method? That simplifies parsing for IMCC and makes PIR a little simpler. obj.'abc'() # call 'abc' method of obj obj.abc() # same as above $P0 = find_method obj, ab

Re: classnames and HLL namespaces -- help!

2006-10-19 Thread Matt Diephouse
to any changes yet as Chip has been kidnapped by his Real Life (tm). I think the object model needs a thorough going over in general -- for the reasons above and because it's an unproven system. I'm not convinced that it will handle all of Perl 6's needs as is. No serious OO language has been implemented yet on Parrot; everything up to this point has been either procedural or functional. -- Matt Diephouse http://matt.diephouse.com

Re: Re: classnames and HLL namespaces -- help!

2006-10-19 Thread Matt Diephouse
Patrick R. Michaud <[EMAIL PROTECTED]> wrote: On Thu, Oct 19, 2006 at 10:01:29PM -0400, Matt Diephouse wrote: > This is unspecced. ATM, all classes go into the 'parrot' HLL. This is > a relic of the past and I think it needs to change. I'm pretty sure > that HL

Re: Re: classnames and HLL namespaces -- help!

2006-10-20 Thread Matt Diephouse
Allison Randal <[EMAIL PROTECTED]> wrote: Matt Diephouse wrote: > Patrick R. Michaud <[EMAIL PROTECTED]> wrote: >> On Thu, Oct 19, 2006 at 10:01:29PM -0400, Matt Diephouse wrote: >> > This is unspecced. ATM, all classes go into the 'parrot' HLL. This is

set_pmc + setref/deref: anyone using them?

2006-11-13 Thread Matt Diephouse
make transparent references possible, but they weren't really specced out or desisign ed properly. As such, they're a little broken and we'd like to remove them. -- Matt Diephouse http://matt.diephouse.com

:anon Subs and Namespaces

2006-11-22 Thread Matt Diephouse
Still, I'm curious to see what reasons there are for not attaching a namespace to an :anon sub when (1) it seems convenient and (2) all of Parrot's tests still pass. Does this break anything? Or did this just signal to you that there may a problem here that needs its own solution? -- Matt Diephouse http://matt.diephouse.com

Re: Re: :anon Subs and Namespaces

2006-11-23 Thread Matt Diephouse
I could argue it either way, but with the other uses remaining tied to the namespace where they were defined, let's default to your fix (consistency is good). I was hoping you'd say that. :-) Then for exporting (and other dynamic tricks), let's look into a feature that allows you to change the namespace a compilation unit uses for default lookups, after it's compiled. That seems like a good idea. -- Matt Diephouse http://matt.diephouse.com

Re: [perl #41000] Can't compile simple parrot example with latest stable parrot

2006-11-28 Thread Matt Diephouse
d to be updated. Replacing PerlInt with Integer makes it work: new P0, .Integer set P0, 123 new P1, .Integer set P1, 321 add P1, P1, P0 print P1 print "\n" end -- Matt Diephouse http://matt.diephouse.com

Re: Re: [perl #41014] [PATCH] Autobox Native Types for MultiSubs

2006-11-29 Thread Matt Diephouse
Leopold Toetsch <[EMAIL PROTECTED]> wrote: Am Mittwoch, 29. November 2006 05:50 schrieb Matt Diephouse: > It also means that "string", "int", and "float" no longer work as MMD > types -- you can't distinguish between native types and PMCs. I think

Re: Re: Re: [perl #41014] [PATCH] Autobox Native Types for MultiSubs

2006-11-29 Thread Matt Diephouse
Patrick R. Michaud <[EMAIL PROTECTED]> wrote: On Wed, Nov 29, 2006 at 04:43:59PM -0500, Matt Diephouse wrote: > Leopold Toetsch <[EMAIL PROTECTED]> wrote: > >Am Mittwoch, 29. November 2006 05:50 schrieb Matt Diephouse: > >> It also means that "string",

Re: Re: Re: Re: [perl #41014] [PATCH] Autobox Native Types for MultiSubs

2006-11-29 Thread Matt Diephouse
Matt Diephouse <[EMAIL PROTECTED]> wrote: We've basically run into the fact that there's no spec for MMD. I'll see if I can provide a patch that just makes "_" match native types, but I think it'll be somewhat more involved than this one. It ended up being

Re: [perl #40966] [BUG] Parrot core dumps in perl6 (possible GC/pointer bug?)

2006-12-05 Thread Matt Diephouse
s were PIR-level). So the underlying problem is that constant strings are getting collected when they shouldn't. The easy fix is to not collect *any* constant PObj headers (see patch below). Is this correct? Or is there a case when they should get collected? If it's th

Re: Re: [perl #40966] [BUG] Parrot core dumps in perl6 (possible GC/pointer bug?)

2006-12-05 Thread Matt Diephouse
Leopold Toetsch <[EMAIL PROTECTED]> wrote: Am Dienstag, 5. Dezember 2006 20:39 schrieb Matt Diephouse: > The portion of the assertion that > fails is > > !(((s)->obj.flags) & b_PObj_on_free_list_FLAG > > which means that this string has been garbage collec

Re: p6 variable binding in Parrot

2006-12-08 Thread Matt Diephouse
$P3 = $P3[4] morph $P3, .Undef assign $P3, $P2 If you're only assigning your own PMCs, you can drop the morph (which isn't technically safe anyway). -- Matt Diephouse http://matt.diephouse.com

Re: Re: p6 variable binding in Parrot

2006-12-08 Thread Matt Diephouse
Patrick R. Michaud <[EMAIL PROTECTED]> wrote: On Fri, Dec 08, 2006 at 05:05:00PM -0500, Matt Diephouse wrote: > Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > >Does anyone have any suggestions about what sort of PIR > >code and/or PMCs we need to be able to do make t

Bind to an Unspecified Port

2006-12-21 Thread Matt Diephouse
st returns 0 on success (and -1 on failure). I'd like to change bind to return the port it's bound to on success. The patch below adds this code for the unix sockets code. The windows code looks like it'd be the same, but I can't test it so I'd have to find someone to

Re: Tcl windows make problems

2007-01-13 Thread Matt Diephouse
. After these fixes, it worked. Okay, I just changed the occurrences of PMCNULL to NULL. Things should work now. Hope this helps you further. regards, klaas-jan It was very helpful, thanks! -- Matt Diephouse http://matt.diephouse.com

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

2007-01-14 Thread Matt Diephouse
en a lot of it, so I appreciate the little things. :) -- Matt Diephouse http://matt.diephouse.com

Re: Subject: Parrot 0.4.8 Released

2007-01-22 Thread Matt Diephouse
ms. And yes, I would be willing to take a shot at it (realizing that I may or may not be successful). AFAICT, we're limited not just by volunteer labor, but also by the boxes that are available to those volunteers. -- Matt Diephouse http://matt.diephouse.com

Re: __init vs. __init_pmc

2007-01-24 Thread Matt Diephouse
nly one? Does providing an init function for a subclass of a PMC override both of the parent's init functions? -- Matt Diephouse http://matt.diephouse.com

Re: [perl #41511] Parrot_call_sub* Incompatible with Multisubs

2007-02-15 Thread Matt Diephouse
y thought out -- some of the logic in Sub.invoke() should be elsewhere. -- Matt Diephouse http://matt.diephouse.com

Re: [perl #41733] invoke :vtable - execution stops

2007-03-07 Thread Matt Diephouse
rrot_run_meth_fromc_args(interp, sub, pmc, meth, "??", next); return next; } I've tested it and it works with the original code that Richard gave. The only thing left to do is handle return values; I'm still working on that. If I can get return values working properly, I'll check in a fix. -- Matt Diephouse http://matt.diephouse.com

Re: [perl #41790] [PATCH] Change sub's get_string to return short name

2007-03-12 Thread Matt Diephouse
curious. There's some of both, I think. I recently had to change a test to expect the long name of a Sub because there was no way to get the short name. -- Matt Diephouse http://matt.diephouse.com

Countdown to 0.4.11

2007-03-21 Thread Matt Diephouse
es) in all languages (PIR, C, Perl). It's a fairly long list, but I think we can get all the issues resolved in the next month. Let the patching begin! -- Matt Diephouse http://matt.diephouse.com

Re: [PATCH] Avoid //-style comments.

2007-03-22 Thread Matt Diephouse
Andy Dougherty <[EMAIL PROTECTED]> wrote: Please avoid //-style comments. Older compilers don't understand them. Thanks. We have a test for //-style comments, but evidently it doesn't catch all of our generated code. I've changed it to a C-style comment in r17692. -

Re: Regex query

2002-09-20 Thread matt diephouse
"), ("1b", "2b"), ("1c", "2c") ); If you can, the only case where I could see [1, 2, 3] being necessary is in a sub call where the parameters are wrapped in parentheses. md |- matt diephouse

Re: Regex query

2002-09-21 Thread matt diephouse
iguous situations like: print (1, 2, 3), "\n"; I don't know how many times I've done that and wanted it to print "123\n". I know it's a feature, but it can be a bug in my writing. Now it'd be unambiguous: print [1, 2, 3], "\n"; --matt diephouse

Re: String concatentation operator

2002-11-18 Thread matt diephouse
Damian Conway wrote: BTW, in thinking about it further, I realize that Dan is going to have to tackle this issue anyway. There's fundamentally no difference in the exigencies of: $junction = $x | $y | $z; foo($junction);# Call foo($x), foo($y), and foo($z)

Re: String concatentation operator

2002-11-18 Thread matt diephouse
Damian Conway wrote: matt diephouse wrote: $junction = $x | $y | $z; foo($junction);# Call foo($x), foo($y), and foo($z) # in parallel and collect the results # in a disjunction Looking at that code, I&#

Re: ./method

2005-05-15 Thread Matt Diephouse
go with it. Does this mean private methods will be called like this? ./:method() FWIW, I like the original spec best. I'm not sure that the problems with it aren't being exaggerated. But I've not written much Perl 6 yet either... -- matt diephouse http://matt.diephouse.com

Re: ./method

2005-05-15 Thread Matt Diephouse
Damian Conway <[EMAIL PROTECTED]> wrote: > Larry Wall wrote: > > > On Sun, May 15, 2005 at 12:22:07PM -0400, Matt Diephouse wrote: > > : Does this mean private methods will be called like this? > > : > > : ./:method() > > > > No, I think th

Re: Perl 6 and Parrot VM presentation slides

2005-05-25 Thread Matt Diephouse
p://www.sidhe.org/~dan/presentations/Parrot_Implementation.pdf I have an old Perl 6 presentation, but it's at least 3 years old, very badly out of date, and it wasn't a great presentation to begin with. -- matt diephouse http://matt.diephouse.com

Re: [perl #35976] [PATCH] Add Unicode, Hex, and Octal escapes to Tcl

2005-05-27 Thread Matt Diephouse
(hex) > > and > > \u (unicode) > > Supplied as a patch as I know someone's in the middle of working on the > parser right now. That was me. I've just checked in this patch (slightly altered) as part of my refactor (r8181). Thanks! :-) -- matt diephouse http://matt.diephouse.com

Re: some assembly wanted

2005-05-30 Thread Matt Diephouse
s this different from timeparrot? <http://xrl.us/f9oy> > So we'd just need the benchmark code translated to PIR. I've here > harmonic.pir and ack.pir (the latter sucks badly) Adding .pasm, .imc, and .pir scripts to examples/benchmarks/ will cause them to be benchmarked and graphed

Re: some assembly wanted

2005-05-31 Thread Matt Diephouse
Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Matt Diephouse <[EMAIL PROTECTED]> wrote: > > Leopold Toetsch <[EMAIL PROTECTED]> wrote: > >> IIRC it was already mentioned here: http://shootout.alioth.debian.org/ > >> - the Computer Language Shootout. &g

Re: Building Parrot with MinGW, ActivePerl & command.com

2005-06-10 Thread Matt Diephouse
o (languages/tcl/), which has PMCs inside of its classes/ directory. Using relative paths will probably not work (Tcl is two directories deeper). Instead, use ${build_dir} to get the root parrot directory and build your paths from there. Thanks. -- matt diephouse http://matt.diephouse.com

Trace and Iterator Woes

2005-06-26 Thread Matt Diephouse
uot;next" # find_method class 'Iterator' method 'next': NCI These GC issues with tracing have been pretty frequent. Please take a look at languages/tcl/lib/commands/parray.pir to make sure the iterator code is correct. Thanks. -- matt diephouse http://matt.diephouse.com

PGE: Code Blocks

2005-07-04 Thread Matt Diephouse
e to be able to specify a compiler to use along with a code block. In the immediate future, it'd be nice if we could use PIR for these. That would allow us to throw exceptions to catch parse errors. -- matt diephouse http://matt.diephouse.com

PMCs: Should We Use Them?

2005-07-07 Thread Matt Diephouse
R versions of the PMCs available for distributing bytecode? Should as much functionality as possible be put into the core PMCs? I'd like the ability to distribute bytecode without PMCs; I think it's something worth working for. What's the best way to make this work in light of PMCs?

Re: PMCs: Should We Use Them?

2005-07-07 Thread Matt Diephouse
Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Matt Diephouse wrote: > > Dan wrote an entry on his blog yesterday entitled "WWIT: Universal > > bytecode": > > > > http://www.sidhe.org/~dan/blog/archives/000421.html > > > > In it, he talk

Re: [RELEASE] Pugs 6.2.8 released!

2005-07-13 Thread Matt Diephouse
Autrijus Tang <[EMAIL PROTECTED]> wrote: > === Bug Fixes > > * Call parrot with "-G" (CGP) instead of "-j" (JIT) runcore to avoid segfaults Hopefully, you meant to write "-C" instead of "-G", as the first tells parrot to use the CGP core an

Tcl GC Issues... Solved

2005-07-14 Thread Matt Diephouse
As of r8617, the GC bug that ParTcl occasionally tickled has been fixed. This is a relief as it caused some odd behavior and many hours were spent by Will Coleda and Leo trying to debug. Thanks to both of them for their efforts and thanks to Leo for finally catching the bug! -- matt diephouse

Re: Do I need "has $.foo;" for accessor-only virtual attributes?

2005-07-22 Thread Matt Diephouse
to say whether or not this is confusing with adverb pairs, but I love the colon for private methods/attributes and it's the one thing separating your new thinking from my ideal Perl 6 OO. -- matt diephouse http://matt.diephouse.com

Calling Super Methods

2005-07-22 Thread Matt Diephouse
ative method .param string value self.SUPER::__set_string_native(value) print "assign\n" .end I don't really care how it looks really, as long as it's possible. Any thoughts? It'd be nice to get this specced so that it can be implemented. Thanks. -- matt diephouse http://matt.diephouse.com

Octal and Hex Conversions

2005-07-23 Thread Matt Diephouse
IR. :-) Thanks. -- matt diephouse http://matt.diephouse.com

Re: Call for B0rked

2005-08-31 Thread Matt Diephouse
sses - Submethods It's possible that there's a way to emulate these or that I've just missed how they would be done. Also, is rx.ops obsolete? PGE seems to be the new solution. If so, can we get rid of rx.ops? Or is rx.ops still going to be used for something? -- matt diephouse http://matt.diephouse.com

Re: [PATCH]: pmc2c.pl fails outside the build directory

2005-09-02 Thread Matt Diephouse
usr/src/parrot/build_tools/../classes/' > at /usr/src/parrot/build_tools/pmc2c.pl line 281. > > The patch below seems to fix this. Applied as r9126. Thanks. -- matt diephouse http://matt.diephouse.com

  1   2   3   >