Re: Python on parrot

2005-05-15 Thread Michal
ts completed by the time of OSCON (in August). Sam, are you still interested in this? Is there a up to date cvs repo? http://pirate.tangentcode.com/ Can we get this code checked into the parrot svn repo? Unfortunately, no. Much of this code is copyright Michal Wallace. The good news is that the

Re: Namespaces, part 1 (new bits)

2004-10-07 Thread Michal
@ , etc... I've always kind of pictured something like this: >>> import parrot >>> parrot.load("perl","AI::Fuzzy") >>> f = parrot["perl::AI::Fuzzy::Label"] >>> f.addlabel("...") - Michal http://withoutane.com/

--pirate and coroutines

2004-10-07 Thread Michal
but it doesn't work at all with the --python flag. I know the --python stuff is temporary but it would be nice to be able to integrate the pie-thon code with pirate. - Michal http://withoutane.com/ ## gen.pir # # # parrot gen.pir : prints "ab" # parrot --

Re: --pirate and coroutines

2004-10-08 Thread Michal
eaner. Is there any way we could get a temporary --pirate flag that did everything --python did EXCEPT for the generator stuff? - Michal http://withoutane.com/

Re: --pirate and coroutines

2004-10-09 Thread Michal
edDocs-1.2.0/howto/components.html - Michal http://withoutane.com/

