Re: Premature pessimization

2004-12-05 Thread Ashley Winters
bute is a _feature_ necessary for completeness, rather than a "pessimization" to compensate for the belief that not explicitly caching would be hopelessly slow? Ahh. I'm learning much. :) Ashley Winters

Re: RFC - Hashing PMC's

2002-07-23 Thread Ashley Winters
On Tuesday 23 July 2002 08:44 am, Alberto Manuel Brandão Simões wrote: > On Tue, 2002-07-23 at 09:27, Ashley Winters wrote: > > @foo = (); > > %hash{@foo} = 10; > > push @foo, 'This would change the hash key for @foo?'; > > > > print "ok 1" if

Re: RFC - Hashing PMC's

2002-07-23 Thread Ashley Winters
On Tuesday 23 July 2002 08:27 am, Ashley Winters wrote: > push @foo, 'This would change the hash key for @foo?'; > > print "ok 1" if exists %hash{ [] }; > print "ok 2" if exists %hash{ [10] }; Err, I meant: print "ok 2" if exists %hash{ ['

Re: RFC - Hashing PMC's

2002-07-23 Thread Ashley Winters
the same > elements MUST return the same hash code. @foo = (); %hash{@foo} = 10; push @foo, 'This would change the hash key for @foo?'; print "ok 1" if exists %hash{ [] }; print "ok 2" if exists %hash{ [10] }; print "ok 3" if exists %hash{@foo}; What's goin

Re: PARROT QUESTIONS: Keyed access

2002-07-21 Thread Ashley Winters
On Sunday 21 July 2002 06:46 pm, Scott Walters wrote: > 2. PMCs return iterators allocated on a stack that allow them to function > as KEY *s allocating a single fixed size peice of memory rather than all of > the parts of a linked list. In other words, factor out the part of PMCs > that index a g

Re: PARROT QUESTIONS: Use the source, Luke

2002-07-15 Thread Ashley Winters
h Parrot_ -- as long as it isn't used *everywhere*. A good thing used in excess is bad, and all that mumbo jumbo. Ashley Winters -- When you do the community's rewrite, try to remember most of us are idiots.

PARROT QUESTIONS: The PDDs

2002-07-14 Thread Ashley Winters
root set through various mechanisms? Do I need to implement the mark vtable entry to attach memory to my PMC? Answers like that. Question: How do I allocate memory? Question: How do I make sure my memory gets marked while I need it? Question: Is the GC really implemented in resources.c? It's

Re: PARROT QUESTIONS: Use the source, Luke

2002-07-14 Thread Ashley Winters
ould have misc_, but I foresee that > becoming annoying. (Which seems better to you, Parrot_sprintf or > misc_sprintf?) c. parrot_sprintf Ashley Winters -- When you do the community's rewrite, try to remember most of us are idiots.

Re: PARROT QUESTIONS: Use the source, Luke

2002-07-14 Thread Ashley Winters
ement what docs? 4. Where can I find out what embed.c is doing? 5. Why is parrot.c empty? Ashley Winters

PARROT QUESTIONS: Use the source, Luke

2002-07-14 Thread Ashley Winters
n embed.c to be in there ala. perl5's perl.c at least. If it's not going to have source, it definitely needs a comment saying "this is not the file you are looking for, see test_main.c and embed.c". I think that's all for today, Ashley Winters -- When you do the community's rewrite, try to remember most of us are idiots.

Re: Parrot contribution

2002-07-13 Thread Ashley Winters
patches with the answers? I haven't even compiled Parrot before, so you'd be getting genuine n00b questions. Be warned. Is there a complete description, or even listing, of command-line switches outside of parrot -h or whatever? running.pod doesn't quite do it for me. Ashley Wint

Re: Mutable vs immutable strings

2002-07-10 Thread Ashley Winters
# I decided $(-> $i { $i + 1 }).($i) was too obfuscated. You're welcome } } Wouldn't it be great to have something so incredibly slow? Code morphing is so 80's! Okay, I've had my headache-inducing thought for the evening. Yes, my Scheme interpreter written in Perl6 is coming along nicely. Muahaha! (kidding, obviously) Ashley Winters

Re: Mutable vs immutable strings

2002-07-10 Thread Ashley Winters
# $i is a PMC, still for @nums -> int $i {} # $i is in an Ix register now for @nums {}# will $_ be smart enough to 'int' itself? I hope so Yes, people will have to think about optimizing their code. It's not great, but it's not that onerous. It might be ni

Re: Perl 6 grammar progress?

2002-07-01 Thread Ashley Winters
On Sunday 30 June 2002 09:09 pm, Sean O'Rourke wrote: > On Sun, 30 Jun 2002, Ashley Winters wrote: > > I don't know how the grammars are going, and I'm not fit to write one > > myself, > > Hey, neither am I, but that hasn't stopped me from taking a stab o

Re: Perl 6 grammar progress?

2002-06-30 Thread Ashley Winters
n't know how the grammars are going, and I'm not fit to write one myself, but I wrote a list of variables I'll try to parse using any grammars which go by. Are all of these legal? I suppose that's more of a -language question. Ashley Winters # Variable access you will wan

RE: parrot rx engine

2002-01-31 Thread Ashley Winters
--- Brent Dax <[EMAIL PROTECTED]> wrote: > Tim Bunce: > # On Thu, Jan 31, 2002 at 05:15:49PM +, Graham Barr wrote: > # > # Especially as the perl6 rx engine will have to be able to > # work directly on > # non-trivial things like streams and generators ans suchlike. > > I have a suggestion si

parrot rx engine

2002-01-30 Thread Ashley Winters
fool, or an idiot? Discuss. Mostly, I'd like to hear how either Unicode character-ranges aren't deterministic at compile-time (I doubt that) or how crippling to performance this would be (and by implication how slow parrot will be) in either time or space. Ashley Winters __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com