Was: Re: Parrot contribution Is: Archiving IRC

2002-07-16 Thread Scott Walters
Btw, to the best of the ability of my backscroll, I'm trying to archive useful conversations on http://www.slowass.net/wiki/?ParrotVirtualMachine. If I miss something, feel free to add it. -scott On Sun, 14 Jul 2002, Dan Sugalski wrote: > At 10:09 AM +0100 7/14/02, Simon Wistow wrote: > >On S

RE: [PATCH] rx.dev

2002-07-16 Thread Melvin Smith
At 06:14 PM 7/16/2002 -0700, John Porter wrote: >Melvin Smith wrote: > > I put it temporarily in the root dir, which I know is wrong. > > Where should .dev files go, anyway? > >Actually, I think that's right. >..dev files live alongside their .c/.h siblings, no? Hmm, looking at the source direct

PARROT QUESTION (/nitpick)

2002-07-16 Thread T.O.G. of Spookware
OK, I've been playing with Parrot and reading the mailing list for a while. (My first post; whee!) 1) What's with the big mess in Parrot_readbc? Why not just start a pbc file with something like: #comment bytecode[7345]:\n <7345 bytes of bytecode> This way you wouldn't have to worry about where

loop and the super comma

2002-07-16 Thread Erik Steven Harrison
Long have I been a fan of giving pure Perl modules the power to change the rules and create a more built-in look, feel, and functionality. So, of course, I love %MY, I love real named parameters, I love the ability to create iterators that look just like native control structures. But while la

Re: Perl 6, The Good Parts Version

2002-07-16 Thread Mark J. Reed
On Tue, Jul 16, 2002 at 05:42:18PM -0400, Michael G Schwern wrote: > I don't know how Java and Python handle Unicode. Java has always been 100% Unicode from the ground up; it's in the spec. The fundamental char type is a 16-bit value, you can use any "letterlike" characters in identifiers, there's

Re: Quick Perl 6 regex question