Re: [perl #38810] [PATCH] skip #7 t/dynoplibs/myops.t for mingw

2006-03-29 Thread Jurosz Michal
Err. This one is better. -- S pozdravem Michal Jurosz Index: t/dynoplibs/myops.t === --- t/dynoplibs/myops.t (revision 12069) +++ t/dynoplibs/myops.t (working copy) @@ -9,6 +9,9 @@ use Parrot::Test tests => 8; use Parrot::Con

Re: [perl #38810] [PATCH] skip #7 t/dynoplibs/myops.t for mingw

2006-03-30 Thread Jurosz Michal
ubtest UNEXPECTEDLY SUCCEEDED t/examples/japh..ok 1/17 unexpectedly succeeded S pozdravem Michal Jurosz

Perl 6 and Parrot links

2006-05-23 Thread Jurosz Michal
Hello, feel free to use http://wiki.kn.vutbr.cz/mj/index.cgi?Perl%206%20and%20Parrot%20links .

Re: Instructions to build parrot using mingw

2006-05-25 Thread Jurosz Michal
Hello, do not use msys. Try mingw32-make from cmd.exe. http://wiki.kn.vutbr.cz/mj/index.cgi?Build%20Parrot%20with%20MinGW can probably help too. Michal Jurosz Joshua Gatcomb wrote: > All: > It has been 1.5 years since I have built parrot and a lot has changed. > Today I decided to

Re: Python on parrot

2005-05-16 Thread Michal Wallace
course if you're targeting parrot developers who may or may not know python, that's another story... But from what I can tell, the other compilers in the parrot svn tree just aren't getting the kind of exposure you're talking about. I don't know, maybe I'm just rambling,

Re: about python on parrot

2005-05-25 Thread Michal Wallace
On Wed, 25 May 2005, [EMAIL PROTECTED] wrote: hi python on parrot already have not develop? Hi there, I'm not sure I understand your question either... But maybe this will help? http://pirate.tangentcode.com/ - Michal http://withoutane.com/

refcounts and DOD

2005-05-25 Thread Michal Wallace
nals.html seems to imply the mark and sweep system only... Or does parrot do all three? - Michal http://withoutane.com/

new list for pirate [python on parrot]

2005-06-12 Thread Michal Wallace
ree to hop on board. The signup page is here: http://cornerhost.com/mailman/listinfo/pirate Thanks! - Michal http://withoutane.com/

Re: [pirate] Setting up Pirate & Parrot

2005-07-01 Thread Michal Wallace
ndled differently by getattr. (In cpython there's a difference beween a function and a 'bound' method, and I think the magic happens in getattr) Anyway, I *think* the existing pmc's solve all these problems. Sincerely, Michal J Wallace Sabren Enterprises, Inc. -

Re: PMCs: Should We Use Them?

2005-07-07 Thread Michal Wallace
all as much as I could, but there's always someone who wants the version you're not running. :) - Michal http://withoutane.com/

Re: PMCs: Should We Use Them?

2005-07-08 Thread Michal Wallace
On Thu, 7 Jul 2005, Larry Wall wrote: On Thu, Jul 07, 2005 at 09:28:04PM -0400, Michal Wallace wrote: : What I'd want is to be able to download the language : specific extensions as a library from cpan. Better : yet if users can do it themselves without having : to bug me. Hmm... : Sure

urgent parrot bug / PR opportunity

2005-08-03 Thread Michal Wallace
someone happens to know how to fix it by tomorrow, I would really appreciate it, and it would certainly leave the OSCON atendees with a better impression of parrot! - Michal http://withoutane.com/ ## # generated by pirate on Wed

Re: urgent parrot bug / PR opportunity

2005-08-03 Thread Michal Wallace
On Thu, 4 Aug 2005, Leopold Toetsch wrote: Michal Wallace wrote: And wouldn't you know it... A bug on the parrot side cropped up out of nowhere to break them! ==17366== valgrind's libpthread.so: IGNORED call to: pthread_attr_destroy ==17366== Invalid read of size 4 ==173

Re: [pirate] OSCON slides

2005-08-06 Thread Michal Wallace
We should have a low-traffic "compiler" list. Like... this one here for pirate, which is all about generic compiler issues. :) And there is: http://svn.perl.org/parrot/trunk/docs/req/model_users.pod I like that! Sincerely, Michal J Wallace Sab

Re: [pirate] Re: Python PMC's

2005-08-24 Thread Michal Wallace
for the ability to do certain optimizations like this up front, sacrificing flexibility for speed. I know there are many programs that won't allow for this, but for the ones that do, I'd like to be able to do a sort of static compile like this. In other words, sometimes a pyt

pirate refactoring update

2005-08-25 Thread Michal Wallace
.cornerhost.com/mailman/listinfo/pirate Other links: The priate home page is here: http://pirate.tangentcode.com/ The code for pirate is available for browsing here: http://pirate.versionhost.com/viewcvs.cgi/pirate/ Thanks for reading! Sincerely, Michal J Wallace Sabren Enterprises, Inc.

IMCC build fails again

2003-07-09 Thread Michal Wallace
bison out of the default Makefile or something? Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: Events

2003-07-20 Thread Michal Wallace
MIDI events, it didn't work: I'd press a note on the keyboard and python would crash. The fix was to actually write a C module that locked the interpreter whenever it received a callback. Will that kind of locking be necessary in parrot, or would these IO callbacks allow outside DLL&

approaching python

2003-07-23 Thread Michal Wallace
is, I don't have a lot of experience when it comes to compilers, but I do know a whole lot about python. :) If this approach makes sense, is there someone with IMCC experience who'd be willing to do some virtual pair programming with me and spike out a prototype? Sincerely, Micha

Re: approaching python

2003-07-24 Thread Michal Wallace
lready a parser written in python (in the pypython project), and it makes trees that work with the code generator. :) So I'm saying, use those tools, and just run the compiler from python until it's good enough to compile itself. That just seems like the quickest way to get python w

Re: approaching python

2003-07-24 Thread Michal Wallace
doesn't really matter how it gets there. It's just that I personally am a lot more comfortable with the higher level concepts. I'd rather work with visit_if() than a string of python bytecodes. My intuition is that you could do a lot better job with optimization that way to

Re: approaching python

2003-07-28 Thread Michal Wallace
then dealing with the C-stuff. I think it would be nice to have that python API wrapper so C-module authors could support both versions with the same API... Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

pirate ("py...rrot")

2003-07-30 Thread Michal Wallace
/ CVS: cvs -d:pserver:[EMAIL PROTECTED]:/cvs/sixthdev login [no password] cvs -d:pserver:[EMAIL PROTECTED]:/cvs/sixthdev co pirate Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: approaching python

2003-07-30 Thread Michal Wallace
ally have to worry about the stack issue at all. Python's stack problems seem to be confined to the bytecode level, so if you're translating the bytecode directly, you'd need to either simulate the stack or work around it somehow, but, as far as I can tell, it should be no problem at

