Notifications

2003-08-29 Thread Dan Sugalski
Apparently this never made it out, or it went missing, or something, but it's important so it bears repeating. Parrot is going to have a notification system built into it. This will ride on top of the vtable overloading and event system. What is a notification system? Well, what it is is a

Re: [RfC] constant PMCs and classes

2003-08-29 Thread Benjamin Goldberg
Leopold Toetsch wrote: We currently have constant Key and Sub PMCs both created from the packfile at load time. They live in the constant_table pointing to a constant PMC pool. But we need more. We have allover the core code like this: string_from_cstring(interpreter, pIt, 0)

Re: [RfC] constant PMCs and classes

2003-08-29 Thread Benjamin Goldberg
Juergen Boemmels wrote: Leopold Toetsch [EMAIL PROTECTED] writes: Benjamin Goldberg [EMAIL PROTECTED] wrote: #define PARROT_DECLARE_STATIC_STRING(name, cstring) \ [ big snip ] While Juergen's original or your proposal are fine, they don't work (or not as proposed). First

Re: What the heck is active data?

2003-08-29 Thread Benjamin Goldberg
Dan Sugalski wrote: I've talked about this before and generally I've assumed that people know what I'm talking about, but that's not true anymore, so an explanation of this is in order. Active Data is data that takes some active role in its use--reading, writing, modifying, deleting, or

MSVC++ complaints

2003-08-29 Thread Vladimir Lipskiy
d:\build\parrot\include\parrot\interpreter.h(40) : error C2040: 'Parrot_Interp' : 'struct Parrot_Interp *' differs in levels of indirection from 'struct Parrot_Interp' My compiler doesn't like the following: typedef struct Parrot_Interp *Parrot_Interp; in interpreter.h. It's a blame practice

Re: mission haiku

2003-08-29 Thread Zach Lipton
In honor of Schwern, Refactoring: good! Testing is even better QA is job 1 Zach On 8/27/03 4:14 PM, Michael G Schwern [EMAIL PROTECTED] wrote: On Thu, Aug 28, 2003 at 12:11:12AM +0100, Nicholas Clark wrote: I'm not convinced this is very good. But I believe that it is an accurate mission

Re: [RfC] constant PMCs and classes

2003-08-29 Thread Vladimir Lipskiy
can people please test, if the program below compiles cleanly now: It doesn't. MSVC++ aint' happy when * is at back of a name. static const char PCONCAT(name,_cstring) * = cstring; this static const char *PCONCAT(name,_cstring) = cstring; would be okay.

Re: mission haiku

2003-08-29 Thread Chip Salzenberg
Shimmer in distance: Floor wax *and* dessert topping! Shine will be tasty. -- Chip Salzenberg - a.k.a. - [EMAIL PROTECTED] I wanted to play hopscotch with the impenetrable mystery of existence, but he stepped in a wormhole and had to go in early. // MST3K

Re: MSVC++ complaints

2003-08-29 Thread Leopold Toetsch
Vladimir Lipskiy [EMAIL PROTECTED] wrote: My compiler doesn't like the following: typedef struct Parrot_Interp *Parrot_Interp; Weh sould do something like: s/struct Parrot_Interp\s*\*/Parrot_Interp/g at feature-freeze time before the upcoming release, when no big patches should be

Re: What the heck is active data?

2003-08-29 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: Most objects in Parrot will be dealt with by reference, Dou you have anything about references? I'm thinking about putting in a default CRef PMC class, which delegates almost all its methods to CSELF-cache.pmc_val, autogenerated inside pmc2c.pl.

Re: [RfC] constant PMCs and classes

2003-08-29 Thread Leopold Toetsch
Benjamin Goldberg [EMAIL PROTECTED] wrote: Leopold Toetsch wrote: We currently have constant Key and Sub PMCs both created from the packfile at load time. They live in the constant_table pointing to a constant PMC pool. But we need more. We have allover the core code like this:

Re: mission haiku

2003-08-29 Thread Leopold Toetsch
Nicholas Clark [EMAIL PROTECTED] wrote: Perl internals slow, nigh on unmaintainable. So we write parrot. Parrots circling above a young ponie. Camel in desert. Nicholas Clark leo