2002-07-16 Thread Luke Palmer
On Tue, 16 Jul 2002, Brent Dax wrote: > I was reading through the Monastery, and I noticed a node (about the > line between what's considered Perl discussion and what's off-topic) > that had this regex in it: > > m:iw/how [do[es]?|can] [I|one] @tasks in @non_perl_languages/ > > (Yes, peop

[perl #820] [PATCH] byteorder.c

2002-07-16 Thread via RT
Applied, thanks!

[perl #825] [PATCH] Fix underflow error in fact_x_i

2002-07-16 Thread via RT
Applied, thanks..

[perl #821] [PATCH] Update hanoi.pasm to use new keyed ops

2002-07-16 Thread via RT
Applied, Thanks!

[perl #822] [PATCH] Fix segfault in intqueu

2002-07-16 Thread via RT
Applied, thanks!

[perl #825] [PATCH] Fix underflow error in fact_x_i

2002-07-16 Thread via RT
Applied.

[perl #792] [PATCH] add some ops to Perl PMC's

2002-07-16 Thread via RT
Applied.

Re: [PATCH] rx.dev

2002-07-16 Thread Josh Wilmes
Well, the .h files live elsewhere, but yeah, for now I think .dev files should live with the .c files. Unless someone has an alternative suggestion. I'll update "make check_source" and pdd07 to reflect this. --Josh At 18:14 on 07/16/2002 PDT, John Porter <[EMAIL PROTECTED]> wrote: > > Me

RE: [PATCH] rx.dev

2002-07-16 Thread John Porter
Melvin Smith wrote: > I put it temporarily in the root dir, which I know is wrong. > Where should .dev files go, anyway? Actually, I think that's right. ..dev files live alongside their .c/.h siblings, no? -- JohnDouglasPorter __ Do You Yahoo!?

RE: [PATCH] rx.dev

2002-07-16 Thread Melvin Smith
At 05:08 PM 7/15/2002 -0700, Stephen Rawls wrote: >Ok, I cleaned up the file a little bit, and added pod >declarations. Should be finalized or close to it at >least. If anyone likes it, I'll start working on >making a .dev file for some other files, and start >asking questions while I'm at it pr

Re: Streams vs. Descriptors

2002-07-16 Thread Melvin Smith
At 09:42 AM 7/16/2002 -0700, Damien Neil wrote: >On Mon, Jul 15, 2002 at 08:59:40PM -0400, Melvin Smith wrote: > > True async IO implementations allow other things besides just notifying > > the process when data is available. Things like predictive seeks, or > > bundling up multiple read/writes,

Re: Perl 6, The Good Parts Version

2002-07-16 Thread Michael G Schwern
On Wed, Jul 03, 2002 at 10:52:58PM +0100, Tim Bunce wrote: > Don't forget Apocalypse 5. > > Personally I believe the elegant and thorough integration of regular > expressions and backtracking into the large-scale logic of an > application is one of the most radical things about Perl 6. How does o

Quick Perl 6 regex question

2002-07-16 Thread Brent Dax
I was reading through the Monastery, and I noticed a node (about the line between what's considered Perl discussion and what's off-topic) that had this regex in it: m:iw/how [do[es]?|can] [I|one] @tasks in @non_perl_languages/ (Yes, people are already using Perl 6 regexes in text. :^) )

Re: Streams vs. Descriptors

2002-07-16 Thread John Porter
Nicholas Clark wrote: > ... PerlIO::subfile (treats a section > of a file as if it is a whole file - lets you read direct from a tar > on an uncompressed file stored in a zip file) Ah -- just like Virtual File Systems (VFS) from Tcl-land. Good idea! ('COURSE it's a good idea!) -- JohnDouglas

Re: vtables and multimethod dispatch

2002-07-16 Thread John Porter
David M. Lloyd wrote: > No, the point is that all this talk about type-space mm dispatch > depends on there *being* type space. Since there is currently > no inheritance to speak of then there really is no typespace so > all of this talk is moot, I agree; but you did express a concern earlier t

Re: Streams vs. Descriptors

2002-07-16 Thread Nicholas Clark
On Mon, Jul 15, 2002 at 12:16:29AM -0400, Melvin Smith wrote: > 2) Filters (or IO disciplines) - People have different opinions on what > these > even mean. To me it means a "layer" that can be pushed onto an IO stack > that may filter or transform the data and/or perform opaque actions, while >

Re: [perl #823] [PATCH] put numeric comparisons in the right order

2002-07-16 Thread Nicholas Clark
On Tue, Jul 16, 2002 at 07:42:25AM -0700, Sean O'Rourke wrote: > On Tue, 16 Jul 2002, Nicholas Clark wrote: > > > 5.8.0 does the full fun and games of integer or floating point comparison: > > > > perl5.8.0-64 -le '$a = ~0; $b = $a & ~1; printf "%x <=> %x\n", $a, $b; print $a ><=> $b; {use integ

[perl #825] [PATCH] Fix underflow error in fact_x_i

2002-07-16 Thread via RT
# New Ticket Created by Tony Payne # Please include the string: [perl #825] # in the subject line of all future correspondence about this issue. # http://bugs6.perl.org/rt2/Ticket/Display.html?id=825 > Conversion from a signed (int,float) to an unsigned int was causing underflow. Therefore

Re: vtables and multimethod dispatch

2002-07-16 Thread David M. Lloyd
On Tue, 16 Jul 2002, John Porter wrote: > > David M. Lloyd wrote: > > John Porter wrote: > > > The MM dispatch problem is pretty much solidly in > > > the realm of pmc inheritance, > > > > There _is_ no pmc inheritance right now. > > There's just a set of default functions. > > Call it what you w

Re: vtables and multimethod dispatch

2002-07-16 Thread John Porter
John Porter wrote: > The point is that this type schema is at the parrot level, > and is not the concern of a user-level language like perl Of course this is not really true; perl scalars, arrays, and hashes (etc.?) are implemented as PMCs under the hood, so in that sense they are related by wha

Re: vtables and multimethod dispatch

2002-07-16 Thread John Porter
David M. Lloyd wrote: > John Porter wrote: > > The MM dispatch problem is pretty much solidly in > > the realm of pmc inheritance, > > There _is_ no pmc inheritance right now. > There's just a set of default functions. Call it what you want. The point is that this type schema is at the parrot

Re: vtables and multimethod dispatch

2002-07-16 Thread David M. Lloyd
On Mon, 15 Jul 2002, John Porter wrote: > "David M. Lloyd" wrote: > > Do we really want *two* inheritance trees per object > > in Perl 6? One language-level and one PMC-level? > > Well, parrot != perl6, so I don't see a problem. Ugh. > The MM dispatch problem is pretty much solidly in > the re

Re: assembler key syntax behaviour

2002-07-16 Thread John Porter
> But what about setting size on multdimensional PMC's > would it also be: > set P0,5,5,5 > assembler.pl would try to call > set_p_ic_ic_ic > This will break things when having N dimensions.. I don't see how it could possible be workable to have all the indices listed out in the instruct

Re: KEY* and multidim array access thoughts

2002-07-16 Thread John Porter
Scott Walters wrote: > * PMC's be accepted in place of or in addition to KEY *'s > in variants taking multidim subscripts. In particular, a PMC containing a vector (aka tuple, aka array) of indices, one per dimension. As in so many other cases, the array object and the key vector object shoul

KEY* and multidim array access thoughts

2002-07-16 Thread Scott Walters
Still trying to solve the assembly/PMC vector interface. Accosted Dan on IRC re: multidimentional indices. Looking for thoughts on this. Working under assumptions: * There is no assembler syntax yet, or atleast not final. * Hardcoding KEY *'s into the assembly is the only way so far. * Typica

Re: Grammar (take V.00I_0I)

2002-07-16 Thread Luke Palmer
On Tue, 16 Jul 2002, John Porter wrote: > In his P6 Summary for 2002-07-14, in section > "Perl 6 grammar, take 5", Piers says: > > someone pointed out that [the grammar] had a problem > with code like > >{ some_function_returning_a_hash() } > > Should it give a closure? Or

Re: Streams vs. Descriptors

2002-07-16 Thread Damien Neil
On Tue, Jul 16, 2002 at 11:35:10AM -0700, John Porter wrote: > Damien Neil wrote: > > I'm not familiar with "predictive seeks", > > can you give a quick explanation? > > It's very much like predictive loading of the instruction cache > in a cpu. It makes a heuristic guess that since you just rea

Re: Grammar (take V.00I_0I)

2002-07-16 Thread John Porter
In his P6 Summary for 2002-07-14, in section "Perl 6 grammar, take 5", Piers says: someone pointed out that [the grammar] had a problem with code like { some_function_returning_a_hash() } Should it give a closure? Or a hash ref? Larry hasn't commented so far. I couldn'

Re: Streams vs. Descriptors

2002-07-16 Thread John Porter
Damien Neil wrote: > I'm not familiar with "predictive seeks", > can you give a quick explanation? It's very much like predictive loading of the instruction cache in a cpu. It makes a heuristic guess that since you just read 1000 bytes in order, you're probably going to want to read the next 10

Re: Streams vs. Descriptors

2002-07-16 Thread Damien Neil
On Mon, Jul 15, 2002 at 08:59:40PM -0400, Melvin Smith wrote: > True async IO implementations allow other things besides just notifying > the process when data is available. Things like predictive seeks, or > bundling up multiple read/writes, etc. aren't doable with select/poll loops. > And the ai

Re: hyper operators - appalling proposal

2002-07-16 Thread Dan Sugalski
At 8:30 AM -0400 7/16/02, Karl Glazebrook wrote: >I still feel this adds yet another layer of inconsistency and >confusion. I can't look at a piece of code and know what it does, >without referring up N lines to the top of the scripts. > >How is the infinite loop problem any different from other

Re: [perl #823] [PATCH] put numeric comparisons in the right order

2002-07-16 Thread Sean O'Rourke
On Tue, 16 Jul 2002, Nicholas Clark wrote: > 5.8.0 does the full fun and games of integer or floating point comparison: > > perl5.8.0-64 -le '$a = ~0; $b = $a & ~1; printf "%x <=> %x\n", $a, $b; print $a <=> >$b; {use integer; print $a <=> $b}' > <=> fffe > 1 > 1 > >

Re: hyper operators - appalling proposal

2002-07-16 Thread Karl Glazebrook
I still feel this adds yet another layer of inconsistency and confusion. I can't look at a piece of code and know what it does, without referring up N lines to the top of the scripts. How is the infinite loop problem any different from other Halting problems? Karl Christian Soeller wrote: >

assembler key syntax behaviour

2002-07-16 Thread Josef Höök
I have a couple of question regarding using keyed access in assembler. Lets say we create an Perlarray: new P0, .PerlArray set P0,5 Array with size 5. assembler.pl will call set_p_ic ( ? maybe im wrong here ) But what about setting size on multdimensional PMC's would it also be: set P0,5,5

Re: [perl #823] [PATCH] put numeric comparisons in the right order

2002-07-16 Thread Nicholas Clark
On Mon, Jul 15, 2002 at 10:17:51PM -0700, John Porter wrote: > > Sean O'Rourke wrote: > > ... all it buys you is a few bits of precision when your ints > > and floats are both 64-bit, and slower comparisons all the time. > > IMHO it's a wash, so I did it this way. > > I would point out that inte

Some more documentation

2002-07-16 Thread Alberto Manuel Brandão Simões
Hi On my usual place (http://natura.di.uminho.pt/~albie/parrot) I put some more documentation: - PerlString examples - PMC Writting stub (will be, someday, a tutorial for writting PMC's. Meanwhile, I'm learning how to write them :)) Regards Alberto -- Alberto Man

[patch] win32 io

2002-07-16 Thread Daniel Ritz
* win32 can flush it's file buffers (FlushFileBuffers()) * SetFilePointer knows about whence, win32 constants (values, not names) are the same as in linux. remarks: FlushFileBuffers doesn't work for console handles, ms help file says: Windows NT: The function fails if hFile is a handle to cons

RE: [PATCH] rx.dev

2002-07-16 Thread Stephen Rawls
Ok, I cleaned up the file a little bit, and added pod declarations. Should be finalized or close to it at least. If anyone likes it, I'll start working on making a .dev file for some other files, and start asking questions while I'm at it probably :) Stephen Rawls

Perl Documentation Project (PDP) BOF

2002-07-16 Thread Casey West
[Note: I've copied a few lists, but all replies should go to the perl-documentation list. Apologies if you receive this message more than too many times.] Open Source Convention (aka The Perl Conference (or reverse())) Date: 07/22/2002 Time: 8:00pm - 10:00pm Location: Grande Ballroom A