subroutines and python status

2003-07-31 Thread Michal Wallace
sts in parrot, and you can call it (and presumably other parrot subs) directly from python code: if 1 > 2: _pyprint("one is greater than two...") print "neat,huh?" If I could get this subroutine stuff figured out, you could call functions written in python, too. :)

Re: subroutines and python status

2003-07-31 Thread Michal Wallace
w. Actually, between imcc and the python compiler module, it's not nearly as hard as I thought it would be. So far, I think the parrot version is actually a lot simpler than the python compiler, just because imcc is doing so much of the work. Sincerely, Michal J Wallace Sa

Re: subroutines and python status

2003-07-31 Thread Michal Wallace
On Thu, 31 Jul 2003, Brent Royal-Gordon wrote: > Michal Wallace: > > I can store all my subroutine definitions in > > a list or something and then dump them out > > after the "__main__" routine. > > That seems to be the way to do it, speaking as someo

Re: subroutines and python status

2003-07-31 Thread Michal Wallace
nd a temporary variable, because all the operators are either unary or binary... I might try that after I get functions and classes working. > In any case, great work! :) thanks! Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: subroutines and python status

2003-08-01 Thread Michal Wallace
we come ... > > As would I. If you're willing, Michal, we can check it in and get > you CVS repository access. Hey guys, I'd kind of like to keep it where it is - for now, anyway. But I'm *more* than happy to give people access to the repository. I just set up users for you

imcc's "call" vs first class functions

2003-08-01 Thread Michal Wallace
hon needs to look up the function's address at runtime and I couldn't figure out how to make that happen with call... So I just did jsr for now, hoping someone could tell me how to fix it. Is that even possible with "call"? If not, we can just hard code the instructions, but it

generic code generator? [was: subroutines and python status]

2003-08-03 Thread Michal Wallace
houldn't be too terribly hard. What do you think? Want to try squishing pirate/python and pirate/lua together? :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: generic code generator? [was: subroutines and python status]

2003-08-03 Thread Michal Wallace
t; > Yeah, I like the idea. Let's try this out. Great! I figure since you've already got lua 4 working, we can leverage what you've already got and then just add the new features for python and lua 5. If you're still around, want to meet up online real quick? I'm logged

double checking: in vs on?

2003-08-03 Thread Michal Wallace
s: "in vs on\n" ## And in the PMC vtable, it maps this way: in = get_*_keyed, set_*_keyed, delete_keyed_* on = getprop / setprop / delprop Is that right? ( Any reason it's not del_*_keyed? :) ) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: generic code generator? [was: subroutines and python status]

2003-08-05 Thread Michal Wallace
about decoupling my code generator from python and sharing it with another language instead. [1] lua report: http://members.home.nl/joeijoei/parrot/report.pdf [2] http://pirate.versionhost.com/viewcvs.cgi/pirate/INTEROP?rev=1.1 Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: generic code generator? [was: subroutines and python status]

2003-08-08 Thread Michal Wallace
-readable > form. (Though I'd prefer the AST that's frozen into the bytecode be > in a form that's more efficient to deserialize) I'd best go and > update the license terms then, to make sure there aren't any > problems. (Old issues raised by GCC an age ago) I'm not sure I follow this. Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

why new_pad *INT*?

2003-08-09 Thread Michal Wallace
1. Should there be a new_pad that takes no arguments to do this, so we don't have to keep count manually? 2. When would you NOT want to use new_pad (current_depth+1) ? Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAI

Re: why new_pad *INT*?

2003-08-10 Thread Michal Wallace
eated (see closure.pmc), then restore that > when it is invoked. Thanks! I see the light. :) I just made all python routines closures for now, and all my tests passed. Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hostin

Re: generic code generator? [was: subroutines and python status]

2003-08-10 Thread Michal Wallace
omething.xml > pirate -l python > something.imc imcc something.imc or just: pypirate something.py | pirate -l python | imcc or just: pypyrate -r something.py That also means the "pirate" command can be written in any language we like. Probably eventually that&#x

pirate guide

