Re: The Pie-thon benchmark

2004-06-30 Thread Graham Barr
On 24 Jun 2004, at 21:49, Piers Cawley wrote: Dan Sugalski wrote: it's not exactly exciting watching two people hit return three times in front of a roomful of people. Although watching two people hit each other in the face with custard pies three times in front of a roomful of people may be a lot

DoD ordering (was Re: Timely object destruction)

2003-06-04 Thread Graham Barr
On Tue, Jun 03, 2003 at 07:24:04PM -0400, Benjamin Goldberg wrote: IIRC, DoD normally happens something vaguely like this: for my $p (@all_pmcs) { clear_is_live_flag($p); } our $traverse; sub set_is_live_flag($p) { if( !test_is_live_flag($p) and

Re: Objects and classes, try 3

2003-03-10 Thread Graham Barr
On Sun, Mar 09, 2003 at 02:08:02PM -0500, Dan Sugalski wrote: At 1:52 PM -0500 3/9/03, Uri Guttman wrote: DS == Dan Sugalski [EMAIL PROTECTED] writes: DS * Objects have properties you can fetch and store by name DS * Objects have methods you can call DS * Objects have

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

2003-02-22 Thread Graham Barr
On Fri, Feb 21, 2003 at 04:34:42PM -0500, Dan Sugalski wrote: If A isa B, we certainly wouldn't want to call A's AUTOLOAD on a method before we looked to see if B had a concrete instance of that method. Right. The best you could probably do is note where you found the first AUTOLOAD so that

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

2003-02-07 Thread Graham Barr
On Fri, Feb 07, 2003 at 09:39:14AM -0800, Dan Sugalski wrote: It's a little more confusing that that. When I said only one foo method, it was in contrast to attributes, where an attribute of a particular name may appear in an object multiple times--since attributes are class-private, each

Re: [perl #20597] [PATCH] packfile #6

2003-01-29 Thread Graham Barr
On Wed, Jan 29, 2003 at 03:41:33PM +, Nicholas Clark wrote: On Wed, Jan 29, 2003 at 07:36:07AM -0800, Robert Spier wrote: Also I can't work out how to search the list archive at develooper.com. Patches welcome. (Really. I have several archive management tasks that need to get

Re: [RFC] How are compound keys with a PerlHash intended to work?

2002-09-18 Thread Graham Barr
On Wed, Sep 18, 2002 at 10:15:20AM +0200, Dan Sugalski wrote: I've been thinking that we do need to have an extra flag to note whether a key element should be taken as an array or hash lookup element. The integer 1 isn't quite enough, since someone may have done a %foo{1} and we only have

Re: chr, ord etc

2002-09-10 Thread Graham Barr
On Tue, Sep 10, 2002 at 06:01:23PM +0200, Peter Gibbs wrote: Attached is a sample implementation of a minor subset of pack/unpack functionality. Code is not optimised in any way, and error checking is basically non-existent. Opcodes are: convert Sx, Iy, Iz - pack integer Iy into

Re: [perl #16690] Disable t/src under testj

2002-08-22 Thread Graham Barr
On Wed, Aug 21, 2002 at 07:17:22AM -0700, Michael G Schwern wrote: On Wed, Aug 21, 2002 at 02:11:29PM +, Daniel Grunblatt wrote: Apart from that, does anyone know why test doesn't run on OpenBSD? I get: ar: illegal option -- s Gnu-ism? What ar does OpenBSD use? Obviously and

Re: resize_array (PerlArray)

2002-08-01 Thread Graham Barr
On Thu, Aug 01, 2002 at 03:42:19PM -0400, Dan Sugalski wrote: At 5:28 PM +0200 8/1/02, Aldo Calpini wrote: fetching an element out of bound changes the length of the array. but should this really happen? why does perlarray.pmc act like this: Because that's the way Perl's arrays work. Joys

Re: negative index in arrays

2002-08-01 Thread Graham Barr
On Thu, Aug 01, 2002 at 02:11:27PM -0700, Stephen Rawls wrote: It should pass them on to the PMC directly, which should then handle them properly. So, if ix -SELF-cache.int_val then the code tries to use a negative value to access the array element in the C code. This is obviously

Re: negative index in arrays

2002-08-01 Thread Graham Barr
On Thu, Aug 01, 2002 at 05:42:12PM -0400, Dan Sugalski wrote: At 10:24 PM +0100 8/1/02, Graham Barr wrote: On Thu, Aug 01, 2002 at 02:11:27PM -0700, Stephen Rawls wrote: It should pass them on to the PMC directly, which should then handle them properly. So, if ix -SELF

Re: I'm back...

2002-07-30 Thread Graham Barr
On Tue, Jul 30, 2002 at 11:08:46AM -0700, Sean O'Rourke wrote: On Tue, 30 Jul 2002, Dan Sugalski wrote: I need to get Larry to nail some things down. On the one hand, he's said that chained comparisons evaluate their parameters just once. That argues for moving the values to N or S

Re: [PRE-RELEASE] Release of 0.0.7 tomorrow evening

2002-07-22 Thread Graham Barr
On Mon, Jul 22, 2002 at 11:14:15AM +0100, Sam Vilain wrote: Sean O'Rourke [EMAIL PROTECTED] wrote: languages/perl6/README sort of hides it, but it does say that If you have Perl = 5.005_03, $a += 3 may fail to parse. I guess we can upgrade that to if you have 5.6, you lose. I notice

Re: Copy-on-write strings

2002-05-10 Thread Graham Barr
On Fri, May 10, 2002 at 12:12:41PM -0400, Dan Sugalski wrote: At 5:38 PM +0200 5/10/02, Peter Gibbs wrote: The result is that the last header of a COWed string will still believe that the buffer is shared until a GC collection run occurs, and therefore could result in buffers being copied

Re: PMCs, setting, and suchlike things

2002-02-14 Thread Graham Barr
On Thu, Feb 14, 2002 at 02:10:20PM +, Dave Mitchell wrote: 2. If so, how do we distinguish between two PMCs, both of whose vtable pointers currently point to the 'Dog' vtable, but one of whom has been delared as type Dog and so should never have it's vatble pointer updated, and the other

Re: parrot rx engine

2002-01-31 Thread Graham Barr
On Thu, Jan 31, 2002 at 08:54:21AM -0800, Brent Dax wrote: Peter Haworth: # On Wed, 30 Jan 2002 17:45:58 +, Graham Barr wrote: # On Wed, Jan 30, 2002 at 09:32:49AM -0800, Brent Dax wrote: # # rx_setprops P0, i, 2 # # branch $start0

Re: parrot rx engine

2002-01-30 Thread Graham Barr
On Wed, Jan 30, 2002 at 09:32:49AM -0800, Brent Dax wrote: # rx_setprops P0, i, 2 # branch $start0 # $advance: # rx_advance P0, $fail # $start0: # rx_literal P0, a, $advance # # First, we set the rx engine to

Re: on parrot strings

2002-01-19 Thread Graham Barr
I belive IBM use inversion lists in thier ICU library for sets of unicode characters. Graham. On Sat, Jan 19, 2002 at 07:08:25PM +0200, Jarkko Hietaniemi wrote: Honour where honour is due: I've got some questions about inversion lists. Where I saw them mentioned by that name were some drafts

Re: Some random design notes

2002-01-09 Thread Graham Barr
On Tue, Jan 08, 2002 at 06:38:02PM -0500, Dan Sugalski wrote: # Attributes are done as a hash of hashes. Each interpreter has a # pointer to an attribute hash, whose keys are the attribute names. The # values will be hash pointers. Those hashes will each have a key which # is a PMC pointer

Re: An overview of the Parrot interpreter

2001-09-04 Thread Graham Barr
On Tue, Sep 04, 2001 at 03:03:04PM -0400, Dan Sugalski wrote: At 01:58 PM 9/4/2001 -0500, Garrett Goebel wrote: From: Dan Sugalski [mailto:[EMAIL PROTECTED]] At 10:32 AM 9/4/2001 +0100, Piers Cawley wrote: Can you see any use of a sub knowing it was called via a method call? So that

Re: PDD 4, version 1.2.

2001-07-03 Thread Graham Barr
On Tue, Jul 03, 2001 at 10:15:02AM -0400, Uri Guttman wrote: DS == Dan Sugalski [EMAIL PROTECTED] writes: DS We're going to use a copying collector. When the string gets DS copied as part of a compaction run things'll get cleaned up DS appropriately. (Not that there's really any

Re: PDD 4, version 1.2.

2001-07-02 Thread Graham Barr
On Mon, Jul 02, 2001 at 04:12:31PM -0400, Dan Sugalski wrote: At 09:07 PM 7/2/2001 +0100, Graham Barr wrote: On Mon, Jul 02, 2001 at 03:52:34PM -0400, Dan Sugalski wrote: At 08:36 PM 7/2/2001 +0100, Simon Cozens wrote: On Mon, Jul 02, 2001 at 03:00:54PM -0400, Dan Sugalski wrote

Re: ~ for concat / negation (Re: The Perl 6 Emulator)

2001-06-21 Thread Graham Barr
On Thu, Jun 21, 2001 at 01:41:28PM -0700, Nathan Wiger wrote: * Simon Cozens [EMAIL PROTECTED] [06/14/2001 15:16]: OK, I've been teasing people about this for weeks, and it's time to stop. This is the current state of the Perl 6 emulator; it applies most things that Damian talked about

Re: Stacks, registers, and bytecode. (Oh, my!)

2001-06-05 Thread Graham Barr
On Mon, Jun 04, 2001 at 06:04:10PM -0700, Larry Wall wrote: Well, other languages have explored that option, and I think that makes for an unnatural interface. If you think of regexes as part of a larger language, you really want them to be as incestuous as possible, just as any other part

Re: Stacks, registers, and bytecode. (Oh, my!)

2001-06-05 Thread Graham Barr
On Tue, Jun 05, 2001 at 03:31:24PM -0500, David L. Nicol wrote: Graham Barr wrote: I think there are a lot of benefits to the re engine not to be separate from the core perl ops. So does it start with a split(//,$bound_thing) or does it use substr(...) with explicit offsets? Eh

Re: PDD 2nd go: Conventions and Guidelines for Perl Source Code

2001-05-30 Thread Graham Barr
On Wed, May 30, 2001 at 04:23:58PM +0200, H.Merijn Brand wrote: On Wed 30 May 2001 16:12, Dave Mitchell [EMAIL PROTECTED] wrote: KR style for indenting control constructs: ie the closing C} should line up with the opening Cif etc. =item * When a conditional spans

Re: PDD 2nd go: Conventions and Guidelines for Perl Source Code

2001-05-29 Thread Graham Barr
On Tue, May 29, 2001 at 04:48:59PM -0400, Dan Sugalski wrote: 1) The indentation should be all tabs or all spaces. No mix, it's a pain. (As has been already pointed out) 4 column indent per level, all spaces. Can you explain why you think it is a pain. I would say converting between all tabs

Re: Stacks registers

2001-05-23 Thread Graham Barr
On Wed, May 23, 2001 at 06:06:26PM +0100, Simon Cozens wrote: On Wed, May 23, 2001 at 12:59:01PM -0400, Dan Sugalski wrote: Should Parrot be a register or stack-based system, and if a register-based one, should we go with typed registers? Register based. Untyped registers; I'm hoping

Re: Please shoot down this GC idea...

2001-02-14 Thread Graham Barr
On Wed, Feb 14, 2001 at 03:04:40PM -0500, Dan Sugalski wrote: At 05:57 PM 2/14/2001 -0300, Branden wrote: Simon Cozens wrote: On Wed, Feb 14, 2001 at 11:38:58AM -0800, Damien Neil wrote: sub do_stuff { ... } { my $fh = IO::File-new("file"); do_stuff($fh);

Re: Please shoot down this GC idea...

2001-02-14 Thread Graham Barr
On Wed, Feb 14, 2001 at 03:38:55PM -0500, Dan Sugalski wrote: At 08:29 PM 2/14/2001 +, Graham Barr wrote: On Wed, Feb 14, 2001 at 03:04:40PM -0500, Dan Sugalski wrote: At 05:57 PM 2/14/2001 -0300, Branden wrote: Simon Cozens wrote: On Wed, Feb 14, 2001 at 11:38:58AM -0800, Damien

Re: ANNOUNCE: Inline 0.23 (Mix Perl and C w/o XS)

2000-08-18 Thread Graham Barr
On Thu, Aug 17, 2000 at 05:26:18PM -0400, Sam Tregar wrote: On Thu, 17 Aug 2000, Nick Ing-Simmons wrote: Simon Cozens [EMAIL PROTECTED] writes: Wow. I'm sold. Can this be how we should be doing XS in Perl 6? So we now run equivalent of xsubpp and cc every time script is run? No. The

Re: Threaded In-Line Code (was Re: Typed Intermediate Language)

2000-08-15 Thread Graham Barr
On Tue, Aug 15, 2000 at 02:03:12PM +1000, Jeremy Howard wrote: The PDL team are now examining how to incorporate these kinds of features into perl 6. I'm also interested in seeing how to implement things like (from RFC 82) quote @b = (1,2,3); @c = (2,4,6); @d = (-2,-4,-6); $sum

Re: Method call optimization.

2000-08-09 Thread Graham Barr
On Wed, Aug 09, 2000 at 10:01:46AM -0400, Chaim Frenkel wrote: "NI" == Nick Ing-Simmons [EMAIL PROTECTED] writes: NI So having the object carry around a (pointer to a) table to methods NI has merit. But how to index that table? Computing the union of all possible NI method names for all

Re: Method call optimization.

2000-08-09 Thread Graham Barr
On Wed, Aug 09, 2000 at 11:53:56AM -0400, Chaim Frenkel wrote: "GB" == Graham Barr [EMAIL PROTECTED] writes: GB On Wed, Aug 09, 2000 at 10:01:46AM -0400, Chaim Frenkel wrote: For the "my Dog $spot" case, that's not an issue, compile time resolution. GB And why wou

Re: pramgas as compile-time-only

2000-08-08 Thread Graham Barr
On Mon, Aug 07, 2000 at 02:23:08PM -0400, Chaim Frenkel wrote: "DS" == Dan Sugalski [EMAIL PROTECTED] writes: DS At 06:37 AM 8/7/00 -0400, Chaim Frenkel wrote: Are there any (p5p) pragmas that have a runtime effect? DS strict, for one. Warnings for another. Please explain how these

Re: RFC 38 (v1) Standardise Handling Of Abnormal Numbers

2000-08-07 Thread Graham Barr
On Sat, Aug 05, 2000 at 11:55:33PM -0400, Chaim Frenkel wrote: I was thinking of RFC'ing tri-state logic. Would it be worthwhile to make it seperate or to extend your RFC? I had mantioned this before, I forget who to. I think it should be possible, but probably via a pragma; use tristate;

Re: pramgas as compile-time-only

2000-08-07 Thread Graham Barr
On Mon, Aug 07, 2000 at 12:03:36PM -0400, Dan Sugalski wrote: I've been thinking we could have a "state change" op that would selectively and lexically alter the appropriate state variable (warnings, stricture, shell, taint checking, whatever) on the fly. Each op would check the current

Re: RFC Archive

2000-08-03 Thread Graham Barr
On Wed, Aug 02, 2000 at 10:09:04PM -0600, Nathan Torkington wrote: In the future, if you want to submit an RFC mail it to [EMAIL PROTECTED] only. The automated process will send it to the correct list as well as to -announce. This will also prevent perl6-librarian being CC:ed on followups.

Re: inline mania

2000-08-02 Thread Graham Barr
On Wed, Aug 02, 2000 at 05:39:19PM +0100, Tim Bunce wrote: On Wed, Aug 02, 2000 at 12:05:20PM -0400, Dan Sugalski wrote: Reference counting is going to be a fun one, that's for sure. I'd like the interface to be something like: stat = perl_get_value(sv *, int what, destination)

Re: RFC: On-the-fly tainting via $^T

2000-08-02 Thread Graham Barr
On Wed, Aug 02, 2000 at 11:29:40AM -0400, Dan Sugalski wrote: I was figuring the taint/notaint pragma would control taint checking, while -T would control taint setting. Probably not the best way--might be worth unconditionally setting the taint status so a use/no taint would do the right