Re: Bounds checking in extension API

2003-10-17 Thread Simon Glover
On Fri, 17 Oct 2003, Dan Sugalski wrote: > On Fri, 17 Oct 2003, Simon Glover wrote: > > > > > What, if any, validation of their input should the register access > > functions in the extension API do? Currently, they don't do any, > > which means that you can create a buffer overflow simply by

Re: Bounds checking in extension API

2003-10-17 Thread Dan Sugalski
On Fri, 17 Oct 2003, Simon Glover wrote: > > On Fri, 17 Oct 2003, Dan Sugalski wrote: > > > On Fri, 17 Oct 2003, Simon Glover wrote: > > > > > > > > What, if any, validation of their input should the register access > > > functions in the extension API do? Currently, they don't do any, > > > wh

Another extension API question

2003-10-17 Thread Simon Glover
How do we create a Parrot_STRING in an extension? Parrot_Ints and Parrot_Floats are easy, since they're just declarations, and for PMCs there's Parrot_PMC_new, but there doesn't appear to be an equivalent for strings. Simon

Re: Another extension API question

2003-10-17 Thread Dan Sugalski
On Fri, 17 Oct 2003, Simon Glover wrote: > > How do we create a Parrot_STRING in an extension? Parrot_Ints > and Parrot_Floats are easy, since they're just declarations, and > for PMCs there's Parrot_PMC_new, but there doesn't appear to be > an equivalent for strings. We don't yet -- it's an

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Dan Sugalski
On Fri, 17 Oct 2003, Leopold Toetsch wrote: > Dan Sugalski <[EMAIL PROTECTED]> wrote: > > At 1:07 AM +0200 10/17/03, Leopold Toetsch wrote: > >> > >>I don't know yet, what are the goals of this patch. There is not any > >>sign in the list, that ops should be numbered like that and so on ... > > >

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Dan Sugalski
On Fri, 17 Oct 2003, Juergen Boemmels wrote: > Why not this way: > > Have a small number of _real_ core.ops which have fixed assigned > numbers below say 256. This ops never change during the lifetime of > parrot. All other libs are inited (not necessary loaded) at byte-code > loadtime. The byteco

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Melvin Smith
At 08:55 AM 10/17/2003 -0400, Dan Sugalski wrote: On Fri, 17 Oct 2003, Juergen Boemmels wrote: > Why not this way: > > Have a small number of _real_ core.ops which have fixed assigned > numbers below say 256. This ops never change during the lifetime of > parrot. All other libs are inited (not nec

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Dan Sugalski
On Fri, 17 Oct 2003, Melvin Smith wrote: > At 12:53 PM 10/17/2003 +0200, Juergen Boemmels wrote: > >Robert Spier <[EMAIL PROTECTED]> writes: > > > > > > The goals are to assign permanent numbers to the opcodes. What the > > > > numbers are is generally irrelevant, but they must be constant across

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Dan Sugalski
On Fri, 17 Oct 2003, Melvin Smith wrote: > At 08:55 AM 10/17/2003 -0400, Dan Sugalski wrote: > >On Fri, 17 Oct 2003, Juergen Boemmels wrote: > > > > > Why not this way: > > > > > > Have a small number of _real_ core.ops which have fixed assigned > > > numbers below say 256. This ops never change d

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Leopold Toetsch
Juergen Boemmels <[EMAIL PROTECTED]> wrote: > Have a small number of _real_ core.ops which have fixed assigned > numbers below say 256. The problem with this approach is the JIT/EXEC subsystem. Dynamically loaded oplibs and JIT don't play together. To make this work, it would need probably a tota

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Leopold Toetsch
Melvin Smith <[EMAIL PROTECTED]> wrote: > I've asked this before: Please, someone give me an example > where a dynamic opcode lib gives us something > that a well designed set of core ops and an extension > interface does not. Can you explain the difference? Dynamic opcode libraries are extension

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Dan Sugalski
On Fri, 17 Oct 2003, Leopold Toetsch wrote: > Juergen Boemmels <[EMAIL PROTECTED]> wrote: > > > Have a small number of _real_ core.ops which have fixed assigned > > numbers below say 256. > > The problem with this approach is the JIT/EXEC subsystem. Dynamically > loaded oplibs and JIT don't play t

[RFC] PIR changes coming

2003-10-17 Thread Melvin Smith
PIR next phase plans: (Note: I'd prefer to stay away from AST discussion here, I'm aware that we eventually wish to pass AST directly to IMCC, but I'd like to shelve that for a different thread) 1. .class, .field and .method directive support These will have to change the packfile forma

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > On Fri, 17 Oct 2003, Leopold Toetsch wrote: >> *If* we renumber opcodes, then lib/Parrot/OpLib/core.pm should be sorted. >> This file is the base (and holds the numbering) of all utilities using >> ops. When this file is ordered to our needs, *no* other ch

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Melvin Smith
At 02:49 PM 10/17/2003 +0200, Leopold Toetsch wrote: Melvin Smith <[EMAIL PROTECTED]> wrote: > I've asked this before: Please, someone give me an example > where a dynamic opcode lib gives us something > that a well designed set of core ops and an extension > interface does not. Can you explain th

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Juergen Boemmels
Leopold Toetsch <[EMAIL PROTECTED]> writes: > Juergen Boemmels <[EMAIL PROTECTED]> wrote: > > > Have a small number of _real_ core.ops which have fixed assigned > > numbers below say 256. > > The problem with this approach is the JIT/EXEC subsystem. Dynamically > loaded oplibs and JIT don't play

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 1:07 AM +0200 10/17/03, Leopold Toetsch wrote: >> >>I don't know yet, what are the goals of this patch. There is not any >>sign in the list, that ops should be numbered like that and so on ... > The goals are to assign permanent numbers to the opcodes.

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Juergen Boemmels
Robert Spier <[EMAIL PROTECTED]> writes: > > The goals are to assign permanent numbers to the opcodes. What the > > numbers are is generally irrelevant, but they must be constant across > > all systems for the lifetime of parrot. > > At first glance, gut reaction, that seems "really hard"(tm) a

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Melvin Smith
At 12:53 PM 10/17/2003 +0200, Juergen Boemmels wrote: Robert Spier <[EMAIL PROTECTED]> writes: > > The goals are to assign permanent numbers to the opcodes. What the > > numbers are is generally irrelevant, but they must be constant across > > all systems for the lifetime of parrot. > > At first g

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Dan Sugalski
On Thu, 16 Oct 2003, Robert Spier wrote: > > The goals are to assign permanent numbers to the opcodes. What the > > numbers are is generally irrelevant, but they must be constant across > > all systems for the lifetime of parrot. > > At first glance, gut reaction, that seems "really hard"(tm) and

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > Put them *back*, please, unless you're going to fix core.pm. Done. op2pm.pl now has the renumbering. Its simpler and cleaner. Now, that 1237 opcodes are fixed numbered, shall we remove the finger-printing? Currently we just don't read PBCs, when the fing

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Dan Sugalski
On Fri, 17 Oct 2003, Leopold Toetsch wrote: > Dan Sugalski <[EMAIL PROTECTED]> wrote: > > > Put them *back*, please, unless you're going to fix core.pm. > > Done. op2pm.pl now has the renumbering. Its simpler and cleaner. > > Now, that 1237 opcodes are fixed numbered, shall we remove the > finger-

The Pumpking is dead, long live the Pumpking!

2003-10-17 Thread Dan Sugalski
Hey folks. It's that time of year again, when the patch pumpkin passes paws. Hands, rather. Steve Fink now joins the ranks of Parrot Pumpkings Emeritus, having shepherded a number of releases out the door. We wish him a happy retirement and hope the nervous twitches stop soon. Replacing him as th

Re: Fixed opcode numbering infrastructure in

2003-10-17 Thread Juergen Boemmels
Dan Sugalski <[EMAIL PROTECTED]> writes: > On Fri, 17 Oct 2003, Leopold Toetsch wrote: > > > Dan Sugalski <[EMAIL PROTECTED]> wrote: > > > > > Put them *back*, please, unless you're going to fix core.pm. > > > > Done. op2pm.pl now has the renumbering. Its simpler and cleaner. > > > > Now, that 12

Bounds checking in extension API

2003-10-17 Thread Simon Glover
What, if any, validation of their input should the register access functions in the extension API do? Currently, they don't do any, which means that you can create a buffer overflow simply by using a register number >31 or <0; eg, Parrot_set_intreg(interpreter, 1, 100); reli

Re: Bounds checking in extension API

2003-10-17 Thread Dan Sugalski
On Fri, 17 Oct 2003, Simon Glover wrote: > > What, if any, validation of their input should the register access > functions in the extension API do? Currently, they don't do any, > which means that you can create a buffer overflow simply by using > a register number >31 or <0; eg, > >Parro

Re: The Pumpking is dead, long live the Pumpking!

2003-10-17 Thread Jim Cromie
Dan Sugalski wrote: Hey folks. It's that time of year again, when the patch pumpkin passes paws. Hands, rather. Steve Fink now joins the ranks of Parrot Pumpkings Emeritus, having shepherded a number of releases out the door. We wish him a happy retirement and hope the nervous twitches stop soon.

Re: The Pumpking is dead, long live the Pumpking!

2003-10-17 Thread Simon Glover
On Fri, 17 Oct 2003, Jim Cromie wrote: > Dan Sugalski wrote: > > >Hey folks. > > > >It's that time of year again, when the patch pumpkin passes paws. Hands, > >rather. Steve Fink now joins the ranks of Parrot Pumpkings Emeritus, > >having shepherded a number of releases out the door. We wish him

[perl #24239] [PATCH] OpenBSD support

2003-10-17 Thread Adam Thomason
# New Ticket Created by "Adam Thomason" # Please include the string: [perl #24239] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=24239 > Two issues while building parrot on OpenBSD 3.3/i386: * arpa/inet.h doesn't include

Re: The Pumpking is dead, long live the Pumpking!

2003-10-17 Thread Stéphane Payrard
On Fri, Oct 17, 2003 at 06:13:24PM -0600, Jim Cromie wrote: > > 1st the PatchMonster, now the Pumpking. > we watch in awe as the World Domination Plan unfolds. > > whats next, the WhiteHouse ? Schwarzenegger, now Tötsch... there is a pattern here, but AEIOU is more ambitious than merely occupyi

Re: [perl #24239] [PATCH] OpenBSD support

2003-10-17 Thread Simon Glover
On Fri, 17 Oct 2003, Adam Thomason wrote: > # New Ticket Created by "Adam Thomason" > # Please include the string: [perl #24239] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt2/Ticket/Display.html?id=24239 > > > Two issues while building parr

Re: Phalanx / CPANTS / Kwalitee

2003-10-17 Thread Nicholas Clark
On Mon, Oct 13, 2003 at 10:28:29AM +0200, Thomas Klausner wrote: > Obviously, this list is far from complete, which is why I request some > feedback on more hints for Kwalitee from all of you! Something I'd be curious about: Modules with lower case names which aren't pragmas. (although how you

Re: Phalanx / CPANTS / Kwalitee

2003-10-17 Thread Thomas Klausner
Hi! On Fri, Oct 17, 2003 at 10:09:04PM +0100, Nicholas Clark wrote: > Something I'd be curious about: > Modules with lower case names which aren't pragmas. > > (although how you determine this is hard) Well, here's a list of lowercase dist on CPAN (238 dists). Quite a lot of those are in fact

Re: Phalanx / CPANTS / Kwalitee

2003-10-17 Thread Rafael Garcia-Suarez
Thomas Klausner wrote in perl.qa : > > Well, here's a list of lowercase dist on CPAN (238 dists). Quite a lot of > those are in fact real distributions (eg. perl, parrot). In fact I think > that perl itself shouldn't be part of CPANTS > > I've no clue on how to figure out if something is a pragm

Re: Phalanx / CPANTS / Kwalitee

2003-10-17 Thread Elizabeth Mattijsen
At 23:20 +0200 10/17/03, Thomas Klausner wrote: On Fri, Oct 17, 2003 at 10:09:04PM +0100, Nicholas Clark wrote: > Something I'd be curious about: > Modules with lower case names which aren't pragmas. > (although how you determine this is hard) Well, here's a list of lowercase dist on CPAN (238

Re: Phalanx / CPANTS / Kwalitee

2003-10-17 Thread Thomas Klausner
Hi! On Fri, Oct 17, 2003 at 09:42:21PM -, Rafael Garcia-Suarez wrote: > Thomas Klausner wrote in perl.qa : > > > > Well, here's a list of lowercase dist on CPAN (238 dists). Quite a lot of > > those are in fact real distributions (eg. perl, parrot). In fact I think > > that perl itself should