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

2008-07-23 Thread Michal Jurosz
) 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
). 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 dust off some

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

pirate refactoring update

2005-08-25 Thread Michal Wallace
://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. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http

Re: [pirate] Re: Python PMC's

2005-08-24 Thread Michal Wallace
to be able to do a sort of static compile like this. In other words, sometimes a python-like language is a desirable thing. (But of course this should all be optional so that we can also be 100% python compatible) Sincerely, Michal J Wallace Sabren Enterprises, Inc

Re: [pirate] OSCON slides

2005-08-06 Thread Michal Wallace
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 Sabren Enterprises, Inc

Re: urgent parrot bug / PR opportunity

2005-08-04 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 ==17366

urgent parrot bug / PR opportunity

2005-08-03 Thread Michal Wallace
, 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 Aug 3 23:02:54 2005 .sub __main__ @MAIN new_pad

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, I'd

Re: PMCs: Should We Use Them?

2005-07-07 Thread Michal Wallace
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
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. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http

new list for pirate [python on parrot]

2005-06-12 Thread Michal Wallace
on board. The signup page is here: http://cornerhost.com/mailman/listinfo/pirate Thanks! - 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/

refcounts and DOD

2005-05-25 Thread Michal Wallace
... Or does parrot do all three? - Michal http://withoutane.com/

Re: Python on parrot

2005-05-16 Thread Michal Wallace
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, but I don't see how putting the source in the parrot repository is either necessary or sufficient for widespread exposure. :/ Michal could

Re: Python on parrot

2005-05-15 Thread Michal
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 good stuff

Re: Different ways for MinGW

2005-03-21 Thread Michal Jurosz
pozdravem Michal Jurosz

Re: Parrot_Exec_OS_Command interface ?

2005-03-21 Thread Michal Jurosz
# ' # 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: Parrot 0.1.2 with MinGW32 (some experimets)

2005-03-15 Thread Michal Jurosz
(MJWiki:Build Parrot with MinGW) S pozdravem Michal Jurosz C:\usrperl -e print $^O MSWin32 C:\usrperl -v This is perl, v5.8.4 built for MSWin32-x86-multi-thread (with 3 registered patches, see perl -V for more detail) Copyright 1987-2004, Larry Wall Binary build 810 provided by ActiveState Corp

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/imcpasm/opt1.t

Parrot 0.1.2 with MinGW32 (some experimets)

2005-03-10 Thread Michal Jurosz
to properly build. # --- Some other ideas: --- $ perl -e 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

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

2005-03-10 Thread Michal Jurosz
file ... Michal Jurosz ICQ#:93348414

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
/components.html - Michal http://withoutane.com/

Re: --pirate and coroutines

2004-10-08 Thread Michal
everything --python did EXCEPT for the generator stuff? - Michal http://withoutane.com/

Re: Namespaces, part 1 (new bits)

2004-10-07 Thread Michal
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
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 --python gen.pir : hangs # .sub __main__ .local

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

2004-02-19 Thread Michal Wallace
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
my peace, so... This is it. I'll do my best to make pirate work with whatever you come up with, but I'll say this one more time: Encapsulation is our friend! Please don't complicate the system with duplicate interfaces. Sincerely, Michal J Wallace Sabren Enterprises, Inc

Re: Rules for method resolution?

2004-02-15 Thread Michal Wallace
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
freestanding() == Bruce EXAMPLE 2 - callable classes as methods class Methodical: def __call__(self): return muahahahaha class Owner: pass x = Owner() x.method = Methodical() assert x.method() == muahahahaha Sincerely, Michal J Wallace Sabren Enterprises

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() a.whoami, b.whoami = b.whoami, a.whoami assert a.whoami()==Bruce

Re: RT Cleanup

2004-02-09 Thread Michal Wallace
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 require a .local or .global for the type declaration. Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL

python PMCs?

2004-02-02 Thread Michal Wallace
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 Sabren Enterprises, Inc

Re: Backward branch, warnocked.

2004-02-02 Thread Michal Wallace
? 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. - contact: [EMAIL PROTECTED] hosting: http

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 correct: pistring needs the symbol

Re: How does perl handle HLL Ceval?

2004-01-22 Thread Michal Wallace
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: [EMAIL PROTECTED] hosting: http

how to subclass dynamic PMCs?

2004-01-21 Thread Michal Wallace
a definition for Parrot_PiSequence_get_integer... Even though it's defined in the other *.so file that's already loaded. I don't think this is a bug... I think I just don't know what I'm doing. Can someone help? :) Sincerely, Michal J Wallace Sabren Enterprises, Inc

Re: Events and JIT

2004-01-16 Thread Michal Wallace
, 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
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: [PATCH] new_noinit and init ops

