Re: Draft sketch of bytecode generation

2002-10-27 Thread chromatic
On Sun, 27 Oct 2002 08:54:08 -0800, Dan Sugalski wrote: These two seem highly similar: =item Add source code to segment This adds a line or more of source code to the bytecode segment. =item Add line number information This adds line number info to the bytecode segment, allowing the

Re: Draft sketch of bytecode generation

2002-10-28 Thread chromatic
On Sunday 27 October 2002 23:27, Brent Dax wrote: Appearances are deceiving--the first adds some (unparsed?) source code, the second adds information on file and line numbers, probably based on offset into the bytecode. Similar in terms of implementation, that is. :) In Perl terms, I'd

Re: Draft sketch of bytecode generation

2002-10-29 Thread chromatic
On Monday 28 October 2002 13:02, Dan Sugalski wrote: At 1:08 PM -0800 10/27/02, chromatic wrote: Is there an underlying function used to add arbitrary (Unicode text) metadata to the bytecode? Arbitrary metadata? Nope, no plans for that. While I can see it as a useful thing (though

Perl 6 Test Organization

2002-11-15 Thread chromatic
I'm prepared to start checking in Perl 6 tests on behalf of the Perl 6 documentation folks. These should be considered functional tests -- they are exploring the behavior we expect from Perl 6. Anything that's not yet implemented will be marked as a TODO test, and we'll figure out a way to

Perl 6 Bugs List

2002-11-16 Thread chromatic
I've submitted three bugs for Perl 6 to [EMAIL PROTECTED] They're in RT, but they haven't been announced on this group. I believe Allison has asked Ask to look into this. My plan is to funnel all Perl 6 test patches through the normal process, so they may start showing up on this list. (If

Re: Bytecode metadata

2003-01-23 Thread chromatic
On Wed, 22 Jan 2003 13:27:47 +, Dan Sugalski wrote: Since it looks like it's time to extend the packfile format and the in-memory bytecode layout, this would be the time to start discussing metadata. What sorts of metadata do people think are useful to have in either the packfile (on

Embedding Questions

2003-02-12 Thread chromatic
I'm experimenting with embedding Parrot at the moment, and have a few questions. 1) How do I get data into Parrot-space? I can pass arguments to Parrot_runcode() or I could populate some registers directly, but both approaches have their drawbacks. I could probably create PMCs directly, but

Re: Embedding Questions

2003-02-17 Thread chromatic
On Thu, 13 Feb 2003 10:36:43 +0100, Alin Iacob wrote: On February 13, 2003 2:00 chromatic wrote: I'm experimenting with embedding Parrot at the moment, and have a few questions. Some time ago Brent Dax propossed the following PDD: http:[EMAIL PROTECTED]/msg11922.html Thanks, that answers

Re: OT: Will the State of the Onion be posted online?

2003-07-16 Thread chromatic
On Tuesday, July 15, 2003, at 01:36 AM, Aldo Calpini wrote: sorry to reiterate the argument, but will also a text transcript of the talk be posted online? the slides are beautiful, but without a few words of explanation they are scary at least :-)

