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
@ , 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/
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 --
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/
edDocs-1.2.0/howto/components.html
- Michal
http://withoutane.com/
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
ubtest UNEXPECTEDLY SUCCEEDED
t/examples/japh..ok
1/17 unexpectedly succeeded
S pozdravem Michal Jurosz
Hello,
feel free to use
http://wiki.kn.vutbr.cz/mj/index.cgi?Perl%206%20and%20Parrot%20links
.
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
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,
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/
nals.html
seems to imply the mark and sweep system only...
Or does parrot do all three?
- Michal
http://withoutane.com/
ree to hop on board. The signup page
is here:
http://cornerhost.com/mailman/listinfo/pirate
Thanks!
- Michal
http://withoutane.com/
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.
-
all as much as I could, but
there's always someone who wants the version you're
not running. :)
- Michal
http://withoutane.com/
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
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
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
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
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
.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.
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/
--
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&
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
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
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
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/
--
/
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/
--
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
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. :)
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
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
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/
--
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
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
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/
--
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
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/
--
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/
--
-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/
--
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
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
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
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
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.
---
.arg 1
.arg key
call __py__print
print ": "
val = s[skey]
.arg 1
.arg val
call __py__print
enddict:
print "}"
empty:
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
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
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.
--
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
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/
--
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/
--
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
#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
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
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/
--
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
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/
--
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?
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
> 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/
--
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/
--
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
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
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/
--
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
# (callingExpression:335)
ret0:
.result res1 # (callingExpression:338)
.pcc_end # (callingExpression:339)
.pcc_begin_return # (visitReturn:530)
.return res1 # (visitReturn:531)
.pcc_
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
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/
--
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
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
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
"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
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
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
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/
--
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.
---
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
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
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/
--
> 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.
--
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/
--
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
_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/
--
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: [
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
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/
--
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
;
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/
--
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
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/
--
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
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
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
;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
;
$ perl -Ilib imcc/t/syn/file.t
...
ok 11 - including a non-existent file
...
Michal Jurosz
ICQ#:93348414
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
(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
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
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 - 100 of 141 matches
Mail list logo