Re: Initializers, finalizers, and fallbacks

2004-04-06 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: Okay, here's a sketch of where I'm going with the initialization, finalization, and fallback method locating. As the current init scheme isn't really flying (and not in sync with this proposal) here is a first hack to get it running. CONSTRUCT is the

Re: New SDL Parrot Bindings Underway

2004-04-06 Thread Tim Bunce
On Mon, Apr 05, 2004 at 09:33:15PM -0700, chromatic wrote: On Mon, 2004-03-29 at 23:33, chromatic wrote: With the improved object system in place, I've been porting the existing SDL Parrot bindings. Here's a quick status update. With helpful suggestions from Jens and Allison, I've just

Re: New SDL Parrot Bindings Underway

2004-04-06 Thread Leopold Toetsch
Tim Bunce [EMAIL PROTECTED] wrote: find_type app_type, 'SDL', 'App' or: find_type app_type, [ 'SDL', 'App' ] No. Cfind_type finds a class enum. These types are kept in an array - no hierarchy. .namespace [ 'MoveLogo', 'EventHandler' ] That *would* be: .namespace [ 'MoveLogo';

Re: Parrot on Vax/OpenBSD

2004-04-06 Thread Leopold Toetsch
Marcus Thiesen [EMAIL PROTECTED] wrote: Hi, The results of the test suite are here: http://www.thiesen.org/parrottest/vax-openbsd-3.5-beta.txt Doesn't look too bad. There are oviously problems with floats. All native_pbc/number tests are failing. Also type conversions are broken. To fix this

Re: new method

2004-04-06 Thread Dan Sugalski
At 1:16 PM -0700 4/4/04, chromatic wrote: On Sun, 2004-04-04 at 10:17, Leopold Toetsch wrote: .sub __init method is AFAIK the constructor. It gets called automatically for all parent classes and the class itself and is the best place to put attributes for objects in place and set these to

Re: __find_method Overrideable From PASM/PIR?

2004-04-06 Thread Dan Sugalski
At 9:26 AM +0200 4/5/04, Leopold Toetsch wrote: Chromatic [EMAIL PROTECTED] wrote: According to PDD15, defining a method called __find_method() in my PASM or PIR would allow Perl 5 AUTOLOAD-like behavior. That's a cut'n'paste error in pdd15 - at least now. It needs fixing--the docs, that is, not

Re: Q: attribute opcodes

2004-04-06 Thread Dan Sugalski
At 9:25 PM +0200 4/3/04, Leopold Toetsch wrote: Shouldn't {g,s}etattribute opcodes call vtable methods of the object? Well... no, not really. There's no need for this as such. Properties are on the PMC as a whole, so you really don't have any idea what the structure of the PMC is. Attributes are

Re: Language Interoperability

2004-04-06 Thread Dan Sugalski
At 6:12 AM -0400 4/4/04, Randy W. Sims wrote: [Scheme 1: hierarchy munging] [Scheme 2: loadable-library style plugins] Is there anything in the above that stands out as potentially being problematic? Well, there are a lot of languages that really dislike having their inheritance hierarchy

Re: Parrot on Vax/OpenBSD

2004-04-06 Thread Jarkko Hietaniemi
Leopold Toetsch wrote: Marcus Thiesen [EMAIL PROTECTED] wrote: Hi, The results of the test suite are here: http://www.thiesen.org/parrottest/vax-openbsd-3.5-beta.txt Doesn't look too bad. There are oviously problems with floats. All native_pbc/number tests are failing. Also type

Re: Fun with nondeterministic searches

2004-04-06 Thread Dan Sugalski
At 9:12 AM +0100 4/2/04, Piers Cawley wrote: Leopold Toetsch [EMAIL PROTECTED] writes: Piers Cawley [EMAIL PROTECTED] wrote: When you make a full continuation with clone, can't you chase up its continuation chain and mark its reachable continuations (and only those continuations) as non

Need a roundup of pending object stuff

2004-04-06 Thread Dan Sugalski
So we can get the damn thing nailed down and done. If there's something pending throw it on as a reply and we'll gather them up and see about making it work. -- Dan --it's like this--- Dan Sugalski

Re: Need a roundup of pending object stuff

2004-04-06 Thread Jarkko Hietaniemi
Dan Sugalski wrote: So we can get the damn thing nailed down and done. If there's something pending throw it on as a reply and we'll gather them up and see about making it work. Someone conversant with the OO bits of the Python bytecode should do a side-by-side feature comparison to see

Re: Initializers, finalizers, and fallbacks

2004-04-06 Thread Dan Sugalski
At 10:29 PM -0800 4/1/04, chromatic wrote: On Wed, 2004-03-03 at 09:39, Dan Sugalski wrote: Okay, here's a sketch of where I'm going with the initialization, finalization, and fallback method locating. We need to do this because we're in the semi-unenviable position of supporting multiple

Re: __find_method Overrideable From PASM/PIR?

2004-04-06 Thread chromatic
On Tue, 2004-04-06 at 07:46, Dan Sugalski wrote: It needs fixing--the docs, that is, not the method. Making a custom find_method is going to require a bit more thought, and it might well need some other interesting stuff. (It ought not be inheritable, for example, because then you'd need

Re: Need a roundup of pending object stuff

2004-04-06 Thread chromatic
On Tue, 2004-04-06 at 08:42, Dan Sugalski wrote: So we can get the damn thing nailed down and done. If there's something pending throw it on as a reply and we'll gather them up and see about making it work. I'd like to: - pass arguments to a constructor (or initializer, or whatever

[PATCH] OpenBSD on non i386 platforms

2004-04-06 Thread Marcus Thiesen
[This is a repost because the ticket system can't handle MIME encoded mail] Hi, as I pointed out in my Parrot on Alpha post I had to do a change to the OpenBSD platform.h file in order to get it to run on other platforms. As I ran now into the same problem giving parrot a try on a Vax, I think

Re: New SDL Parrot Bindings Underway

2004-04-06 Thread Jens Rieks
Hi! Sorry for delay, I had less time than I expected. On Sunday 04 April 2004 19:45, chromatic wrote: On Sun, 2004-04-04 at 10:04, Jens Rieks wrote: I think I prefer letting SDL::App be the main entry point for SDL applications, because *something* has to initialize SDL. So that

Re: New SDL Parrot Bindings Underway

2004-04-06 Thread Dan Sugalski
At 7:42 PM +0200 4/6/04, Jens Rieks wrote: What do you think about a hash interface for event handling? newsub key, .Sub, _key_x app[SDLK_x] = key I think... I think I need to get cracking on the event handling spec. I'd prefer SDL to use parrot's built-in event handling system,

Re: Parrot on Vax/OpenBSD

2004-04-06 Thread Jarkko Hietaniemi
Jarkko Hietaniemi wrote: Leopold Toetsch wrote: Marcus Thiesen [EMAIL PROTECTED] wrote: Hi, The results of the test suite are here: http://www.thiesen.org/parrottest/vax-openbsd-3.5-beta.txt Doesn't look too bad. There are oviously problems with floats. All native_pbc/number tests are

Re: New SDL Parrot Bindings Underway

2004-04-06 Thread chromatic
On Tue, 2004-04-06 at 10:46, Dan Sugalski wrote: At 7:42 PM +0200 4/6/04, Jens Rieks wrote: What do you think about a hash interface for event handling? newsub key, .Sub, _key_x app[SDLK_x] = key I think... I think I need to get cracking on the event handling spec. I'd

Re: New SDL Parrot Bindings Underway

2004-04-06 Thread Jens Rieks
Hi, sorry, this message was meant to go to chromatic only. I modified my mail client setting to automatically add the mailinglist address some weeks ago, I should revert to the old settings :-) On Tuesday 06 April 2004 19:46, Dan Sugalski wrote: At 7:42 PM +0200 4/6/04, Jens Rieks wrote: What

Re: New SDL Parrot Bindings Underway

2004-04-06 Thread Dan Sugalski
At 8:04 PM +0200 4/6/04, Jens Rieks wrote: Hi, sorry, this message was meant to go to chromatic only. I modified my mail client setting to automatically add the mailinglist address some weeks ago, I should revert to the old settings :-) On Tuesday 06 April 2004 19:46, Dan Sugalski wrote: At 7:42

Re: Fun with nondeterministic searches

2004-04-06 Thread Luke Palmer
Dan Sugalski writes: I'm OK with moving the return continuation out of P1 and into somewhere else--I can even see throwing it on the control stack. (Or a special register, I can live with that as well) I'd like to express my vote of confidence for an RC register, which is put in the context

Caller Continuation register (was Re: Fun with nondeterministic searches)

2004-04-06 Thread Dan Sugalski
At 1:24 PM -0600 4/6/04, Luke Palmer wrote: Dan Sugalski writes: I'm OK with moving the return continuation out of P1 and into somewhere else--I can even see throwing it on the control stack. (Or a special register, I can live with that as well) I'd like to express my vote of confidence for an

[NEW] Stream library ready

2004-04-06 Thread Jens Rieks
Hi all, here is a working version of my new Stream library. I will add more documentation later this month, the examples should be enough to understand the usage. After using assign to attach a source to the stream, you can use the read method to fetch a string from the stream. The connected

Re: Language Interoperability

2004-04-06 Thread Randy W. Sims
On 4/6/2004 11:06 AM, Dan Sugalski wrote: At 6:12 AM -0400 4/4/04, Randy W. Sims wrote: [Scheme 1: hierarchy munging] [Scheme 2: loadable-library style plugins] Is there anything in the above that stands out as potentially being problematic? Well, there are a lot of languages that really