2004-01-12 Thread Michal Wallace
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: [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 closes over (this is how I'm implementing a loop

Mr Parrot's Neighborhood

2004-01-12 Thread Michal Wallace
didn't mean to write so much... But it seems like this metaphor might make a good user friendly intro to parrot internals... (Assuming I got it right) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.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 stack, but as far as I can tell, swap_context

yield op?

2004-01-09 Thread Michal Wallace
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 Enterprises, Inc. - contact: [EMAIL

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 print dots forever. # Instead it prints a few dots and then segfaults. It does print

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! I like that even better. :) Thanks! Sincerely

Re: [PATCH] Continuations now close over register stacks

2004-01-09 Thread Michal Wallace
, 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 Sabren Enterprises, Inc. - contact

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 has the same problem. The patch below exposes

RESOLVED: how do I instantiate?

2004-01-08 Thread Michal Wallace
or Array. :) I ALMOST went withi this though until you showed me how to get the instantiation working. :) And thanks again for all the work you're doing on Python :-) Thanks for the register-stacks-for-continuations patch! That should fix some bugs I've got with generators. :) Sincerely, Michal J

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 object instantiation: t/pmc/object*.t but only integer

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. I'm going to go make a card that says RTFM on my

re: [PATCH] Continuations now close over register stacks

2004-01-08 Thread Michal Wallace
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. - contact: [EMAIL PROTECTED] hosting: http

weird bug w/new imcc syntax

2004-01-08 Thread Michal Wallace
$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. - contact: [EMAIL PROTECTED] hosting

BUG: coroutine + exception = stack_height segfault

2004-01-08 Thread Michal Wallace
# # 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 handler. (this is the problem

Re: [PATCH] Continuations now close over register stacks

2004-01-08 Thread Michal Wallace
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/ --

how do I instantiate? -- was: Objects!

2004-01-07 Thread Michal Wallace
'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. - contact: [EMAIL PROTECTED] hosting: http

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

2004-01-07 Thread Michal Wallace
() 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/ --

Re: More object stuff

2003-12-03 Thread Michal Wallace
?).. 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 it and throws a new IOError? Am I on the right track? Sincerely, Michal J Wallace Sabren Enterprises, Inc

feature request: line numbers in errors?

2003-12-03 Thread Michal Wallace
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: [EMAIL PROTECTED] hosting: http://www.cornerhost.com

python exceptions broken

2003-12-03 Thread Michal Wallace
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 Wallace Sabren Enterprises, Inc

Re: Languages status (attention compiler maintainers)

2003-10-08 Thread Michal Wallace
, 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.cornerhost.com

Re: attaching debuggers

2003-09-19 Thread Michal Wallace
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. - contact: [EMAIL

Re: Of AST and YAL

2003-09-07 Thread Michal Wallace
? 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 Wallace Sabren Enterprises, Inc

Re: Method call parameters

2003-08-24 Thread Michal Wallace
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
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 Wallace Sabren Enterprises, Inc

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 whole interpreter serialized, but you're getting more bang

Re: Should I target Parrot?

2003-08-22 Thread Michal Wallace
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 Enterprises, Inc. - contact: [EMAIL PROTECTED

Re: Should I target Parrot?

2003-08-22 Thread Michal Wallace
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 implement squeak? :) Sincerely, Michal J Wallace Sabren Enterprises

Re: Should I target Parrot?

2003-08-21 Thread Michal Wallace
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 prediction) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL

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? Surely the right thing to do would be to create a new

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

2003-08-17 Thread Michal Wallace
binaryExpression. (It's just not used yet because at the time it wasn't compatible with the way I was handling expressions; I've been trying to get my code to work his way, but didn't go back and check whether it worked yet.) Sincerely, Michal J Wallace Sabren Enterprises, Inc

Re: there's no undef!

2003-08-17 Thread Michal Wallace
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

bug with parrot -O2

2003-08-17 Thread Michal Wallace
[~/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 lot of cool stuff working already. Time for Dan

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 Cunless a op b opcode in PIR ;-) Cool! :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. - contact: [EMAIL PROTECTED] hosting: http://www.cornerhost.com/ my site: http

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

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, Michal J Wallace Sabren Enterprises, Inc

Re: save/restore on yield?

2003-08-16 Thread Michal Wallace
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
* 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: [EMAIL PROTECTED] hosting: http://www.cornerhost.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. - contact: [EMAIL PROTECTED] hosting: http

getprop and find_lex?

2003-08-16 Thread Michal Wallace
just what parrotclasses do, which is fine, but a pythonclass would need an exception here. In any case, it might be nice to have a 'hasprop' or a version of 'defined' for properties. (Nicer than making prophash and then checking that to see if it has a particular key) Sincerely, Michal J

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 properties are what you want to use here, rather than attributes (via

pirate 0.01 ALPHA!

2003-08-16 Thread Michal Wallace
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 Wallace Sabren Enterprises, Inc

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 Enterprises, Inc

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

2003-08-15 Thread Michal Wallace
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 Wallace Sabren Enterprises, Inc

bug: two segfaults

2003-08-14 Thread Michal Wallace
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 new_pad 0

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

Re: why new_pad *INT*?

2003-08-14 Thread Michal Wallace
, 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 anyone help me out here? (Generated code follows - note the GETS HERE line) Sincerely, Michal J Wallace Sabren Enterprises, Inc

RE: pirate status / need help with instances

2003-08-14 Thread Michal Wallace
. 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
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
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? Sincerely, Michal J Wallace Sabren

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

2003-08-14 Thread Michal Wallace
parrot means something else compiled down to parrot, and something else means python. :) 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
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# (visitReturn:528) find_lex $P2, 'g' # (callingExpression:325

Re: calling conventions, variable-length parameter lists

2003-08-14 Thread Michal Wallace
(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/ --

  1   2   >