Re: [perl #23064] [PATCH] Fix copyright notices

2003-07-21 Thread chromatic
On Sunday, July 20, 2003, at 10:30 AM, Josh Wilmes (via RT) wrote: Here's a first pass, just changing any existing when this is determined or YAS messages to TPF. I won't apply this one myself as I lack the legal experience to understand whether it is properly done. It's passed muster at the

Re: [perl #23064] [PATCH] Fix copyright notices

2003-07-27 Thread chromatic
On Sunday, July 27, 2003, at 01:03 PM, Vladimir Lipskiy wrote: I just discovered Yet Another Copyrights in disassemble.pl. They read this: The Parrot Team. On the contrary, assemble.pl doesn't have copyrghts at all like many other files I've skipped through, though. Thanks, applied. I also

Re: [perl #23159] Parrot SIGSEGV in scratchpad_find

2003-07-29 Thread chromatic
On Tuesday, July 29, 2003, at 02:41 PM, Simon Glover wrote: Therefore the decision was taken that we should not guarantee that Parrot should never segfault when fed bad assembler; the creation of invalid assembler is a compiler bug, and should be fixed at the compiler level. If people write

Re: Approaching m4

2003-08-14 Thread chromatic
On Tuesday, August 12, 2003, at 12:38 PM, Leon Brocard wrote: We've used the Perl testing framework (Test::Harness, eg: 1..1\nok 1) in the main parrot test suite. It's working well for Perl and a Parrot version of it might be nice idea... Anything that emits the Test::Harness protocol is fine.

Re: [perl #23355] new tests for packfiles

2003-08-18 Thread chromatic
On Monday, August 18, 2003, at 03:50 AM, Leopold Toetsch wrote: Applied, though SKIPping these tests until the semantics of multiple loading are speced. TODO would be better, but it would require patching TestCompiler. Want it? -- c

Re: Implementing ISA

2003-08-25 Thread chromatic
On Monday, August 25, 2003, at 11:40 AM, Leopold Toetsch wrote: new P5, .PerlArray invoke ... isa I0, P5, array if I0, yep_has_array_interface I would expect 'does' instead of 'isa'. Perhaps I missed Dan's explanation of the difference between 'can', 'isa', and 'does'. Maybe I'm

Re: mission haiku

2003-08-28 Thread chromatic
On Thursday, August 28, 2003, at 01:44 AM, Nicholas Clark wrote: On Wed, Aug 27, 2003 at 04:14:15PM -0700, Michael G Schwern wrote: Sounds like PONIE. Nah. Reasoning there is slightly different. Maybe: Perl 6 running late, won't run existing CPAN, I want a Ponie Refactoring: good!

Re: [RFT] File Spec

2003-09-11 Thread chromatic
On Thursday, September 11, 2003, at 10:36 AM, Vladimir Lipskiy wrote: If you observe the rules, you won't get into a mess. I'm not convinced If you don't have users, you won't get into a mess is a workable design goal for library code. -- c

Re: Parrot 0.0.11 Doubloon Released!

2003-09-20 Thread chromatic
On Sat, 2003-09-20 at 10:02, Steve Fink wrote: So would people prefer 0.0.11.2 or 0.0.12? (0.0.12 would improve the average spacing between releases!) Either way, an updated ChangeLog could be useful. -- c

Re: [perl #24489] intor.pod contains a slight error.

2003-11-14 Thread chromatic
On Thu, 2003-11-13 at 01:04, [EMAIL PROTECTED] (via RT) wrote: I hope this is the correct place to send this. intro.pod contains an error in one of the examples. Thanks, applied! -- c

Re: [perl #24559] [PATCH] P6C update vector (hyper) operators

2003-11-29 Thread chromatic
On Wed, 2003-11-26 at 18:19, Allison Randal wrote: This patch updates vector operators (from ^+ to +) and the XOR operator (from ~~ to ^^) to match the current design. Thanks, applied. -- c

RE: [CVS ci] object stuff

2003-12-11 Thread chromatic
On Thu, 2003-12-11 at 12:05, Gordon Henriksen wrote: It is truly remarkable the lengths that Perl programmers seem to be willing go to in order to hide a function call or obscure the existence of an object. :) Not all of the poly- and allomorphism in the world comes from traditional object

Re: Thread Question and Suggestion -- Matt

2004-01-03 Thread chromatic
On Sat, 2004-01-03 at 17:24, Matt Fowles wrote: I have a naive question: Why must each thread have its own interpreter? ~handwavy, high-level answer~ For the same reason each thread in C, for example, needs its own stack pointer. Since Parrot's a register machine, each thread needs its own

Re: [DOCS] POD Errors

2004-01-15 Thread chromatic
On Thu, 2004-01-15 at 15:02, Michael Scott wrote: So, after migrating from Pod::Checker to Pod-Simple, I've cleared up all the pod errors and done a rudimentary html tree. Do you have patches to fix the errors in CVS or are they even necessary? -- c

Re: Problem during make test

2004-01-15 Thread chromatic
On Sun, 2004-01-04 at 12:09, Harry Jackson wrote: I tried that as well, it spits out identical PASM each time but on the odd occasion I need to use CTRL-C to get back to the shell. I'm seeing the same thing on Linux PPC -- odd hangs from time to time when running PIR, while running the PASM

Re: Problem during make test

2004-01-16 Thread chromatic
On Thu, 2004-01-15 at 23:26, Leopold Toetsch wrote: Could you attach gdb to the hanging parrot? This time, it's hanging at t/op/00ff-dos.t: (gdb) bac #0 0x0fd0e600 in sigsuspend () from /lib/libc.so.6 #1 0x0ff970ac in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0 #2

Re: Problem during make test

2004-01-16 Thread chromatic
On Fri, 2004-01-16 at 01:07, Leopold Toetsch wrote: I've checked in now: * terminate the even loop thread on destroying of the last interp * this could help against the spurious hangs reported on p6i Could you please check if that helps. Yes, that's better. (Upgrading glibc didn't help

Re: Problem during make test

2004-01-16 Thread chromatic
On Fri, 2004-01-16 at 12:42, Leopold Toetsch wrote: Ah yep. When committing the first (trial) fix, I thought about such a problem, which is related: - if it seems to hang on a condition variable (still AFAIK: it shouldn't) It reminds me of a problem I'm having with MySQL, actually. - but

Re: Problem during make test

2004-01-17 Thread chromatic
On Sat, 2004-01-17 at 04:29, Leopold Toetsch wrote: I've converted this exit() to Parrot_exit() now. If that helps, I'll change a bunch of other such code too. Yep, that fixed. Now there are hangs in some of the t/src files. Right now, it's t/src/sprintf.t at test 2. The backtrace looks

Re: Problem during make test

2004-01-19 Thread chromatic
On Mon, 2004-01-19 at 04:11, Leopold Toetsch wrote: Harry, do you still see these hanging parrot programs? chromatic, do you run a DeadRat (sorry) linux too? Nope, none here. I can try a different pthread library though. -- c

Re: Managed and unmanaged structs (Another for the todo list)

2004-01-22 Thread chromatic
On Thu, 2004-01-15 at 09:16, Leopold Toetsch wrote: Dan Sugalski [EMAIL PROTECTED] wrote: If that's living in an managedstruct, then accessing the struct elements should be as simple as: set I0, P20['bar'] set S1, P20['plugh'] set P20['baz'], 15 That's mostly done,

Re: Managed and unmanaged structs (Another for the todo list)

2004-01-23 Thread chromatic
On Fri, 2004-01-23 at 06:16, Dan Sugalski wrote: Hang it off the cache slot, and mark the cache as a buffer with the data you need in it. (That's how I'd do it, at least) Something like this? I'm having odd troubles with Key not an integer!, which indicates I'm doing something wrong. Still,

Re: t/src/extend.t hanging, and a (probably not very good) patch

2004-01-24 Thread chromatic
On Sat, 2004-01-24 at 09:17, Jeffrey Dik wrote: make tests had starting hanging in t/src/extend.t. I think it might be the same problem chromatic was experiencing recently, but really I have no idea. Putting a Parrot_exit(0); in front of the return 0;s caused all the t/src/extend.t tests

Re: Managed and unmanaged structs (Another for the todo list)

2004-01-24 Thread chromatic
On Sat, 2004-01-24 at 06:18, Leopold Toetsch wrote: Either: new $P2, .HashlikeStruct, $P1 or assign $P2, $P1 That gave me Illegal initializer for struct, which may be related to your next comment. pmclass HashlikeStruct extends UnManagedStruct need_ext does hash I'd not

Re: t/src/extend.t hanging, and a (probably not very good) patch

2004-01-25 Thread chromatic
On Sat, 2004-01-24 at 19:51, Jeffrey Dik wrote: glibc-2.3.1-51a according to rpm -q Interesting. I'm using 2.3.2. Do you have the opportunity to try out NPTL with a newer glibc and kernel? It may involve some pain, so that's fine if you'd rather not. (I'm in the same boat.) I'm just about

SDL Bindings (in progress)

2004-01-31 Thread chromatic
Hi all, Thanks to Leo for fixing up the struct PMCs, I've code that can create a new SDL window and blit a blue rectangle onto it. Animation's not far off now! There are a couple of bugs, however. First, I had to add some C-type conversion code to classes/unmanagedstruct.pmc. It's almost

Re: SDL Bindings (in progress)

2004-01-31 Thread chromatic
On Sat, 2004-01-31 at 06:28, Leopold Toetsch wrote: /Me thinks, that setting colors with the struct doesn't work. I've change your sample to: # blue_color = _new_SDL_Color( 255, 255, 255 ) .local int blue .local int red .local int green blue = 255 0

Re: [perl #24553] [PATCH] missing documentation files in imcc.pod

2004-01-31 Thread chromatic
On Tue, 2003-11-25 at 13:54, Bernhard Schmalhofer wrote: when checking up on 'imcfaq.pod' I noticed that this file wasn't mentioned in 'imcc.pod'. Thus I added 'calling_conventions.pod' and 'imcfaq.pod' to the list of available documentation. Additionally I changed some 'IMCC's into

Re: [perl #23411] [PATCH] Add drafty ABSTRACT and OVERVIEW to docs/strings.pod

2004-01-31 Thread chromatic
On Tue, 2003-08-19 at 08:47, [EMAIL PROTECTED] (via RT) wrote: This patch creates ABSTRACT and OVERVIEW sections in docs/strings.pod. The text is a zero-effort placeholder draft. Thanks, applied. -- c

Re: SDL Bindings (in progress)

2004-02-02 Thread chromatic
On Mon, 2004-02-02 at 07:57, Leopold Toetsch wrote: How about examples/pni/sdl_blue_rectangle.imc? Done. I have a couple of other examples now; should I check them in here? In particular, I have image animation and will shortly have examples of reading input with SDL. -- c

Re: SDL Bindings (in progress)

2004-02-02 Thread chromatic
On Mon, 2004-02-02 at 10:58, Leopold Toetsch wrote: If you got more examples (good) I'd suggest to put these in a distinct subdirectory. Do you prefer examples/pni/sdl/ or examples/sdl/ or something else? Also, I have one 6k binary file for one example. Is that okay to check in? -- c

Re: SDL Bindings (in progress)

2004-02-02 Thread chromatic
On Mon, 2004-02-02 at 12:30, Dan Sugalski wrote: examples/sdl would probably be best. We can get more hierarchical at some point later if we need to. Yeah, go ahead. Okay, done. We can now load and animate simple images with SDL. (Actually, anyone can, as there's documentation and

Alignment Issues with *ManagedStruct?

2004-02-03 Thread chromatic
Hi there, While adding support for handling keyboard events to the SDL bindings (see the attached patch; it's not for applying, as the documentation is lacking and the interface exposes too many details), I discovered that the alignment of members within a struct matters quite a bit. That is, to

Re: Alignment Issues with *ManagedStruct?

2004-02-03 Thread chromatic
On Tue, 2004-02-03 at 00:58, Leopold Toetsch wrote: Have a look at the third initializer param - this is the offset of the item in bytes. Oh, right. That completely slipped my mind. (Albeit untested - seems you got the code to test it :) Okay, I'll turn this into a test case. NCI is per

Re: Alignment Issues with *ManagedStruct?

2004-02-04 Thread chromatic
On Wed, 2004-02-04 at 00:52, Leopold Toetsch wrote: Pushing zero as offset should do The Right Thing, that is proper aligning the item. Tighter packed structures can be achieved with explicit offset parameters. In this case, it doesn't, as the struct I'm emulating is: typedef struct

Keyed Access to UnManagedStruct?

2004-02-08 Thread chromatic
Hi there, What's the best way to access fields within an UnManagedStruct, one returned from an NCI call? For example, if I call _new_SDL_Screen, how can I access the w and h fields of the SDL_Surface it returns? I've tried creating an OrderedHash called layout and then doing: set

Re: Keyed Access to UnManagedStruct?

2004-02-09 Thread chromatic
On Sun, 2004-02-08 at 15:06, Leopold Toetsch wrote: So you create an initializer for that struct (above layout? - a bad name BTW) and *assign* it to the screen: assign screen, screen_struct_layout w = screen[w] # presumed your struct initializer defines that s. docs/pmcs/struct.pod

Re: Keyed Access to UnManagedStruct?

2004-02-09 Thread chromatic
On Mon, 2004-02-09 at 13:34, Leopold Toetsch wrote: chromatic [EMAIL PROTECTED] wrote: Now, I'm seeing an odd error whenever I use the 'loadlib' op, though: set_pmc_keyed_str() not implemented in class 'PerlInt' Time for an example ;) I see it on examples/sdl/anim_parrot_logo.imc

Re: Keyed Access to UnManagedStruct?

2004-02-09 Thread chromatic
On Mon, 2004-02-09 at 13:40, chromatic wrote: I see it on examples/sdl/anim_parrot_logo.imc with a fresh build. Oops, now I don't. Ignore that; I'll have a better example of weirdness shortly. -- c

Keyed Access to ManagedStruct, part two

2004-02-09 Thread chromatic
I've just checked in another SDL example, examples/sdl/move_parrot_logl.imc. This example uses the cursor keys to move the logo around. Hitting escape or closing the window exits the program. To make the image handling work (and it (ab)uses objects, so that part'll need to change in the near

[PATCH build_tools/build_nativecall.pl] Fix Compile Error in src/nci.c

2004-02-10 Thread chromatic
The recent Visual C++ warnings cleanup patch appears to have broken the compile on other platforms. Here's a patch that fixes things for me. -- c Index: build_tools/build_nativecall.pl === RCS file:

Re: PATCH: Trivial typo patch for config/init/headers.pl

2004-02-12 Thread chromatic
On Thu, 2004-02-12 at 07:17, Art Haas wrote: Add in a missing 'n'. Also, the file 'config/auto/byteorder.pl' is missing a newline at the end of the file. A simple open and save in vim would fix that up. Thanks, applied. -- c

Re: [PATCH] library/sdl_types.imc

2004-02-12 Thread chromatic
On Thu, 2004-02-12 at 05:26, Jens Rieks wrote: here is a small pach for _SDL_loop that fixes a crashes that occurs if you press a key that has no entry in the key_events hash. Thanks, applied! -- c

Re: [PATCH] library/sdl_constants.imc

2004-02-12 Thread chromatic
On Thu, 2004-02-12 at 05:57, Jens Rieks wrote: here is a patch that adds all SDLK_ values. The values are added to sdl_keysyms, which is just an alias at the moment. The constants hash is know also stored as a global and is created only once. Thanks, applied! -- c

Re: [PATCH] library/sdl_types.imc #2

2004-02-18 Thread chromatic
On Fri, 2004-02-13 at 09:21, Jens Rieks wrote: This patch fixes _SDL_WaitEvent a bit; SDL_WaitEvent returns an integer and not a SDL_Event. It also introduces _SDL_PollEvent which is mostly a copy of _SDL_WaitEvent. Finally, _SDL_loop is modified to allow an idle event entry that gets called

Re: [NEW] library/sdl.imc

2004-02-18 Thread chromatic
On Fri, 2004-02-13 at 09:57, Jens Rieks wrote: here is an easy to use (with PIR code) wrapper of the SDL library. It tries to hide all internals of the wrapper and makes the most important SDL functions directly available in PIR code. Overall this looks good. I am not sure if it is better to

Re: [NEW] library/sdl.imc

2004-02-19 Thread chromatic
On Thu, 2004-02-19 at 10:20, Jerome Quelin wrote: I really dislike having to .include sdl.imc in a sub to .include the other outside... Me too. There's supposed to be a magic initialization sub of some kind called on library load. I'm inclined to stick it in there, but it's not there yet.

Re: Release doc tasks

2004-02-19 Thread chromatic
On Thu, 2004-02-19 at 16:34, Michael Scott wrote: One thing that would help is if people ran perl tools/docs/write_docs.pl -d -s on various platforms and told me if it works - or what they did to make it work - because I only have access to Mac OS X 10.3.2 here. It choked here on

util/ncidev2pasm.pl

2004-02-19 Thread chromatic
On Thu, 2004-02-19 at 17:54, Jens Rieks wrote: One downside of making sdl.imc smarter (changing it from sdl.pasm) is that we can no longer use build_tools/build_nativecall.pl as is. That may be an argument for making the tool smarter. Why? Sorry if its a stupid question, but what

Re: www.parrotcode.org

2004-02-20 Thread chromatic
: http://wgz.org/chromatic/perl/parrotcode.tar.gz Send me patches against them and I'll make sure they're applied. -- c

Re: [CVS ci] PLATFORMS

2004-02-23 Thread chromatic
On Mon, 2004-02-23 at 01:30, Leopold Toetsch wrote: Please help me fill out the blanks by sending or committing patches. Please make sure to have the latest and best Parrot from CVS. I have a platform not listed. Where should I look for the appropriate information? -- c

Re: [PATCH classes/parrotobject.pmc] Include Invalid Attribute Name in Exception

2004-02-23 Thread chromatic
On Mon, 2004-02-23 at 11:50, Dan Sugalski wrote: At 11:40 AM -0800 2/23/04, chromatic (via RT) wrote: This patch made it slightly easier for me to debug errors in my code. It may require tweaking to remove the newline, but these exceptions print much more prettily with it. Applied, thanks

Re: [CVS ci] PLATFORMS

2004-02-23 Thread chromatic
On Mon, 2004-02-23 at 11:00, Leopold Toetsch wrote: ... Where should I look for the appropriate information? Create a platform name similar to existing ones. F./myconfig and the output from Configure.pl + test results/skips should provide the information to fill the line :) I think this

Re: Ladies and gentlemen, I give you... objects!

2004-02-25 Thread chromatic
On Wed, 2004-02-25 at 15:54, Dan Sugalski wrote: Yep, it looks like everything that should work now actually *does* work now, modulo a test that needs a thump. If folks would abuse this heavily, I'd much appreciate it. I'll revise some of the SDL code to use objects instead of pseudo

Re: PLATFORM

2004-02-29 Thread chromatic
On Sat, 2004-02-28 at 03:43, Leopold Toetsch wrote: CGoto core: make testg testC Both of these worked on Linux PPC with gcc-3.2.3 I did see an intermittent hang, this time on the second test of t/src/intlist.t. killall -HUP intlist_2 made the test continue, though it failed. JIT:

Re: [perl #27336] [PATCH] Typo in library/dumper.imc

2004-03-02 Thread chromatic
On Tue, 2004-03-02 at 21:54, Will Coleda wrote: Minor typo in library/dumper.imc for unknown pmcs Thanks, applied. -- c

Re: [perl #27369] [PATCH] pretty-print for library/dumper.imc

2004-03-04 Thread chromatic
On Thu, 2004-03-04 at 04:17, Jens Rieks wrote: Printing some more information for ParrotIO, ParrotClass, ParrotObject, OrderedHash, ManagedStruct and UnManagedStruct is also on my TODO list. I have no idea how to dump the last three types, can anyone give me a hint? With *Struct, I'd like to

Re: [perl #27491] [PATCH] speling error: DECSRIPTION

2004-03-07 Thread chromatic
On Sun, 2004-03-07 at 15:25, Bernhard Schmalhofer wrote: this patch fixes a speling error in some of the test files: DECSRIPTION - DESCRIPTION. Thanks, applied. Now 'DECSRIPTION' appears nowhere in the source directory. -- c

Re: [PATCH] Prettifying parrotbench output

2004-03-09 Thread chromatic
On Tue, 2004-03-09 at 05:15, Luke Palmer wrote: -system $pathes{$names[$i]} $directory/ - . $benchmark.$suffixes[$i][$j] - . '/dev/null'; File::Spec has a devnull() method. I'd use that to improve portability, though I'm never sure how shell

[PROPOSED PATH] Clean Up Compiler Warnings (Linux PPC)

2004-03-14 Thread chromatic
Hi there, The attached patch (mostly for discussion, not applying) cleans up three compiler warnings on Linux PPC. These are all related to implicitly declared functions. My solution may not be the best approach, but it works for me. In particular, the posix_memalign() manpage states:

Re: newbie question....

2004-03-15 Thread chromatic
On Mon, 2004-03-15 at 04:26, Tim Bunce wrote: Is someone tracking the mailing list and adding questions and (good) answers into the FAQ? Whoops, I'd planned to add this opcode question and answer to the FAQ this weekend. Thanks for the reminder, Tim! -- c

Re: Classes and metaclasses

2004-03-16 Thread chromatic
On Tue, 2004-03-16 at 06:42, Dan Sugalski wrote: Roles are going to get implemented as inheritance--so far I've seen no technical reason not to, and quite a number of reasons to do so. People can cope, if they're looking this deeply. Out of curiosity, what are those reasons? I'm not sure

Re: Classes and metaclasses

2004-03-16 Thread chromatic
On Tue, 2004-03-16 at 10:25, Dan Sugalski wrote: Unless I missed something, child classes inherit parent class roles, so if I have Foo with a role of X, and Bar inherits from Foo, Bar does the X role. Looks like inheritance to me... That's normal inheritance and that's fine. Consider

Re: Classes and metaclasses

2004-03-16 Thread chromatic
On Tue, 2004-03-16 at 11:46, Dan Sugalski wrote: A class does X if X is on the does list of the class or any of the parents of the class. This class then does the role X. A class isa X if X in on the isa list of the class or any of the parents of the class. Alternately, your class can

Re: [PATCH] fix typo in imcc/docs/calling_conventions.pod

2004-03-18 Thread chromatic
On Thu, 2004-03-18 at 08:50, Jens Rieks wrote: the attached patch fixes a small typo in alling_conventions.pod Thanks, applied. -- c

Re: Classes and metaclasses

2004-03-22 Thread chromatic
On Tue, 2004-03-16 at 11:57, Dan Sugalski wrote: (I forgot to reply to this last week) At 11:51 AM -0800 3/16/04, chromatic wrote: Just to be sure, if Class Y inherits from Class X, is X on Y's does list? If class X does X, then yes. (I *really* should've picked better names) Classes

New SDL Parrot Bindings Underway

2004-03-29 Thread chromatic
Hi all, With the improved object system in place, I've been porting the existing SDL Parrot bindings. Here's a sample program that draws the friendly blue rectangle again: .pcc_sub _main non_prototyped, @MAIN load_bytecode library/sdl_app.imc load_bytecode library/sdl_rect.imc

PIR Sub Invocation (was Re: Fun with nondeterministic searches)

2004-04-01 Thread chromatic
On Thu, 2004-04-01 at 07:08, Leopold Toetsch wrote: $P0 = find_lex(fail) $P0() # Why can't we do this? Does $P0.() work any better? It used to give tons of reduce conflicts and wrong code ... wait ... try again ... now it works ... fixed. It works for NCI subs too. *Very* nice!

Re: new method

2004-04-04 Thread chromatic
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 their default values. I personally want to

__find_method Overrideable From PASM/PIR?

2004-04-04 Thread chromatic
According to PDD15, defining a method called __find_method() in my PASM or PIR would allow Perl 5 AUTOLOAD-like behavior. I can override __get_string() -- and it's tested in t/pmc/delegate.t. Is __find_method() workable yet? If not, how would I go about adding it? t/pmc/delegate.t looks like

Re: New SDL Parrot Bindings Underway

2004-04-05 Thread chromatic
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 finished porting the existing files in examples/sdl to the new

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

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

New SDL Parrot Bindings Enclosed

2004-04-07 Thread chromatic
Hi all, Here are two tarballs of the new Parrot bindings. I'd like to do a bit more documentation work with the examples before checking them in (as they replace some existing files), but they all work for me. There's also copious documentation, including documentation of the embarrassing bits.

Re: [CVS ci] diamond class hierarchy

2004-04-07 Thread chromatic
On Sun, 2004-04-04 at 00:28, Leopold Toetsch wrote: Object gurus, please have a look at t/pmc/object-meths_17. Is the code ok? Is it failing because init order is really wrong? BTW I tried to add this test as a TODO but this seems not to work. That's odd. If I uncomment line 467 ( local

Re: [CVS ci] diamond class hierarchy

2004-04-07 Thread chromatic
On Wed, 2004-04-07 at 00:23, Leopold Toetsch wrote: $ perl -Ilib t/pmc/object-meths.t 1..17 ... not ok 17 - constructor - diamond parents # TODO wrong init order? # Failed (TODO) test (t/pmc/object-meths.t at line 469) ... $ perl -Ilib t/harness t/pmc/o*.t t/pmc/object-methsok

Re: {CVS ci] alternate object initializer calling scheme

2004-04-09 Thread chromatic
On Fri, 2004-04-09 at 04:56, Leopold Toetsch wrote: I've put in the new scheme for initializer calls. To test it, set the environment variable CALL__BUILD to some value. Sample code to set an initializer to _new new P10, .PerlString set P10, _new newclass P1, Foo

ICU Link Problems on Linux PPC

2004-04-10 Thread chromatic
/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl . blib/lib/libicuuc.a(uset.ao)(.eh_frame+0x12): In function `uset_open_2_6': /home/chromatic/dev/parrot/icu/source/common/uset.cpp:33: undefined reference to `__gxx_personality_v0' blib/lib/libicuuc.a(uniset.ao)(.gnu.linkonce.r

Re: ICU Link Problems on Linux PPC

2004-04-11 Thread chromatic
On Sat, 2004-04-10 at 20:13, Jeff Clites wrote: (accidentally sent only to Jeff earlier) Since the ICU static libs (.as) have C++ inside, we need to link with a C++-aware linking. Try setting: link = 'c++' in config/init/hints/linux.pl and see if that fixes it. The error you're

Re: [perl #28461] [PATCH] Spelling Nit for diagnostic message

2004-04-12 Thread chromatic
On Sun, 2004-04-11 at 11:10, Will Coleda wrote: Another instance of unknow bash-2.05a$ cvs diff src/dynext.c Index: src/dynext.c Thanks, applied. -- c

Re: Method Name Truncation in PIR

2004-04-15 Thread chromatic
On Thu, 2004-04-15 at 00:58, Leopold Toetsch wrote: Did you turn on debugging? Most of these name mangling and string constant stuff should be covered, e.g.: $ parrot -d /tmp/object-meths_15.pasm 21 | grep meth Aha, here's an interesting difference. I've been using single quotes for

Re: Method Name Truncation in PIR

2004-04-15 Thread chromatic
On Thu, 2004-04-15 at 09:18, Leopold Toetsch wrote: Ah. Relikt of Jeff's patch. If that constant got reused elsewhere, e.g. as a method name, it were one too short. Confirmed. Thanks, Leo! Would a test patch such as the following be good to catch regressions, or should it go elsewhere? If

Re: {CVS ci] alternate object initializer calling scheme

2004-04-15 Thread chromatic
On Sat, 2004-04-10 at 01:49, Leopold Toetsch wrote: This initializer is available as first param in the init method. I'm happy with this. Good. What needs to be done before making it the default? I'm anxious to remove CALL__BUILD=1 from my parrot alias. We don't have it yet. We could use

SDL Parrot Status

2004-04-20 Thread chromatic
Since Piers needs fodder to summarize regularly I've created a small webpage with the current status and downloadable snapshots for SDL Parrot: http://wgz.org/chromatic/parrot/sdl/ You'll probably see a link to my PDX.pm talk from earlier this month. It's not ground-breakingly new

Passing Arrays of Structs to NCI Subs

2004-04-20 Thread chromatic
What's the secret syntax for passing and retriving arrays of things to and from NCI? I have this signature: extern DECLSPEC void SDLCALL SDL_UpdateRects (SDL_Surface *screen, int numrects, SDL_Rect *rects); That'd be *very* handy to expose. (Yeah, Dan, I know you said

Re: Korean character set info

2004-04-22 Thread chromatic
On Thu, 2004-04-22 at 09:17, Jarkko Hietaniemi wrote: Ah, at this point Unicode's legacy too. Besides, as long as RAD-50 lives, nobody's got much standing to call a character set Legacy :) I suggest Parrot's native character set to be cuneiform. ... but only for constants. -- c

Re: A12: The dynamic nature of a class

2004-04-23 Thread chromatic
On Fri, 2004-04-23 at 05:42, Dan Sugalski wrote: Since any type potentially has assignment behaviour, it has to be a constructor. For example, if you've got the Joe class set such that assigning to it prints the contents to stderr, this: my Joe $foo; $foo = 12; should print 12

Re: missint math ops?

2004-04-23 Thread chromatic
On Fri, 2004-04-23 at 14:38, Aaron Sherman wrote: I'm trying to write some code, and I'm not finding certain ops. rand/srand sqrt I was surprised not to see something like signbit. It's in my config/gen/platform/generic/math.h. Then again, I tend to skim documentation. :) --

Re: Event design sketch

2004-05-11 Thread chromatic
On Tue, 2004-05-11 at 09:44, Dan Sugalski wrote: Thinking we might want: waitall Parray_of_events waitany Parray_of_events ? I certainly do! I'm also curious how to write an interface to an existing event system. Being able to write it all in PASM is a bonus. -- c

Re: Event design sketch

2004-05-11 Thread chromatic
On Tue, 2004-05-11 at 10:24, Dan Sugalski wrote: I'm also curious how to write an interface to an existing event system. Being able to write it all in PASM is a bonus. I don't think it can be all-PASM, except maybe (and maybe not...) with a separate thread for the existing event source. To

  1   2   3   4   5   6   7   8   9   10   >