2003-08-10 Thread Michal Wallace
Just got the parrot calling conventions working for Py-Pirate. I also wrote a guide that explains how the code is laid out for people who don't know python: http://pirate.versionhost.com/viewcvs.cgi/pirate/GUIDE?rev=1.1 Sincerely, Michal J Wallace Sabren Enterprises

help raise hell

2003-08-11 Thread Michal Wallace
failure isn't an exception. Or am I missing something? CAN trap this though: >>> raise 'hell' So it's not a showstopper, but still... Is this easily fixable? I miss my idiom... :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. ---

okay to use iterator?

2003-08-11 Thread Michal Wallace
.arg 1 .arg key call __py__print print ": " val = s[skey] .arg 1 .arg val call __py__print enddict: print "}" empty:

why ~ for xor?

2003-08-11 Thread Michal Wallace
Out of curiosity, why does ~ map to both unary bitwise-not and binary bitwise-xor in imcc? I was expecting xor to be ^ and ^^ Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http

bug: two segfaults

2003-08-14 Thread Michal Wallace
hould I be reporting these somewhere else?) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ -- .sub __main__ #print &q

Re: IMCC hangs

2003-08-14 Thread Michal Wallace
On Sun, 10 Aug 2003, Vladimir Lipskiy wrote: > > Seems to be related with the multiple freeing reported by Michael. > > I thought his name was Michal (:>8 yes, I was born without an e. :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. --

Re: why new_pad *INT*?

2003-08-14 Thread Michal Wallace
uld start with 'new_pad 2' I think the error happens because I'm calling a depth 2 function from depth 0, but if I change adder's new_pad depth to 1, it can't find "base". I don't know how to get this to work the way I want. Can

RE: pirate status / need help with instances

2003-08-14 Thread Michal Wallace
nsparent, but that's fine. It's a small price to pay, and if PerlClass() threw an exception remind us to use it, then it probably wouldn't be a problem at all. So I think invoke on the parrotclass is the way to go. Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

repeat() not implemented in PerlInt

2003-08-14 Thread Michal Wallace
3 goto cmp1 cmp1: end .end [~/pirate]: imcc bug.imc repeat() not implemented for PerlInt What happened!? :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

serializing functions?

2003-08-14 Thread Michal Wallace
can't actually save a generator once you've got it, so it's kind of a pain. Stackless python was able to do pickle generators for a while, but I think the feature got removed. Does this work out of the box? If not, does anyone have any idea how to even approach this problem? Sincer

Re: generic code generator? [was: subroutines and python status]

2003-08-14 Thread Michal Wallace
#x27;s why I said stick to C or parrot. I'm not sure I understand why C wouldn't be portable... (I don't know c at all but I thought that was the point)?? I'd much rather use parrot. Where "parrot" means something else compiled down to parrot, and "something else&quo

Re: Should I target Parrot?

2003-08-21 Thread Michal Wallace
ible with other languages, you're more likely to get people to try your language for a small chunk of code here and there, as people will be able to use libraries they're familiar with your syntax. It'll help people shorten their learning curve, in other words. (But that's just my pr

Re: parrot bug: continuations/multiple return

2003-08-14 Thread Michal Wallace
will lead > to an used once LHS, which the optimizer already can get rid of. Well, if you write it, I'll have pirate inspect the AST and try it out for you. :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: parrot bug: continuations/multiple return

2003-08-14 Thread Michal Wallace
On Sat, 9 Aug 2003, Benjamin Goldberg wrote: > Michal Wallace wrote: > [snip] > > def f(): > > return g() > [snip] > > # f from line 3 > > .pcc_sub _sub1 non_prototyped > > .local object res1# (vi

Re: calling conventions, variable-length parameter lists

2003-08-14 Thread Michal Wallace
t wouldn't work? Maybe there should be a register reserved for an Array and another for a Hash (for extra keyword arguments)? Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: there's no undef!

2003-08-17 Thread Michal Wallace
On Sun, 17 Aug 2003, Benjamin Goldberg wrote: > Michal Wallace wrote: > > > Uh-oh. I just went to implement "del x" > > and there's no op to remove a variable > > from a lexical pad! :) > > Why would you want to remove a variable from a lexical pad?

Re: set vs. assign, continued: 'add' vs. 'add!'

2003-08-17 Thread Michal Wallace
g about. So this probably ought to be done at the AST code generation level. Leo sent me a patch that does some basic type inference in pirate and figures out when not to generate the extra PerlUndef. It's in the method binaryExpression. (It's just not used yet because at the time it w

Re: there's no undef!

2003-08-17 Thread Michal Wallace
> Does/should this also throw a NameError? Looks like it: >>> x = 1 >>> y = lambda : x >>> del x >>> z = y() Traceback (most recent call last): File "", line 1, in ? File "", line 1, in NameError: global name 'x' is not defined Anyway, the short answer is I'm happy with the solution I've got now. It's easy and it does what I expect. But I'll happily change it if you send me a patch. :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: Method call parameters

2003-08-24 Thread Michal Wallace
I haven't really thought about how to implement any of this stuff, but it looks like fun. :) I guess if the python compiler knows how to send the right things, it can't be too hard to figure out. Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: [CVS ci] PackFile-15: print warning location

2003-08-24 Thread Michal Wallace
t line 5, which one will it mean? :) Seems like normally you'd want the high-level source line, unless you're debugging the compiler, in which case you want the low level one. Maybe this should be a command line argument to parrot? Sincerely, Michal J Wallac