Re: mission haiku

2003-08-29 Thread James Michael DuPont
My haiku, compiled with -debug based on the instructions : http://www.toyomasu.com/haiku/ this is even contain a seasonal reference to the thought's blossoming in spring. 11 1 2= 5 The Mind looks inside : 2111 2 =

Re: Hi all

2003-08-29 Thread Jos Visser
Why on Earth are you directing this question here? The perl6-internals mailing list is about the internals of the new Perl6 implementation. ++Jos.nl On Fri, Aug 29, 2003 at 03:05:35PM +0530 it came to pass that Janarthanan, Prassana wrote: Hi all, Can any one tell me as how should I source

RE: Hi all

2003-08-29 Thread Janarthanan, Prassana
I have sent this here by mistake. Sorry for the spam. -Original Message- From: Jos Visser [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 3:09 PM To: Janarthanan, Prassana Cc: '[EMAIL PROTECTED]' Subject: Re: Hi all Why on Earth are you directing this question here? The

[RfC] vtable-dump

2003-08-29 Thread Leopold Toetsch
Tracing through Parrot programs shows the type and value of variables. This doesn't work very well for PMCs, trace_pmc_dump() tries to extract some info from the PMC, but much better would it be, if the PMC itself can return a string representation of itself. STRING* dump(INTERP, SELF, STRING

[CVS ci] exit opcode

2003-08-29 Thread Leopold Toetsch
I have checked in a small change: - Bexit(in INT) throws an exception with severity CEXCEPT_exit and the given exit status. - the system itself doesn't through such an exception on runloop exit yet, this would need classifying exception handlers, so that not arbitrary user handlers would catch

Re: [CVS ci] exit opcode

2003-08-29 Thread Jos Visser
On Fri, Aug 29, 2003 at 01:29:18PM +0200 it came to pass that Leopold Toetsch wrote: I'd like to change the startup parameters too: move the ARGV array from P0 to P5. This would allow main to be: .pcc_sub _main prototyped .param SArray ARGV .local int ARGC ARGC = ARGV ...

Re: MSVC++ complaints

2003-08-29 Thread Juergen Boemmels
Vladimir Lipskiy [EMAIL PROTECTED] writes: d:\build\parrot\include\parrot\interpreter.h(40) : error C2040: 'Parrot_Interp' : 'struct Parrot_Interp *' differs in levels of indirection from 'struct Parrot_Interp' My compiler doesn't like the following: typedef struct Parrot_Interp

Re: [RfC] vtable-dump

2003-08-29 Thread Juergen Boemmels
Leopold Toetsch [EMAIL PROTECTED] writes: Tracing through Parrot programs shows the type and value of variables. This doesn't work very well for PMCs, trace_pmc_dump() tries to extract some info from the PMC, but much better would it be, if the PMC itself can return a string representation of

Re: [RfC] vtable-dump

2003-08-29 Thread Leopold Toetsch
Juergen Boemmels [EMAIL PROTECTED] wrote: Leopold Toetsch [EMAIL PROTECTED] writes: STRING* dump(INTERP, SELF, STRING *, INTVAL flags); what is the STRING * parameter good for. I assume lineheaders. The place, where to append SELF.dump. Appending doesn't consume a new header for each piece.

Re: [RfC] vtable-dump

2003-08-29 Thread Juergen Boemmels
Leopold Toetsch [EMAIL PROTECTED] writes: Juergen Boemmels [EMAIL PROTECTED] wrote: Leopold Toetsch [EMAIL PROTECTED] writes: STRING* dump(INTERP, SELF, STRING *, INTVAL flags); what is the STRING * parameter good for. I assume lineheaders. The place, where to append SELF.dump.

Re: [RfC] vtable-dump

2003-08-29 Thread Dan Sugalski
On Fri, 29 Aug 2003, Leopold Toetsch wrote: Tracing through Parrot programs shows the type and value of variables. This doesn't work very well for PMCs, trace_pmc_dump() tries to extract some info from the PMC, but much better would it be, if the PMC itself can return a string

Re: [RfC] vtable-dump

2003-08-29 Thread Dan Sugalski
On Fri, 29 Aug 2003, Leopold Toetsch wrote: Dan Sugalski [EMAIL PROTECTED] wrote: I think we'd be better served getting the freeze/thaw stuff in and We were just discussing this in the f'up. I read those, but I wanted to make sure the discussion went this way. :) If we make the initial

