Re: [perl #43218] Memory leaks (compreg, invokecc)

2008-07-23 Thread Michal Jurosz
from core) I wrote new test in PIR "bad-int-t4.pir" ( http://mj41.cz/down/Parrot/tests-bugs-etc/02-probably%20memory%20leaks/ or attached ). -- S pozdravem Michal Jurosz bad-int-t4.pir Description: Binary data

Re: Build status wiki page

2008-01-08 Thread Michal Jurosz
Perl 6 and Parrot links" ( http://perl6.cz/wiki/Perl_6_and_Parrot_links ). But it probably can't help developers much. -- S pozdravem Michal Jurosz

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

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: [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

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

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.

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

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: 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

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: 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

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: [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. -

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/

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/

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/

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: 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: 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

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 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: 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 (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

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: [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

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: --pirate and coroutines

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

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/

--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: 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/

Re: Objects: Now or forever (well, for a while) hold your peace

2004-02-19 Thread Michal Wallace
of python code, > or any other code that slammed on a property, and that's cool. Python > code *won't* see the attributes, but again that's OK as it > *shouldn't*, since it's private. But surely perl 6 and ruby have SOME public attributes?! In java it's the convention to say getWhatever() and setWhatever() but you can still make a public attribute, and i think that should use getprop. One last thing... Python (at least the way I envision it) is going to need to OVERRIDE the getprop vtable method. If you define __getattr__ or __setattr__ methods for a class, it will call those instead of just using PMC properties. So there's at least three different styles now: Parrot props, Python props, and Parrot attributes... And we haven't heard from the other language developers yet. Luckily the first two will look exactly the same from the bytecode's point of view. I'm just worried about the third. :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ -

Re: Objects: Now or forever (well, for a while) hold your peace

2004-02-18 Thread Michal Wallace
for when a class has two parents with attribute "X" and I want to find the one for one superclass or the other? That sounds useful, but it's just my guess at what you're talking about. :) I don't mean to be so grouchy, but you said to speak now or forever hold my peace, so.

Re: Rules for method resolution?

2004-02-15 Thread Michal Wallace
e has objects that are all the same size and wants attributes instead of properties then it should handle that internally. The interface should be the same either way. Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ -

Re: Rules for method resolution?

2004-02-14 Thread Michal Wallace
On Sat, 14 Feb 2004, Michal Wallace wrote: > class Alice: > def whoami(self): > return "Alice" > class Bruce: > def whoami(self): > return "Bruce" > > a = Alice() > b = Bruce() > >

Re: Rules for method resolution?

2004-02-14 Thread Michal Wallace
ahahahaha" class Owner: pass x = Owner() x.method = Methodical() assert x.method() == "muahahahaha" Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ -

Re: RT Cleanup

2004-02-09 Thread Michal Wallace
On Mon, 9 Feb 2004, Melvin Smith wrote: > At 02:00 PM 2/9/2004 -0500, Michal Wallace wrote: > >On Mon, 9 Feb 2004, Melvin Smith wrote: > > > My take on it is, since it is an intermediate language, we don't need > > > ability to have keywords as varia

Re: RT Cleanup

2004-02-09 Thread Michal Wallace
to move pirate towards generating names that match the actual variables (though I do still use _000 counters) Would it be valuable if all variables had (or could have) a $ in front of them? The ones that match /\$[PINS]\d+/ would still have implicit types, and anything else would

Re: Backward branch, warnocked.

2004-02-02 Thread Michal Wallace
that imcc doesn't realize the two variables ought to be distinct, right? A workaround is to call pushtopi and poptopi around the "call" statement... What's the benefit of doing it this way, rather than using separate subs? Sincerely, Michal J Wallace Sabren Enterprises, Inc. --

python PMCs?

2004-02-02 Thread Michal Wallace
be tricked into thinking they have a reference-counting python interpreterer lying around. Code is in http://pirate.versionhost.com/ under pirate/python/pmc/piobject.pmc (it's VERY sketchy right now - only a few lines to prove the concept). Sincerely, Michal J Wallace Sab

Re: How does perl handle HLL C?

2004-01-22 Thread Michal Wallace
rovide a C-based compiler as a PMC or you can teach your language to compile itself... Or you can even write your language in some other language that targets parrot. :) > Nigel. Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact:

Re: how to subclass dynamic PMCs?

2004-01-22 Thread Michal Wallace
On Thu, 22 Jan 2004, Leopold Toetsch wrote: > Michal Wallace <[EMAIL PROTECTED]> wrote: > > > I'm trying to make a dynamically loaded PMC that > > subclasses another dynamically loaded PMC. > > Its a linker problem, but not too simple. Your analysis is c

how to subclass dynamic PMCs?

2004-01-21 Thread Michal Wallace
t_integer function to PiString instead of trying to inhert, everything works: 51 52 It seems the problem is that pistring.so can't load because it can't find a definition for Parrot_PiSequence_get_integer... Even though it's defined in the other *.so file that&#

Re: Events and JIT

2004-01-16 Thread Michal Wallace
gnals have nothing to do with the program itself but come entire from the outside. (Whereas with the regular events, the data comes from outside but the choice to listen for the data was made inside the program.) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: Events and JIT

2004-01-16 Thread Michal Wallace
velopers call the even loop explicitly? Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Mr Parrot's Neighborhood

2004-01-12 Thread Michal Wallace
g a single continuation. Like > this: > > > newsub $P0, .Continuation, again > again: > # ... loop body > invoke $P0 Sure. So the stacks are always the same every time Mr Parrot reaches "again:", but the obj

Re: [PATCH] new_noinit and init ops

2004-01-12 Thread Michal Wallace
On Mon, 12 Jan 2004, Luke Palmer wrote: > Michal Wallace writes: > > On Mon, 12 Jan 2004, Luke Palmer wrote: > > > > > I have somewhat a predicament. I want to create a continuation, and > > > have that continuation stored in the register stack that it c

Re: [PATCH] new_noinit and init ops

2004-01-12 Thread Michal Wallace
g conventions, it's already in P0. Can't you store that in a local variable on the invoke? Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: yield op?

2004-01-11 Thread Michal Wallace
On Sun, 11 Jan 2004, Leopold Toetsch wrote: > Michal Wallace <[EMAIL PROTECTED]> wrote: > > When you invoke a Coroutine, it calls swap_context() > > from src/sub.c ... There's an else clause in there > > that either swaps or restores theinterpreter sta

Re: yield op?

2004-01-09 Thread Michal Wallace
On Fri, 9 Jan 2004, Leopold Toetsch wrote: > Michal Wallace <[EMAIL PROTECTED]> wrote: > > > Hey all, > > > When you invoke a Coroutine, it calls swap_context() > > Can you have a look at imcc/t/syn/pcc.t, there is an coroutine > iterator test. Yep, it h

Re: [PATCH] Continuations now close over register stacks

2004-01-09 Thread Michal Wallace
traditional languages, and languages like Python with > no support for continuations. Gotcha. It just looked odd to me that you had to call savetop... But now I see that's because I was doing the wrong thing all along. :) Sincerely, Michal J Wallace Sab

Re: [PATCH] Continuations now close over register stacks

2004-01-09 Thread Michal Wallace
On Fri, 9 Jan 2004, Leopold Toetsch wrote: > Michal Wallace <[EMAIL PROTECTED]> wrote: > > > newsub $P1, .Continuation, done > > For returning just use a .RetContinuation. Or still better, just omit > $P1 totally here: > > > .pcc_call $P0, $P1 Aha

Re: BUG: coroutine + exception = stack_height segfault

2004-01-09 Thread Michal Wallace
On Fri, 9 Jan 2004, Jeff Clites wrote: > On Jan 9, 2004, at 12:24 AM, Leopold Toetsch wrote: > > > Michal Wallace <[EMAIL PROTECTED]> wrote: > >> #!/bin/env parrot > >> # > >> # yieldbug.imc > >> # > >> # This program should p

yield op?

2004-01-09 Thread Michal Wallace
voke" of ther return continuation, because neither of these things would let you fire a method on the coroutine instance. That's why I'm thinking we need a yield op. Am I on the right track here? Either way, what can I do to get this working? Sincerely, Michal J Wallace Sabren Enterp

Re: [PATCH] Continuations now close over register stacks

2004-01-08 Thread Michal Wallace
before every function call, and that passes my tests but I'm having trouble visualizing why. Would I ever NOT want to call savetop before creating a continuation? Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

BUG: coroutine + exception = stack_height segfault

2004-01-08 Thread Michal Wallace
rted # # It works fine if I comment out the set_eh line. # Can anyone help here? # # (Sorry for the long listing. It's as short as I could make it.) # # - Michal # .sub __main__ .local Continuation retcon .local Coroutine it .local object res # create an exception handl

weird bug w/new imcc syntax

2004-01-08 Thread Michal Wallace
lString $P0 = "hello\n" $P1 = _do_print($P0) end .end .pcc_sub _do_print non_prototyped # # .param object s print s .pcc_begin_return .pcc_end_return .end Sincerely, Michal J Wallace Sabren Enterprises, Inc. -

re: [PATCH] Continuations now close over register stacks

2004-01-08 Thread Michal Wallace
s coming from the .pcc_begin_return line. This code works fine if I change the .Continuation to a .Closure or .Coroutine... It also worked before the patch. Do I have my calling conventions screwed up or is this a bug? Sincerely, Michal J Wallace Sabren Enterprises, Inc. ---

Re: how do I instantiate? -- was: Objects!

2004-01-08 Thread Michal Wallace
On Thu, 8 Jan 2004, Leopold Toetsch wrote: > Michal Wallace <[EMAIL PROTECTED]> wrote: > > > What exactly is the difference between an > > attribute and a property? > > $ perldoc docs/pdds/pdd15_objects.pod > /TRANSLATION AND GLOSSARY Thanks. Don't mind me.

Re: how do I instantiate? -- was: Objects!

2004-01-08 Thread Michal Wallace
On Thu, 8 Jan 2004, Leopold Toetsch wrote: > Michal Wallace <[EMAIL PROTECTED]> wrote: > > > I'm not even trying to get objects working yet. I just > > need something that'll let me run setprop on it > > You can attach properties to all PMCs. And WRT obj

RESOLVED: how do I instantiate?

2004-01-08 Thread Michal Wallace
n :-) Thanks for the register-stacks-for-continuations patch! That should fix some bugs I've got with generators. :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

Re: how do I instantiate? -- was: Objects!

2004-01-07 Thread Michal Wallace
ow why not? In python or javascript it's easy to just create an object of no particular class just to have a place to stick things. foo = object() foo.x = 1 It was working fine in parrot too, but then it went away. :/ Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

how do I instantiate? -- was: Objects!

2004-01-07 Thread Michal Wallace
t the magic formula yet That code above gives: Method 'init' not found in file '(unknown file)' near line -1 (If anyone can post a working example of the code above I'd really appreciate it!) Sincerely, Michal J Wallace Sabren Enterprises, Inc.

python exceptions broken

2003-12-03 Thread Michal Wallace
tring register for now... But it would be REALLY nice to be able to use the base ParrotException and not have to write my own subclass just to get a PMC slot. Would it be possible to get a ['_pmc'] or something in addition to ['_message']? Sincerely, Michal J Wallac

feature request: line numbers in errors?

2003-12-03 Thread Michal Wallace
iving me errors. I don't suppose there's one magic error routine that controls all the error messages, and someone could just add a line or two to handle this? :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [

Re: More object stuff

2003-12-03 Thread Michal Wallace
t uses internally. I know perl uses a return value instead of throwing an exception ("open or die", right?).. So would parrot's internal file-opener just throw a ParrotFileException? So perl's open() command catches it and returns 0, while python's open() command catches i

Re: Languages status (attention compiler maintainers)

2003-10-08 Thread Michal Wallace
See http://pirate.tangentcode.com/ Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --

setline?

2003-09-25 Thread Michal Wallace
Sorry, I've been following this list with one eye tied behind my back... What happened to setline? Should I emit something else instead? Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhos

Re: attaching debuggers

2003-09-19 Thread Michal Wallace
put whatever you want in there. I have no idea how it works internally, but from your code you just put this in your code: import pdb; pdb.set_trace() and it stops right there and you're in the debugger. Sincerely, Michal J Wallace Sabren Enterprises, Inc. ---

Re: Of AST and YAL

2003-09-07 Thread Michal Wallace
? C or Perl or what? If it's in perl (or python of course) I'd like to merge in all the pirate code generation stuff. (My plan for this week was to do something very similar, and try to get a simple lisplike language to integrate with python) Sincerely, Michal J Wa

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: 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: 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
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

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-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: 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: 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
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?

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: 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

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: 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

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: 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

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: 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/ --

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

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: 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

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

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: 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: 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: 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: 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: 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/ --

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

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/ --

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

  1   2   >