Re: why ~ for xor?

2003-08-14 Thread Michal Wallace
On Mon, 11 Aug 2003, Thomas Vesper wrote: > Michal Wallace wrote: > > Out of curiosity, why does ~ map to both > > unary bitwise-not and binary bitwise-xor > > in imcc? > > > > I was expecting xor to be ^ and ^^ > > See Apocalypse 3 for this. > ^ was re

RE: help raise hell

2003-08-14 Thread Michal Wallace
thing else went wrong." (my code only gives you one except: block so far, but real python lets you have as many as you like for different types of exceptions) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: pirate 0.01 ALPHA!

2003-08-16 Thread Michal Wallace
On Sat, 16 Aug 2003, Sean O'Rourke wrote: > Michal Wallace <[EMAIL PROTECTED]> writes: > > > Tadaa! > > /me blinks at the list comprehensions. :) > Cool stuff. test_microthreads failed for > some reason I still need to look into, but > there's a

Re: parrot bug: continuations/multiple return

2003-08-14 Thread Michal Wallace
# (callingExpression:335) ret0: .result res1 # (callingExpression:338) .pcc_end # (callingExpression:339) .pcc_begin_return # (visitReturn:530) .return res1 # (visitReturn:531) .pcc_

Re: This Week's Perl 6 Summary

2003-08-14 Thread Michal Wallace
On Tue, 5 Aug 2003, Piers Cawley wrote: > Approaching Python > Discussions (and coding) of the Parrot implementation of Python > continued this week. Michal Wallace is working on taking a preexisting > (but incomplete, it's a proof of concept only) python parse tr

bug with parrot -O2

2003-08-17 Thread Michal Wallace
time: 22 [~/pirate]: parrot -O=2 weightless.imc get_pmc_keyed() not implemented in class 'PerlInt' Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: Should I target Parrot?

2003-08-24 Thread Michal Wallace
On Fri, 22 Aug 2003, Benjamin Goldberg wrote: > Michal Wallace wrote: > > > > On Thu, 21 Aug 2003, Benjamin Goldberg wrote: > > > > > If you want, instead, to serialize interpreter->microthreads, > > > however... well, you'd *still* get almost the

Re: Should I target Parrot?

2003-08-22 Thread Michal Wallace
is kind of a loose word for it because it's just a list of generators that increment at each tick. The bytecode I'm generating there is really really bad, so it runs pretty slow, but it definitely works. You might try playing around with that. Sincerely, Michal J Wallace Sabren En

Re: Should I target Parrot?

2003-08-22 Thread Michal Wallace
get almost the whole interpreter serialized. > > If you want, instead, to serialize interpreter->microthreads, however... > well, you'd *still* get almost the whole interpreter serialized, but > you're getting more bang for your buck :) Well how else are we going to i