RE: [CVS ci] exit opcode

2003-08-29 Thread Brent Dax
Leopold Toetsch: # I'd like to change the startup parameters too: move the ARGV array from # P0 to P5. Agreed on my end, at least--though I suspect the approval you really need is Dan's. I'll let you apply this when he does. --Brent Dax [EMAIL PROTECTED] Perl and Parrot hacker Yeah, and my

RE: MSVC++ complaints

2003-08-29 Thread Brent Dax
[EMAIL PROTECTED]: # I further don't know if its is a good idea to hide the pointer # character of a type in the typedef, like in # # typedef struct Parrot_Interp *Parrot_Interp; Parrot_Interp (the typedef) is intended to be used only in embedding/extending code. There, I've dictated (with my

Re: [CVS ci] exit opcode

2003-08-29 Thread Dan Sugalski
yOn Fri, 29 Aug 2003, Leopold Toetsch wrote: I have checked in a small change: - Bexit(in INT) throws an exception with severity CEXCEPT_exit and the given exit status. I think we might want to go a little further than this, but it's fine for now. We can extend it with Bexit(in PMC) later.

Re: [CVS ci] exit opcode

2003-08-29 Thread Leopold Toetsch
Brent Dax wrote: Leopold Toetsch: # I'd like to change the startup parameters too: move the ARGV array from # P0 to P5. Agreed on my end, at least--though I suspect the approval you really need is Dan's. I'll let you apply this when he does. Thanks. -interpreter-pmc_reg.registers[0] =

Re: [RfC] vtable-dump

2003-08-29 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: On Fri, 29 Aug 2003, Leopold Toetsch wrote: Dan Sugalski [EMAIL PROTECTED] wrote: We were just discussing this in the f'up. I read those, but I wanted to make sure the discussion went this way. :) Fine :-) Pluggable implies a dump() vtable method,

Re: [RfC] vtable-dump

2003-08-29 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: I think we'd be better served getting the freeze/thaw stuff in and We were just discussing this in the f'up. teaching the debugger how to dump a frozen PMC. This'll get us two benefits: 1) We'll have a single way to dump a PMC rather than two 2) We'll

Re: [RfC] vtable-dump

2003-08-29 Thread Dan Sugalski
On Fri, 29 Aug 2003, Leopold Toetsch wrote: Dan Sugalski [EMAIL PROTECTED] wrote: On Fri, 29 Aug 2003, Leopold Toetsch wrote: Pluggable implies a dump() vtable method, doesn't it? Nope. Pluggable implies freezethaw.c provides all the functionality to freeze or thaw a PMC, with code in

Re: Notifications

2003-08-29 Thread Michael G Schwern
On Thu, Aug 28, 2003 at 07:26:25PM -0400, Dan Sugalski wrote: What is a notification system? Well, what it is is a simple system that posts an event when a watched resource is changed. We're going to watch modification, deletion, addition, and destruction. How does it work? Simple. When a

