Re: JIT & branches under the Sun

2004-02-16 Thread Leopold Toetsch
Stephane Peiry <[EMAIL PROTECTED]> wrote: > mh ok, I do get the stabs file, and apparently the reason no objfile gets > created is that "as" complains with loads of warnings and some errors when > given the stab file. I see. Your libc's sprintf seems to be missing the "0x" prefix for the "%p" fo

Obfuscated Parrot

2004-02-16 Thread Leopold Toetsch
# obf1.pasm bounds 1 trace 0 split P0, '', "\nrekcaH torraP rehtona tsuJ" add I1, 3 add I2, 4 branch I2 pack S23, 793, I1, I0 branch I2 add I2, 382, I1 branch I2 new S23, 911, I0, I0 branch I1 transcode S23, S0, -19 end Have fun, leo

Re: Obfuscated Parrot

2004-02-16 Thread Leopold Toetsch
Another one, OO-style with subroutines: $ cat obf2.pasm bounds 1 trace 0 newclass P0, "Just another Parrot Hacker\n" shift S0, P5 does I0, P0, S0 add I0, 4 bsr I0 pack S0, 381, I0, I0 invoke ret $ parrot obf2.pasm Just another Parrot Hacker leo

Re: Object spec

2004-02-16 Thread Dan Sugalski
At 5:18 PM -0500 2/13/04, Simon Glover wrote: Here's a patch to fix various typos etc. that I noticed on going over the spec. D'oh! Applied, thanks. -- Dan --"it's like this"--- Dan Sugalski

Re: Object spec

2004-02-16 Thread Dan Sugalski
At 5:35 PM -0500 2/13/04, Simon Glover wrote: A few questions: 1) How is the search order for the parents of a particular class specified? In particular, is this determined at the Parrot level or at the language level? Can it change at runtime? It's determined by the method invocation

Re: Object spec

2004-02-16 Thread Dan Sugalski
At 5:29 AM +0100 2/15/04, LF wrote: While I'm still working on the vtable and supporting code section, most of the revamp of PDD15 (objects!) is checked into the repository. It'd be worth checking it out and checking it out, as this would be the time to get comments in. great to see this, i gues

Re: Rules for method resolution?

2004-02-16 Thread Dan Sugalski
At 11:50 PM -0500 2/14/04, Michal Wallace wrote: Maybe for python, findmethod and getprop (or whatever the new eqivalent is) are the same... But I'd suspect that getprop is all any (working) python compiler will use. I've chopped out everything but this bit, since it's perfectly valid, and I think

Re: Object spec

2004-02-16 Thread Dan Sugalski
At 10:31 AM +0100 2/14/04, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: While I'm still working on the vtable and supporting code section, most of the revamp of PDD15 (objects!) is checked into the repository. It'd be worth checking it out and checking it out, as this would be

Re: Rules for method resolution?

2004-02-16 Thread Dan Sugalski
At 10:12 AM -0500 2/15/04, Michal Wallace wrote: On Sun, 15 Feb 2004, Luke Palmer wrote: > But I think findmethod is a good idea, cross-language-wise. Each language has a different idea of what a method is, and they can store it that way. As long as findmethod is vtableable, you can hook it u

[PATCH] library/sort.imc

2004-02-16 Thread Jens Rieks
Hi, The following patch adds parameter checking to _sort(). Wrong parameters are now reported (no exceptions are used yet). I've also added 3 more tests in t/pmc/sort.t (included in patchfile) jens Index: library/sort.imc === RCS fil

[PATCH] library/dumper.imc

2004-02-16 Thread Jens Rieks
Hi, The following patch adds parameter checking to _dumper(), as well as PMC property dumping. Wrong parameters are now reported (no exceptions are used yet). Tests are added to t/pmc/dumper.t, included in this patchfile. jens Index: t/pmc/dumper.t

[PATCH] IO fixes for Win32

2004-02-16 Thread Goplat
flags_to_win32 sets fdwShareMode to FILE_SHARE_DELETE, which is not supported in win98 and will cause the CreateFile to fail, so the ParrotIO is NULL, and subsequent PIO_read on its io PMC will return -1. When len is -1, some tests in t/src/io.t will think it's positive since it has it as a UINTVAL

Re: [perl #25825] [PATCH] imcc/t/syn/file.t fails with a non-english locale

2004-02-16 Thread Bernhard Schmalhofer
lAdam Thomason wrote: > Hmm, this is still wrong. The error message isn't just a function of the locale; it's also dependent on the OS. > AIX is now back to expecting "No such file or directory" courtesy of LANG=C > when the imcc error is "A file or directory in the path name does not exist." >

Re: Rules for method resolution?

2004-02-16 Thread TOGoS
Dunno why it is, but I tried to post a message about 30 hours ago and nothing ever showed up in the NNTP archive. So I re-subscribed again figuring that'd speed things up. You should see my perl box: ... WELCOME to [EMAIL PROTECTED] confirm subscribe to [EMAIL PROTECTED] GOODBYE from [EMAI

New Parrot-targetting language: ConfigScript3

2004-02-16 Thread TOGoS
And now for my earlier post that never showed up... http://togos.dhs.org/projects/configscript3/ It expects * ruby 1.8.0 to be installed as /usr/bin/ruby * the files under lib/ to be installed where ruby will find them (cp -R lib/* /usr/lib/ruby/site_ruby) programs are bin/configscript (the

Re: [PATCH] library/sort.imc

2004-02-16 Thread Leopold Toetsch
Jens Rieks <[EMAIL PROTECTED]> wrote: > The following patch adds parameter checking to _sort(). > Wrong parameters are now reported (no exceptions are used yet). > I've also added 3 more tests in t/pmc/sort.t (included in patchfile) Thanks, applied. leo

Re: [PATCH] library/dumper.imc

2004-02-16 Thread Leopold Toetsch
Jens Rieks <[EMAIL PROTECTED]> wrote: > The following patch adds parameter checking to _dumper(), as well as > PMC property dumping. > Wrong parameters are now reported (no exceptions are used yet). > Tests are added to t/pmc/dumper.t, included in this patchfile. Thanks, applied. leo