thanks and pow / div ops

2003-08-15 Thread Michal Wallace
"raise hell" is working great with the new find_lex exceptions. Thanks! :) Any plans to to add pow for PMC's? What about separate ops for floor/true division? http://www.python.org/doc/2.2.1/whatsnew/node7.html Sincerely, Michal J Wallace Sabren E

Re: pirate status / need help with instances

2003-08-14 Thread Michal Wallace
On Tue, 12 Aug 2003, Michal Wallace wrote: > I wound up getting a couple C books today. I'm > trying to see what I can do about wrapping > PyObject as a PMC... What's the secret to making parrot recognize a new PMC? I've got my .pmc file but I'm not sure what to do n

Re: A certain 4 letter word (was Re: Parrot and STDOUT/STDERR)

2003-08-15 Thread Michal Wallace
wrapper for the two vtables). I figure it would be nice if we could just wrap the generic pyobject interface, and then hopefully all the existing python modules will just work. :) Aside from that, I was going to follow Dan's lead. Sincerely, Michal J Wallac

Re: generic code generator? [was: subroutines and python status]

2003-08-14 Thread Michal Wallace
irate generates *is* pmc based, since python doesn't have type declarations. Generic pirate should probably have a "declare" node though. (Especially if it's to handle perl6, right?) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

bug: clear_eh patricide after catch

2003-08-14 Thread Michal Wallace
re if it goes away after the exception is caught, but I need a way to clear the exception handler after I get out of the try/except or try/finally block... Otherwise later exceptions will bring me backward in the code. :/ Sincerely, Michal J Wallace Sabren Enterprises, Inc. ---

pirate status / need help with instances

2003-08-14 Thread Michal Wallace
grab the lexical, check whether it's a class, and if so, do "newclass" instead of "invoke". I also thought about making a constructor into just a normal function, but then the lexical would have to bind to either the class or the function, and that's no good

Re: thanks and pow / div ops

2003-08-16 Thread Michal Wallace
On Fri, 15 Aug 2003, Leopold Toetsch wrote: > PS: have a look at the rather new C opcode in PIR ;-) Cool! :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: h

there's no undef!

2003-08-16 Thread Michal Wallace
Uh-oh. I just went to implement "del x" and there's no op to remove a variable from a lexical pad! :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: bug: clear_eh patricide after catch

2003-08-14 Thread Michal Wallace
> try/finally block... Otherwise later exceptions > > will bring me backward in the code. :/ > > Can you insert C before you fall through to except/finally? Yep. That works perfectly. Thanks. :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. --

Re: parrot bug: continuations/multiple return

2003-08-14 Thread Michal Wallace
th cvs and now everything works! Thanks! Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

save/restore on yield?

2003-08-16 Thread Michal Wallace
Just tried out Kenneth Grave's yield stuff -- it works great! But shouldn't .pcc_begin_yield and .pcc_end_yield do "saveall" and "restoreall", respectively? Is there a case where we wouldn't want this? Sincerely, Micha

Re: save/restore on yield?

2003-08-16 Thread Michal Wallace
_pad .pcc_begin_yield .return whatever .pcc_end_yield restoreall So nevermind. :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

try/catch bug with coroutines

2003-08-16 Thread Michal Wallace
n't *trap* that StopIteration in a "try" block unless I create the generator inside that same block. Following is a detailed test case in imc that illustrates the problem. Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [

Re: there's no undef!

2003-08-16 Thread Michal Wallace
On Sat, 16 Aug 2003, Leopold Toetsch wrote: > I have put in scratchpad_delete > > peek_pad P0 > delete P0["foo"] > > deletes names only. Thanks! works great! Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contac

getprop and find_lex?

2003-08-16 Thread Michal Wallace
7; for properties. (Nicer than making prophash and then checking that to see if it has a particular key) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: getprop and find_lex?

2003-08-16 Thread Michal Wallace
On Sat, 16 Aug 2003, Sean O'Rourke wrote: > Michal Wallace <[EMAIL PROTECTED]> writes: > > I expected getprop to behave like find_lex > > and throw an exception if the property doesn't > > exist, but it doesn't: > > Are you sure that propert

