Re: parrot rx engine

2002-01-31 Thread Peter Haworth
eady be case-folded for speed. > > Hm, is that going to work ? What about a rx like /^a(?i:b)C/ where the > case insensitivity only applies to part of the pattern ? Or worse, in /^a(b)c/i, where you want to capture the original character, not the case-folded version? -- P

Re: Non-vtable functionality on PMCs?

2002-05-23 Thread Peter Haworth
le methods have to be defined? If the latter, where do we stop? > >In particular, I was wondering about shift/unshift, push/pop on the > >PerlArray PMC. Am I missing something obvious? > > Ah, those. In that case you use the vtable methods I've forgotten. :) Will these all map t

Re: matrix design

2002-06-21 Thread Peter Haworth
hat +%hash will return the number of elements. It should be safe to assume that +@array does the same. -- Peter Haworth [EMAIL PROTECTED] "If you are going to have delusions, you may as well have really good ones" -- Marcus Cole, B5

Re: [netlabs #801] [PATCH] PerlArray in scalar context

2002-09-04 Thread Peter Haworth
# error Bytecode iteration means that this just ends up calling the normal scalar op, and stuffing the result into an array. Looks like I'm in favour of bytecode iteration for hyperoperators after all. -- Peter Haworth [EMAIL PROTECTED] I is for indent, which rarely

RE: [netlabs #801] [PATCH] PerlArray in scalar context

2002-09-05 Thread Peter Haworth
user defined operator; it could actually want one scalar and one array operand. Maybe we should have multiple carets to denote hyper-hyper-operators if that's what the user wants: @a = @b ^^* @c; If hyperoperators get transformed into loops behind the scenes, this shouldn't be too hard to implement. -- Peter Haworth [EMAIL PROTECTED] Override self destruct? (y/n@^%i@&$# NO CARRIER

Re: Objects, finally (try 1)

2003-01-10 Thread Peter Haworth
ature), or split if they don't. -- Peter Haworth [EMAIL PROTECTED] Warning! Your Operating System is out of date! It can be replaced by a more memory abusive Operating System. Please contact your System Vendor for details.

Re: Objects, finally (try 1)

2003-01-13 Thread Peter Haworth
On Fri, 10 Jan 2003 11:49:14 -0500, Dan Sugalski wrote: > At 1:37 PM + 1/10/03, Peter Haworth wrote: > >On Thu, 9 Jan 2003 16:40:20 -0500, Dan Sugalski wrote: > >> #10 We do MI, but we don't instantiate a class' attributes multiple > >>times if its i

Re: Objects, finally (try 1)

2003-01-15 Thread Peter Haworth
he method has been redefined in the meantime. We shouldn't prevent something useful just because it's not universally applicable. -- Peter Haworth [EMAIL PROTECTED] "I can talk on this stuff for hours when given insufficient discouragement." -- Dan Sugalski

Re: Objects, methods, attributes, properties, and other related frobnitzes

2003-02-19 Thread Peter Haworth
nt the base class method to be called, just because parrot does things in a peculiar order. Well, I know it's the same order that perl5 does things, but it's still peculiar. -- Peter Haworth [EMAIL PROTECTED] "I'm converting my data to 64-bit signed times, sto

Re: [RfC] vtable->dump

2003-09-03 Thread Peter Haworth
eezing and DOD, or two freezes). Bear in mind that I have never used threads and can't remember how they work in parrot, so this may be an irrelevant question. -- Peter Haworth [EMAIL PROTECTED] "You're not going to watch the eclipse in yesterday's underpants?"

RE: [RfC] vtable->dump

2003-09-05 Thread Peter Haworth
sh itself to take nearly as much space as the frozen structure; a GC run in the middle of freezing should only be a problem if you run out of *unreclaimable* memory. -- Peter Haworth [EMAIL PROTECTED] "Nothing in the definition of the word `word' says that a word has to be in a dictionary to be called one." -- Anu Garg

Re: Object freezing

2003-10-24 Thread Peter Haworth
mbedded applications or systems) If we make it so freezing > is not a guaranteed possibility at destroy time then this can't happen and > it lessens the utility of the system some. > > We can, if we choose, loosen the restriction later if sufficient reason is > presented. Can

Re: Object freezing

2003-10-24 Thread Peter Haworth
more complex than a native type is inherently recursive. Either you use up call stack space recursing over the PMCs, or you need an explicitly manage a stack/queue of PMCs not yet serialised. Have I missed some wonder of modern computing, or just something so obvious I can't see it? --

Ignore (was Re: Object freezing)

2003-10-24 Thread Peter Haworth
On Fri, 24 Oct 2003 17:33:17 +0100, Peter Haworth wrote: > [stuff he didn't mean to send] Sorry. Looks like I hit Send instead of Cancel. -- Peter Haworth [EMAIL PROTECTED] "this system is slightly less secure than putting your IP address and root password in big le

Re: Some namespace notes

2004-01-28 Thread Peter Haworth
erl5? We can obviously invent suitable syntax for perl6, so that it can cope with arbitrarily named packages, but we don't have that luxury with most of the other languages we want to support. Then the question becomes, "What about namespace clashes?", which Tim has already addres

PDD15: per-class attribute offsets

2004-03-12 Thread Peter Haworth
te values, this isn't thread safe (please excuse my lack of PASM syntax knowledge): classoffset Ioff, Pobj, Sclass # Some other thread calls addattribute on Pobj's class getattribute Pattr,Pobj,Ioff # Now we have the value of the wrong attribute in Pattr -- Peter Haworth