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, Inc.
---
On Sat, 9 Aug 2003, Leopold Toetsch wrote:
> Nice coincidence. S. Togos' bug report too.
> Anyway, its already fixed.
Gosh you're quick. Thanks!
Want another one? :)
def g():
return 0
def f():
return g()
print f()
This prints:
'No more I register frame
Build system
We have missing dependencies. E.g. classes/* isn't rebuilt, when some
parrot include files change.
S. e.g.:
Subject: repeat() not implemented in PerlInt
Platform code
-
We need some functions to deal with paths and files like File::Spec.
For loading include fil
>Under cygwin, ./Configure.pl fails with the message:
>
>Determining some sizes...Linker failed (see test.ldo) at
>lib/Parrot/Configure/Step.pm line
Try to add this line
link => 'gcc',
to config/init/hints/cygwin.pl
As a result, it must be in the following way:
Configure::Data->set(
link =>
OK. I'm starting out a prefixing story and here is
CHAPTER I. The HAS_HEADER_ defines.
prefixing.diff
Description: Binary data
following corrects 1 remaining use of bare 'perl' to match all the other
uses of $(PERL)
--- root.in~Sun Aug 10 15:54:44 2003
+++ root.inSun Aug 10 17:58:02 2003
@@ -480,7 +480,7 @@
cpu_dep$(O) : $(GENERAL_H_FILES)
nci.c : call_list.txt build_nativecall.pl
-perl build_nativecall.pl ca
Michal Wallace wrote:
> Benjamin Goldberg wrote:
> > Michal Wallace wrote:
[snip]
> > Also... why is $P2 merely an imcc temporary, without a real name?
> > That is, why not do:
> >
> > .pcc_sub _sub1 non_prototyped
> > .local object sub1
> > find_lex sub1, 'g'
> > .pcc_begin non_protot
On Sat, 9 Aug 2003, Sean O'Rourke wrote:
> The problem is that when adder() gets returned, it
> needs to remember the enclosing pad. So this needs to
> be
>
> newsub $P1, .Closure, _sub1
>
> which (IIRC) will save the lexical environment in which
> it was created (see closure.pmc), then res
Isn't 'pirate' the name of the Lua compiler for Parrot (by Klaas-Jan Stol)?
On Wed, 6 Aug 2003 21:38:25 -0400 (EDT), Michal Wallace <[EMAIL PROTECTED]>
wrote:
--
Adriano
# New Ticket Created by Lars Balker Rasmussen
# Please include the string: [perl #23271]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt2/Ticket/Display.html?id=23271 >
The problem with Configure on cygwin was fairly simple - cygwin's perl
has been
On Sun, 10 Aug 2003, Lars Balker Rasmussen wrote:
> The problem with Configure on cygwin was fairly simple - cygwin's perl
> has been compiled with -lutil, which is not in the standard
> distribution. A simple fix to the hints file makes parrot compile on
> cygwin and mostly complete the test-su
At 9:21 PM +0300 8/8/03, Vladimir Lipskiy wrote:
> So, the project. Someone needs to go through the configure procedure
and the headers and throw a PARROT_ prefix in front of all the HAS_
defines we define, so we can avoid this problem.
Some defines have the HAVE_ prefix. Should those be also pr
On Fri, 8 Aug 2003, TOGoS wrote:
> I want to be able to have a function with
> this kind of signature:
>
> func ($param1, *$otherparams)
>
> AFAIK, there is no way to implement this
> with the current calling conventions. You
> would have to do something with variable
> register IDs, which we do
At 12:14 -0400 8/10/03, Uri Guttman wrote:
> "VL" == Vladimir Lipskiy <[EMAIL PROTECTED]> writes:
>> I've committed a würgaround.
i get the english side of the pun. what does the german(?) side mean?
The german verb "würgen" means "to strangle", if I'm not mistaken...
Liz
Michal Wallace wrote:
After running cvs up -d
and then "make", a bunch of my
tests broke.
[ ... ]
[~/pirate]: imcc bug.imc
repeat() not implemented for PerlInt
Incomplete dependencies in Makefile. Please run "make realclean"
Sincerely,
leo
On Fri, Aug 08, 2003 at 01:51PM -0400, David H. Adler wrote:
> On Fri, Aug 08, 2003 at 12:33:03PM +0100, Nicholas Clark wrote:
> > On Fri, Aug 08, 2003 at 02:20:46AM -0400, David H. Adler wrote:
> > > On Thu, Aug 07, 2003 at 12:57:11PM -0400, Gordon Henriksen wrote:
> > > > This is really a languag
> I've committed a würgaround.
LMAO!
Lars Balker Rasmussen <[EMAIL PROTECTED]> wrote:
>> -Wpadded seems to be more trouble than it's worth at this stage, so I
Thanks, applied,
leo
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)
> newsub $P3, .Continuation, ret0# (callingExpressi
Leo~
Why not just use a hash and ditch the array then?
Matt
Leopold Toetsch wrote:
The current implementation of find_lex (by_name) is suboptimal. A linear
scan over the list of lexical names is performed
(s. sub.c:lexicals_get_position()).
A better way would be to provide a list of lexicals p
> > PieThonInt, RubyInt?
>
> Hmm. I that parrot should DTRT, and use
> CurrentLanguageInt. :)
Hmm. I agree with Leo, here.
P6 = new PerlInt (3)
would be equivalent to PASM:
new P6, PerlInt
assign P6, 3
This is more generic and would be portable to
any kind of PMC you want. Arrays, Stri
This code causes IMCC to hang:
.pcc_sub _main non_prototyped
newsub $P5, .Sub, _ags_3
$P4 = new PerlString
$P4 = "foobar!"
newsub P1, .Continuation, agl_1
.pcc_begin non_prototyped
.arg $P4
.pcc_call $P5, P1
agl_1:
.result $P6
.pcc_end
end
.end
Lars Balker Rasmussen (via RT) <[EMAIL PROTECTED]> writes:
> # New Ticket Created by Lars Balker Rasmussen
> # Please include the string: [perl #23029]
> # in the subject line of all future correspondence about this issue.
> # http://rt.perl.org/rt2/Ticket/Display.html?id=23029 >
>
>
> -Wpadded
Benjamin Goldberg <[EMAIL PROTECTED]> wrote:
> Leopold Toetsch wrote:
>>
>> Benjamin Goldberg <[EMAIL PROTECTED]> wrote:
>>
>> > I would suggest the opnames/categories "mutate," "alias," and
>> > "create."
>>
>> IMHO, we could leave PASM syntax as it is and create opcode aliases
>> inside the assem
Michal Wallace <[EMAIL PROTECTED]> writes:
> 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) ?
Remember, the pad depth reflects lexical scope nesting,
no
> Anyway:
>
> assign Px, {Iy,Sy,Ny}
>
> are not needed IMHO, these end up as
> set__native and are identical
> to set Px, {Iy,Sy,Ny}.
Yes, but as we were discussing in the
Set vs. Assign thread, it makes more sense
to call them 'assign', as it morphs the
existing value (as 'assign Px, Py' does)
On Thu, 7 Aug 2003, Jos Visser wrote:
> Accompanying patch adds the "fortytwo" op to Parrot, so the following
> PASM becomes legal:
>
> fortytwo I0
> print I0
> print "\n"
> end
>
> Example:
>
> $ ../parrot test42.pasm
> 42
>
Why not just use a macro?
# .macro fortyt
27 matches
Mail list logo