Re: calling conventions, variable-length parameter lists

2003-08-14 Thread Michal Wallace
; Hmm. That would be easy if there were an easy way to loop through the registers... reg = 5 for x = 1 to numparams: $P0 = P[reg+x] Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

pirate 0.01 ALPHA!

2003-08-16 Thread Michal Wallace
little touch, I thought :) Anyway, I'm going to shift focus to some of my other projects for a few weeks, but I'll be back in september. (And I'll still be around if anyone has bug reports or patches) Thanks everyone for helping me get this far! Sincerely, Michal J W

Re: pirate status / need help with instances

2003-08-14 Thread Michal Wallace
what I can do about wrapping PyObject as a PMC... Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

parrot bug: continuations/multiple return

2003-08-14 Thread Michal Wallace
es0 res0 = new PerlInt res0 = 1 .pcc_begin_return .return res0 .pcc_end_return goto endif0 elif0: ### else return 0 .local object res1 res1 = new PerlInt res1 = 0 .pcc_begin_return .return res1 .pcc_end_return end

Build on Win32 with MinGW

2005-02-23 Thread Michal Jurosz
See my step by step quide and results: http://wiki.kn.vutbr.cz/mj/index.cgi?Build%20Parrot%20with%20MinGW Refactoring is welcome. I am C, Parror and English beginner :-). Michal Jurosz

Re: [RELEASE] Parrot 0.1.2 "Phoenix" Released!

2005-03-07 Thread Michal Jurosz
2 3.39% 53, 57 t/pmc/sys.t1 256 11 100.00% 1 5 tests and 66 subtests skipped. Failed 12/135 test scripts, 91.11% okay. 49/2204 subtests failed, 97.78% okay. S pozdravem Michal Jurosz

Parrot 0.1.2 with MinGW32 (some experimets)

2005-03-10 Thread Michal Jurosz
;print $^O" msys --- config\init\hints.pl sub runstep { + my $O = lc($^O); + $O = 'mswin32' if $O =~ /^(msys|mingw)/; - my $hints = "config/init/hints/" . lc($^O) . ".pl"; + my $hints = "config/init/hints/" . $O . ".pl"; S pozdravem Michal Jurosz http://xrl.us/fddn

Re: Parrot 0.1.2 with MinGW32 (imcc/t/syn/file.t)

2005-03-10 Thread Michal Jurosz
; $ perl -Ilib imcc/t/syn/file.t ... ok 11 - including a non-existent file ... Michal Jurosz ICQ#:93348414

Re: Parrot 0.1.2 with MinGW32 (some experimets)

2005-03-14 Thread Michal Jurosz
Leopold Toetsch wrote: > The test could include C< 0? >. >> +$err_msg =~ s/\r//g; Could you please provide one patch for items like above, thanks. TortoiseCVS patch file attached. S pozdravem Michal Jurosz Index: imcc/t

Re: Parrot 0.1.2 with MinGW32 (some experimets)

2005-03-15 Thread Michal Jurosz
(msys|cygwin)/; my $hints = "config/init/hints/" . $O . ".pl"; See attached mswin32.pl See also http://xrl.us/fddn (MJWiki:Build Parrot with MinGW) S pozdravem Michal Jurosz C:\usr>perl -e "print $^O" MSWin32 C:\usr>perl -v This is perl, v5.8.4 built for

Re: Different ways for MinGW

2005-03-21 Thread Michal Jurosz
1 100.00% 1 5 tests and 66 subtests skipped. Failed 12/139 test scripts, 91.37% okay. 100/2225 subtests failed, 95.51% okay. S pozdravem Michal Jurosz

Re: Parrot_Exec_OS_Command interface ?

2005-03-21 Thread Michal Jurosz
d # 1 # ' # expected: 'Hello, World! # 0 # ' # Looks like you failed 1 tests of 1. ### config_lib.pasm - set P0["slash"], "/" + set P0["slash"], "\\" $ parrot config_lib.pasm $ perl -Ilib t/pmc/sys.t 1..1 ok 1 - spawnw, _config S pozdravem Michal Jurosz

  1   2   >