[perl #23640] [PATCH] languages/* spelling fixes

2003-08-29 Thread via RT
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #23640] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt2/Ticket/Display.html?id=23640 hey all, I have a fairly lame and tiny patch that applies a few doc fixes

[perl #23641] [PATCH] forgot to attach patch :-)

2003-08-29 Thread via RT
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #23641] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt2/Ticket/Display.html?id=23641 woops :-) forgive me. -- attachment 1

Re: Borland C++ Builder Fun

2003-08-29 Thread Steffen Goeldner
Juergen Boemmels wrote: I tried to get parrot compiling on windows using the borland c++ builder 5.5 command line tools which can be downloaded form http://www.borland.com/products/downloads/download_cbuilder.html Now I have some problems: * borlands make handles completly different than

Re: [RfC] vtable-dump

2003-08-29 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: On Fri, 29 Aug 2003, Leopold Toetsch wrote: I think, we need a general solution for freeze, dump and clone. As shown the latter is broken. That would be IMHO an iterator interface with a callback function taking and returning a void*. Right, what I want

[PATCH] Need to mkdir docs/ops

2003-08-29 Thread Andy Dougherty
docs/Makefile fails unless the 'ops' directory already exists. Since an empty 'ops' directory isn't listed in MANIFEST, we can't assume it will exist. This patch creates it if it doesn't already exist. diff -r -u parrot-orig/config/gen/makefiles/docs.in parrot-andy/config/gen/makefiles/docs.in

lvalue cast warnings

2003-08-29 Thread Andy Dougherty
On a fresh checkout today, my Solaris C compiler issued the following warnings. If memory serves, there are other compilers that don't like lvalue casts as well. closure.pmc, line 21: warning: a cast does not yield an lvalue closure.pmc, line 48: warning: a cast does not yield an lvalue

Re: [perl #23641] [PATCH] forgot to attach patch :-)

2003-08-29 Thread chromatic
On Thursday, August 28, 2003, at 09:15 PM, [EMAIL PROTECTED] (via RT) wrote: woops :-) forgive me. Thanks, applied. (#23640 can be closed too). -- c

Re: [PATCH] Need to mkdir docs/ops

2003-08-29 Thread Simon Glover
On Fri, 29 Aug 2003, Andy Dougherty wrote: docs/Makefile fails unless the 'ops' directory already exists. Since an empty 'ops' directory isn't listed in MANIFEST, we can't assume it will exist. This patch creates it if it doesn't already exist. Thanks, applied. Simon

Re: lvalue cast warnings

2003-08-29 Thread Simon Glover
On Fri, 29 Aug 2003, Andy Dougherty wrote: On a fresh checkout today, my Solaris C compiler issued the following warnings. If memory serves, there are other compilers that don't like lvalue casts as well. lcc tcc to name two; only with these, it's an error, not just a warning. Simon

Re: lvalue cast warnings

2003-08-29 Thread Leopold Toetsch
Andy Dougherty [EMAIL PROTECTED] wrote: closure.pmc, line 21: warning: a cast does not yield an lvalue tcc fails totally. Its of cource me to blame :-) What is the official way here: - don't do that, its really forbidden (why) - create another macro acround that? The lvalue usage isn't to

Re: What the heck is active data?

2003-08-29 Thread Piers Cawley
Benjamin Goldberg [EMAIL PROTECTED] writes: Or, rather, it doesn't matter if we are or not, since perl, python, and ruby are all untyped so there's not much to be done, and full type inferencing's a halting-problem sort of thing. (Though a useful subset of many programs can be analyzed enough

Re: Notifications

2003-08-29 Thread Piers Cawley
Michael G Schwern [EMAIL PROTECTED] writes: On Thu, Aug 28, 2003 at 07:26:25PM -0400, Dan Sugalski wrote: What is a notification system? Well, what it is is a simple system that posts an event when a watched resource is changed. We're going to watch modification, deletion, addition, and

Re: lvalue cast warnings

2003-08-29 Thread Nicholas Clark
On Fri, Aug 29, 2003 at 08:05:33PM +0200, Leopold Toetsch wrote: Andy Dougherty [EMAIL PROTECTED] wrote: closure.pmc, line 21: warning: a cast does not yield an lvalue tcc fails totally. Its of cource me to blame :-) What is the official way here: - don't do that, its really forbidden

Re: What the heck is active data?

2003-08-29 Thread Benjamin Goldberg
Piers Cawley wrote: Benjamin Goldberg [EMAIL PROTECTED] writes: [snip] Reading or writing from the hash does a lookup in the backing database and reads or writes from it. A handy thing, with the variable getting in the way of reads or writes to itself. However, you can do this with plain

Re: mission haiku

2003-08-29 Thread Nicholas Clark
I'm still not sure about the 2 spare syllables in the last line in this explanation: Patches welcome means shut up and show me some code, let me 'thanks applied' Nicholas Clark