Re: [perl #56032] YAPC::NA 2008 Chicago Buildfest Results

2008-11-24 Thread Jeff Bisbee
Nope haven't tried it lately :( You can mark me of the list since I haven't even opened up that laptop in some time :( -- Jeff Bisbee / [EMAIL PROTECTED] / jbisbee.multiply.com On Sun, Nov 23, 2008 at 4:37 PM, James Keenan via RT <[EMAIL PROTECTED]> wrote: > Jeff, > &g

Re: implicit & explicit returns

2008-08-26 Thread Jeff Horwitz
g. you can see that in the PIR you generate. (pmichaud, i hope i explained this right! ;-) -jeff

Re: interpreter persistence issues

2008-08-16 Thread Jeff Horwitz
On Sat, 16 Aug 2008, Allison Randal wrote: Jeff Horwitz wrote: i'd like to have an option in mod_parrot to clear all user-generated data (globals, namespaces, subs, etc.) from an interpreter, leaving any bytecode that has been loaded (e.g. compilers). the point here is to eliminate pro

interpreter persistence issues

2008-08-12 Thread Jeff Horwitz
s to whatever routine is doing the dirty work, but before i even start to look at this, is it even possible with our current architecture? can we get close? -jeff

Re: design problem with :outer

2008-06-25 Thread Jeff Horwitz
posed :lexid property. just a thought. maybe there's something i'm overlooking or missing, but to me this seems like the most obvious solution. i think the problem is that it doesn't work for multi subs. it wouldn't know which version of the sub you were trying to reference. -jeff

Re: [perl #54444] AutoReply: [rakudo] 'No such caller depth' with pure perl mod_perl6

2008-05-19 Thread Jeff Horwitz
th this: .sub main :main $P0 = getinterp $P1 = $P0['lexpad';1] .end if we want perl6 subs to be directly invokable from an embedded environemnt, we either need to teach perl6 to be smarter about this or change how parrot handles this kind of exception. -jeff Aft

Re: weird perl6/plumhead problem

2008-04-30 Thread Jeff Horwitz
On Tue, 29 Apr 2008, Patrick R. Michaud wrote: On Tue, Apr 29, 2008 at 12:34:47PM -0400, Jeff Horwitz wrote: mod_parrot can load multiple HLL compilers in the same interpreter, and on my server i'm using both perl6 and plumhead. this works fine if i load perl6 before plumhead. howeve

Re: weird perl6/plumhead problem

2008-04-29 Thread Jeff Horwitz
On Tue, 29 Apr 2008, Patrick R. Michaud wrote: On Tue, Apr 29, 2008 at 12:34:47PM -0400, Jeff Horwitz wrote: mod_parrot can load multiple HLL compilers in the same interpreter, and on my server i'm using both perl6 and plumhead. this works fine if i load perl6 before plumhead. however,

weird perl6/plumhead problem

2008-04-29 Thread Jeff Horwitz
c/packfile.c:1795 #9 0x401907ea in PackFile_Segment_unpack (interp=0x804f048, self=0x8327028, cursor=0x40a24040) at src/packfile.c:1601 #10 0x4018f8b1 in PackFile_unpack (interp=0x804f048, self=0x8327028, packed=0x40a24000, packed_size=1254976) at src/packfile.c:867 #11 0x40153b10 in Parrot_r

Re: mod_parrot uses string_nprintf

2008-04-23 Thread Jeff Horwitz
-introduce string_nprintf or modify mod_parrot to use another method? hm, i thought i committed the fix for this, but apparently not. check out r334 in the mod_parrot repository. -jeff

Re: Hackathon at FP

2008-02-15 Thread Jeff Horwitz
I *should* be there, though IIRC, Allison will not. On Thu, 14 Feb 2008, Andy Lester wrote: I see that Allison's going to be at Frozen Perl. Will you be hackathonning? Anyone else going to be there besides me? I'm not sure I'll be sticking around for the hackathon, especially if I don't hea

mod_parrot 0.4

2008-01-20 Thread Jeff Horwitz
From my journal: I'm pleased to announce that after 2 years of hiatus and 6 months of coding, mod_parrot 0.4 has been released. It's been worth the wait, as we now have working mod_perl6 and PHP proof-of-concepts, per-vhost interpreter pools, the framework for a more comprehensive test suite,

writing mod_perl6 in perl 6

2007-12-21 Thread Jeff Horwitz
This just went up in my blog, but I think it's interesting enough to post to the list as well. -jeff One of the goals of the mod_parrot project is to provide the infrastructure for running the Perl 6 version of mod_perl, a.k.a. mod_perl6. I've already demonstrated that mod_perl6

Re: [perl #48677] [BUG] r23917 led to 'make' failure

2007-12-17 Thread Jeff Horwitz
hasn't made it to RT or the list... -jeff

oops

2007-12-17 Thread Jeff Horwitz
apologies for the top post in my previous reply. didn't realize all that error output was down there! :-P

Re: [perl #48677] [BUG] r23917 led to 'make' failure

2007-12-17 Thread Jeff Horwitz
otentially overlapping memory. it's part of C89, so it should be fine to use. patch is attached. t/op/copy.t passes with this patch. can others try it out? -jeff On Mon, 17 Dec 2007, James Keenan via RT wrote: No, at least not on Ubuntu. (Will have to check later on other OSes.) Here

Re: Status of docs/embed.pod and Parrot::Embed?

2007-12-10 Thread Jeff Horwitz
chromatic, ...) to lead the way by updating/expanding the docs/embed.pod specification. I can take a stab at this, as I've done enough Parrot embedding to write a short novel. Looks like PDD10 could use some updating as well -- were there any plans for that? Maybe we should start there? -jeff

Re: [svn:parrot] r21613 - in trunk: lib/Parrot/Configure tools/build

2007-09-27 Thread Jeff Horwitz
with the fnctl patch, especially on windows. -jeff On Wed, 26 Sep 2007, chromatic wrote: On Wednesday 26 September 2007 14:26:20 [EMAIL PROTECTED] wrote: Author: coke Date: Wed Sep 26 14:26:19 2007 New Revision: 21613 Modified: trunk/lib/Parrot/Configure/Messages.pm trunk/tools/buil

mod_perl6 update

2007-09-06 Thread Jeff Horwitz
ounter Hopefully the server stays up -- I guess this is a pretty good test of mod_parrot's stability. ;-) Enjoy, -jeff

duplicate symbols

2007-09-02 Thread Jeff Horwitz
ch is already loaded into apache. i'm sure this problem exists for other functions -- any ideas for how to address this? we could prepend a Parrot_ prefix for the PARROT_API functions (which list_length is), but that may not be appropriate for all situations. -jeff

mod_parrot is back

2007-07-29 Thread Jeff Horwitz
ia svn if you feel so inclined: svn co http://svn.perl.org/parrot-modules/mod_parrot/trunk -jeff

Re: Thank you so much Josh Hoblitt for the backtracing

2007-07-27 Thread Jeff Horwitz
very nice -- i could have used that THIS AFTEROON! :) On Thu, 26 Jul 2007, Andy Lester wrote: Josh putting in the new backtrace behind my new assertions makes debugging assertions SO MUCH EASIER. I'm gonna go s/assert/PARROT_ASSERT/ everywhere. xoxo, Andy P.S. sample # Received: # 1..

Re: embedding

2007-01-12 Thread Jeff Horwitz
e latest parrot, but enough beer might convince me to come out of hiatus and fix that... ;-) if you dive into the code and need more details, feel free to contact me off-list. -jeff Thanks -- James "Isaac" Freeman (919) 749-3561 memotype (at) gmail.com

Re: UUIDs for PBC headers

2005-10-18 Thread Jeff Horwitz
On Tue, 18 Oct 2005, Chip Salzenberg wrote: > On Tue, Oct 18, 2005 at 11:27:16AM -0400, Jeff Horwitz wrote: > > On Tue, 18 Oct 2005, Chip Salzenberg wrote: > > > On the other hand, the idea has been raised on IRC (by Joshua, IIRC) > > > that an MD5 or SHA256 would prot

Re: UUIDs for PBC headers

2005-10-18 Thread Jeff Horwitz
On Tue, 18 Oct 2005, Chip Salzenberg wrote: > On Mon, Oct 17, 2005 at 10:09:22PM -0400, Jeff Horwitz wrote: > > On Mon, 17 Oct 2005, Chip Salzenberg wrote: > > > Any problems here? Any suggestions for UUID code that's licensed > > > appropriately for use in Par

Re: UUIDs for PBC headers

2005-10-17 Thread Jeff Horwitz
ense. http://e2fsprogs.sourceforge.net/ > -- > Chip Salzenberg <[EMAIL PROTECTED]> > -jeff

Re: UUIDs for PBC headers

2005-10-17 Thread Jeff Horwitz
; Any problems here? Any suggestions for UUID code that's licensed > appropriately for use in Parrot? i know mod_parrot would benefit from this. one question though -- if a redundant UUID is found, will the internals make the decision to load/not load or will that be up to the HLL/embedding code? > -- > Chip Salzenberg <[EMAIL PROTECTED]> > -jeff

mod_parrot 0.3

2005-08-02 Thread Jeff Horwitz
APR::Table object) - main - prev - next - status -jeff

Re: embedding/extending interface

2005-07-13 Thread Jeff Horwitz
On Wed, 13 Jul 2005, Nicholas Clark wrote: > On Wed, May 11, 2005 at 11:18:30AM +0100, Nicholas Clark wrote: > > On Tue, May 10, 2005 at 01:13:48PM -0400, Jeff Horwitz wrote: > > > as part of both the pugs and mod_parrot effort, i've started working on > > > brin

embedding w/ new calling conventions

2005-07-06 Thread Jeff Horwitz
if you were planning on implementing something that will fix this, just say the word and i'll keep quiet. :) -jeff

mod_pugs status

2005-06-01 Thread Jeff Horwitz
u want to try it out, check out the latest revisions of both mod_parrot and pugs from subversion (released versions will NOT WORK). the eg directory contains a working example and configuration. http://svn.perl.org/parrot-modules/mod_parrot http://svn.openfoundry.org/pugs -jeff

Re: mmd

2005-05-24 Thread Jeff Horwitz
you go. it should print "string PMC nothing", but instead prints out "string nothing nothing". interestingly, if you change @MULTI(Foo) to @MULTI(_), it all works, but that seems more of a band-aid solution for this particular case. -jeff --- .namespace ['Foo'] .sub

mmd

2005-05-24 Thread Jeff Horwitz
s the PerlString to that, but i'd prefer to be able to pass any arbitrary PMC without explicitly specifying its type in the method. -jeff

Re: Parrot as an extension language

2005-05-19 Thread Jeff Horwitz
scenes it's defined as PMC *. all you should need to include is embed.h, extend.h and for now, resources.h. i'm actually working on fleshing these files out to be more consistent wrt the public API. see trunk/src/parrot_util.c in the mod_parrot source for a working example of all this. > -- > Colin Adams > Preston Lancashire > -jeff

Re: Problems linking with parrot

2005-05-18 Thread Jeff Horwitz
you need to link with src/parrot_config.o (a recent change). http://www.nntp.perl.org/group/perl.perl6.internals/29468 On 18 May 2005, Colin Paul Adams wrote: > I've nearly got my first Eiffel program with an embedded parrot VM to compile > - well, actually, it DOES compile, just one remaining l

Re: Parrot as an extension language

2005-05-17 Thread Jeff Horwitz
/Embed/Parrot.hsc in the pugs source. > -- > Colin Adams > Preston Lancashire > -jeff

Re: Parrot as an extension language

2005-05-17 Thread Jeff Horwitz
On 17 May 2005, Colin Paul Adams wrote: > Jeff> also have a look at the mod_parrot source > Jeff> (http://www.smashing.org/mod_parrot), which is one of the > Jeff> few apps embedding parrot at the moment. the other is pugs > Jeff> (http://www.pugscode.o

Re: Parrot as an extension language

2005-05-17 Thread Jeff Horwitz
apps embedding parrot at the moment. the other is pugs (http://www.pugscode.org), but it's written in haskell. -jeff On 17 May 2005, Colin Paul Adams wrote: > Hello, > > I am writing an XSLT 2.0 processor, and I want to give users the > option to write their own message and error

embedding/extending interface

2005-05-10 Thread Jeff Horwitz
up without changing any of the working parts. is there anyone else besides myself and autrijus who is actively working on an embedded parrot application? -jeff

[PATCH] allow array of args for spawnw (fwd)

2005-05-09 Thread Jeff Horwitz
-- Forwarded message -- Date: Mon, 9 May 2005 14:32:22 -0400 (EDT) From: Jeff Horwitz <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [PATCH] allow array of args for spawnw the attached patch adds a new signature for spawnw so it can take a PMC array of arguments rather

Re: embedding initialization

2005-05-05 Thread Jeff Horwitz
excellent! now i can get rid of that silly no-op bytecode i've been using. thanks for the quick turnaround, leo. -jeff On Thu, 5 May 2005, Leopold Toetsch wrote: > Jeff Horwitz wrote: > > i'm neck deep in writing the IMC eval code for pugs. ... > > > ...

embedding initialization

2005-05-04 Thread Jeff Horwitz
l most certainly need this for things like "perl -e" one-liners. in the short term, i can use a no-op .pbc file to bootstrap with, but i imagine there's a more elegant solution out there. -jeff

Re: Monthly Release Schedule

2005-04-07 Thread Jeff Horwitz
n when and if tinderbox comes back. -jeff

Re: Pugs Q for the Parrot FAQ?

2005-03-30 Thread Jeff Horwitz
#x27;s not forget bytecode compatibility with all the non-perl languages that will hopefully target parrot. -jeff

Re: mod_parrot 0.2

2005-03-29 Thread Jeff Horwitz
On Tue, 29 Mar 2005, Leopold Toetsch wrote: > Jeff Horwitz <[EMAIL PROTECTED]> wrote: > > mod_parrot 0.2 is now available from http://www.smashing.org/mod_parrot or > > from SVN at http://svn.perl.org/parrot-modules/mod_parrot. > > Steadily evolving, great. > > &g

mod_parrot 0.2

2005-03-28 Thread Jeff Horwitz
and its parrot backend catches up. i guess it's time to learn haskell! ;-) enjoy, -jeff

Re: Calling PIR from a PMC

2005-03-14 Thread Jeff Horwitz
arrot_Interp interp, char *namespace, char *name, int *ret) { Parrot_PMC sub; sub = get_sub_pmc(interp, namespace, name); if (!sub) { return(0); } *ret = Parrot_call_sub_ret_int(interp, sub, "Iv"); return(1); } -jeff

[PATCH] return absolute paths from Parrot_locate_runtime_file

2005-02-04 Thread Jeff Horwitz
handles win32 paths (and drive letters) as well. hopefully i chose the most logical place for this -- i didn't think it belonged in Parrot_readbc itself. -jeff diff -a -u -r1.14 library.c --- src/library.c 16 Dec 2004 10:37:16 - 1.14 +++ src/library.c 4 Feb 2005 17:10:15

Re: solution to TODO #32365

2005-01-10 Thread Jeff Horwitz
ese options are pretty standard for *-config programs (apr-config, gtk-config, etc.). -jeff

Re: mandelbrot

2004-12-14 Thread Jeff Horwitz
hm, works fine for others. maybe the weird port i'm using for that web server isn't agreeing with your firewall. -jeff On Tue, 14 Dec 2004, Michael Walter wrote: > On Tue, 14 Dec 2004 10:07:43 -0500 (EST), Jeff Horwitz > <[EMAIL PROTECTED]> wrote: > > is it useful

mandelbrot

2004-12-13 Thread Jeff Horwitz
on my mod_parrot page at http://www.smashing.org/mod_parrot, which links to a separate web server just in case mod_parrot blows up. :) is it useful? not really. does it help you waste 5 minutes of your day? certainly. :) -jeff

Re: continuation enhanced arcs

2004-12-02 Thread Jeff Clites
inuations, or devise a strategy whereby Parrot itself doesn't provide continuations, but allows them to exist at the HLL level somehow. I don't know of a way the third approach could work (though maybe someone has a clever idea), and the first two both carry significant down sides. JEff

Re: continuation enhanced arcs

2004-12-01 Thread Jeff Clites
On Dec 1, 2004, at 7:23 AM, Dan Sugalski wrote: At 12:06 AM -0800 12/1/04, Jeff Clites wrote: On Nov 30, 2004, at 11:45 AM, Dan Sugalski wrote: In this example: % cat continuation6.ruby def strange callcc {|continuation| $saved = continuation} end def outer a = 0 strange() a = a

Re: continuation enhanced arcs

2004-12-01 Thread Jeff Clites
ich references the Fixnum instance. But that seems like a needless extra object, in the lexical variable case. (I could see having the intervening object in the global case, to avoid repeated hash lookups.) JEff

Re: continuation enhanced arcs

2004-11-30 Thread Jeff Clites
On Nov 30, 2004, at 10:27 AM, Dan Sugalski wrote: At 10:15 AM -0800 11/30/04, Jeff Clites wrote: Oh. No, it won't. We've declared that return continuations will always leave the top half registers in the state they were when the return continuation was taken. In this case, when it&

Re: continuation enhanced arcs

2004-11-30 Thread Jeff Clites
On Nov 30, 2004, at 5:28 AM, Dan Sugalski wrote: At 1:45 AM -0800 11/29/04, Jeff Clites wrote: On Nov 28, 2004, at 2:48 AM, Piers Cawley wrote: I just thought of a heuristic that might help with register preservation: A variable/register should be preserved over a function call if either of the

Re: continuation enhanced arcs

2004-11-29 Thread Jeff Clites
slot" (it would print "2" each time after the first). In truth, their lifetimes do overlap, due to the hidden (potential) loops created by continuations. The problem isn't preservation across calls per se, it's the implicit loops. Continuations are basically gumming up tons of potential optimizations. JEff

Re: EcmaScript

2004-11-29 Thread Jeff Clites
it is. :) You cheated: Revised^5 Report on the Algorithmic Language Scheme: 50 pages. But still, small by comparison with most. :) JEff

Re: EcmaScript

2004-11-27 Thread Jeff Clites
ommon case in Python is to define methods per-class rather than per-instance, and in JavaScript it's the opposite. But that's not a technological difference, just a cultural one.) I would think that the implementations would share a lot. JEff

Re: Perl 6 Summary for 2004-11-08 through 2004-11-15

2004-11-17 Thread Jeff Horwitz
On Mon, 15 Nov 2004, Matt Fowles wrote: > Languages with Object Support? > Jeff Horwitz wondered if there were any languages with object support >that he could bend to the evil ends of mod_parrot. While no one >answered, I think Parakeet might be such a language...

parakeet broken?

2004-11-16 Thread Jeff Horwitz
i was starting to play with parakeet, but unfortunately it keeps dying on me. this is from a cvs checkout from today: 0> 4 4 + Null PMC access in get_pmc_keyed_int() and this: 0> func hello "hi!" println end 0> hello Null PMC access in push_pmc() any clues? thanks, -jeff

Re: Continuations, basic blocks, loops and register allocation

2004-11-16 Thread Jeff Clites
the same way. What you described would be useful for backtracking (jumping back not only to a previous location in a computation, but also its previous state), but it's not what these languages seem to do. JEff

Re: Continuations, basic blocks, loops and register allocation

2004-11-16 Thread Jeff Clites
On Nov 15, 2004, at 10:29 AM, Leopold Toetsch wrote: Jeff Clites <[EMAIL PROTECTED]> wrote: Picture this call stack: main --> A --> B --> C --> D --> E The call from D to E uses the "RESUMEABLE" label, and E stores the resulting continuation in a global, and ever

Re: Another issue with pdd03

2004-11-16 Thread Jeff Clites
proposal of mine: If they're not being preserved, and in fact need to be "synced" between caller and callee, then having these registers physically located in the interpreter structure, rather than in the bp-referenced frame, saves all the copying, and makes it more obvious what's going on. JEff

Re: Another issue with pdd03

2004-11-16 Thread Jeff Clites
all to a void-return function could clobber r3, since it could call another function which returns a result and thus uses r3. Not that parrot has to necessarily work this way, but it at least has precedent, so it's not totally strange behavior. JEff

Re: Continuations, basic blocks, loops and register allocation

2004-11-15 Thread Jeff Clites
On Nov 15, 2004, at 3:27 AM, Leopold Toetsch wrote: Jeff Clites <[EMAIL PROTECTED]> wrote: On Nov 14, 2004, at 3:03 AM, Leopold Toetsch wrote: Yes, but Jeff's example wasn't really reflecting the problem. How come? Your code didn't reuse C after the call. Oops. It seems t

Re: Continuations, basic blocks, loops and register allocation

2004-11-15 Thread Jeff Clites
n the continuation is invoked, because "the second time" strange() returns, "a" is a string and so you can't add 1 to it. But looking at the definition of "outer", you'd expect that you could never get such an error. (Without the line setting "a" to "hello", you get an infinite loop, printing increasing integers.) JEff

Re: Continuations, basic blocks, loops and register allocation

2004-11-14 Thread Jeff Clites
ce, see Larry's comments from "Re: Why lexical pads" at September 25, 2004 10:01:42 PM PDT (the first of the 3 messages from him on that day). JEff

Re: Continuations, basic blocks, loops and register allocation

2004-11-13 Thread Jeff Clites
On Nov 13, 2004, at 2:46 PM, Matt Fowles wrote: On Sat, 13 Nov 2004 14:08:12 -0800, Jeff Clites <[EMAIL PROTECTED]> wrote: That's oversimplifying a bit, but I feel like those are the core issues (stemming from the observation of Leo's that continuations in effect give all vari

Re: Continuations, basic blocks, loops and register allocation

2004-11-13 Thread Jeff Clites
On Nov 13, 2004, at 11:16 AM, Matt Fowles wrote: All~ On Sat, 13 Nov 2004 10:52:38 -0800, Jeff Clites <[EMAIL PROTECTED]> wrote: On Nov 13, 2004, at 8:53 AM, Leopold Toetsch wrote: We'd have just to force using lexicals for all vars Having variable-size register sets would solve this

Re: Continuations, basic blocks, loops and register allocation

2004-11-13 Thread Jeff Clites
the overhead of moving data between registers and lexical pads over-and-over. Well, it doesn't really "solve" it--just makes it workable. JEff

Re: #line directives from PMC file should now work

2004-11-11 Thread Jeff Clites
On Nov 11, 2004, at 11:12 AM, Leopold Toetsch wrote: Jeff Clites <[EMAIL PROTECTED]> wrote: I'd really like a way to turn them off easily (for the ops as well, actually). I find them to be counterproductive (for our stuff), since what gets shown in the debugger isn't stuff you can

Re: Tail calls and continuations

2004-11-11 Thread Jeff Clites
On Nov 11, 2004, at 12:59 PM, Leopold Toetsch wrote: Jeff Clites <[EMAIL PROTECTED]> wrote: I think that actually doesn't matter. Even in the case where we think we can't do a full tail call optimization (because of a continuation that's been taken), we can still actually rem

Re: Tail calls and continuations

2004-11-11 Thread Jeff Clites
On Nov 11, 2004, at 11:24 AM, Dan Sugalski wrote: At 11:16 AM -0800 11/11/04, Jeff Clites wrote: On Nov 11, 2004, at 9:44 AM, Michael Walter wrote: On Thu, 11 Nov 2004 12:30:16 -0500, Dan Sugalski <[EMAIL PROTECTED]> wrote: Even further, it's necessary for some languages (Scheme)/para

Re: Tail calls and continuations

2004-11-11 Thread Jeff Clites
. Leo said: $ time parrot -j fact.imc 1 # [1] maximum recursion depth exceeded I'd think that long-term our max recursion depth limit should only apply to net frame depth--tail calls shouldn't increase the count. (Probably we'd need 2 counts--net depth and logical depth.) JEff

Re: #line directives from PMC file should now work

2004-11-11 Thread Jeff Clites
can actually get gdb to evaluate. JEff

Re: Tail calls and continuations

2004-11-11 Thread Jeff Clites
On Nov 10, 2004, at 11:53 PM, Leopold Toetsch wrote: Jeff Clites <[EMAIL PROTECTED]> wrote: ...it sounds like we have an easy way to tell if a "real" continuation has a claim on the register frame, because creating such a real continuation can mark the frame, There is no s

Re: Tail calls and continuations

2004-11-10 Thread Jeff Clites
On Nov 10, 2004, at 3:08 PM, Leopold Toetsch wrote: Jeff Clites <[EMAIL PROTECTED]> wrote: But there's one wiggle: If you've created a continuation previously (and it still exists), then any call has to preserve the frame Well, that's what continuations are doing. They do pres

Tail calls and continuations

2004-11-10 Thread Jeff Clites
ate, the other destroys it. Just thought I'd send out these thoughts, since the topic was mentioned recently. JEff

object support in languages

2004-11-10 Thread Jeff Horwitz
he idea of using the language he targeted to parrot at work, but i'm sure he's had better things to do. -jeff

Re: calling conventions, tracebacks, and register allocator

2004-11-09 Thread Jeff Clites
esh in people's minds. That's independent of any impediments that might block implementing changes at the current time. JEff

Re: No C op with PMC arguments?

2004-11-09 Thread Jeff Clites
On Nov 8, 2004, at 3:08 AM, Leopold Toetsch wrote: Jeff Clites <[EMAIL PROTECTED]> wrote: No. The binary operations in Python are opcodes, as well as in Parrot. And both provide the snytax to override the opcode doing a method call, that's it. I guess we'll just have to disagr

Re: Basic compilation example (a + b)?

2004-11-09 Thread Jeff Clites
On Nov 8, 2004, at 11:42 PM, Leopold Toetsch wrote: Jeff Clites wrote: new P16, 32 # .PerlInt add P16, P18, P17 That's what worries me, and what prompted the question. You don't know at compile-time that the return type should be a PerlInt. Yes, I've already s

Re: Basic compilation example (a + b)?

2004-11-08 Thread Jeff Clites
On Nov 8, 2004, at 2:47 AM, Leopold Toetsch wrote: Jeff Clites <[EMAIL PROTECTED]> wrote: What pasm is supposed to correspond to this snippet of Python code (assume this is inside a function, so these can be considered to be local variables): a = 7 b = 12 c = a + b

Re: Register allocation/spilling and register volitility

2004-11-08 Thread Jeff Clites
On Nov 8, 2004, at 1:34 AM, Leopold Toetsch wrote: Jeff Clites <[EMAIL PROTECTED]> wrote: OTOH it doesn't really matter, if the context structure is in the frame too. We'd just need to skip that gap. REG_INT(64) or I64 is as valid as I0 or I4, as long as it's assured, that it

Re: No C op with PMC arguments?

2004-11-08 Thread Jeff Clites
On Nov 8, 2004, at 12:50 AM, Leopold Toetsch wrote: Jeff Clites <[EMAIL PROTECTED]> wrote: On Nov 5, 2004, at 9:40 AM, Leopold Toetsch wrote: In Python, semantically you know that you'll end up doing a method call (or, behaving as though you had), so it's very roundabout to do

Register allocation/spilling and register volitility

2004-11-08 Thread Jeff Clites
allocate indirect registers). And I believe there's a theorem that all recursive operation can be re-written to be tail-recursive, so it's sort of relevant, though I guess what's important about the fib benchmark isn't specifically that it's recursive, but rather just

Re: The Saga of Building Parrot : ICU

2004-11-07 Thread Jeff Clites
(s), but also for the "runtime" directory, etc.). JEff

Basic compilation example (a + b)?

2004-11-07 Thread Jeff Clites
isn't obvious to me. JEff

Re: The Saga of Building Parrot : ICU

2004-11-07 Thread Jeff Clites
d, because it might take this into account. But if you just "make" and don't install (and don't specify a --prefix), then it should work--it's just that your build products will still be inside of your source tree, rather than being installed anywhere. But for experimenting, this should be okay. JEff

Re: No C op with PMC arguments? (Modified by Jeff Clites)

2004-11-07 Thread Jeff Clites
[missed cc-ing the list when I sent this originally] On Nov 5, 2004, at 10:39 AM, Brent 'Dax' Royal-Gordon wrote: Jeff Clites <[EMAIL PROTECTED]> wrote: There are a myriad of interesting mathematical types and operations, but they don't need dedicated ops to support them.

Re: Streams and Filters (Ticket #31921)

2004-11-07 Thread Jeff Clites
VS is probably simpler. (In my opinion, the line-ending issue isn't a problem for Parrot in terms of this test--it's legitimate to expect that you can process a particular file, not matter what platform you happen to be on, and no matter if the file happens to have been created on another platform.) JEff

Re: No C op with PMC arguments?

2004-11-07 Thread Jeff Clites
ch were to let me somehow register a method as filling a certain role ("my method 'blah' should be called to perform numeric addition"), rather than inferring to from the method name. Probably a tricky balance between convenience and control/flexibility. JEff

Re: No C op with PMC arguments?

2004-11-07 Thread Jeff Clites
On Nov 5, 2004, at 10:03 AM, Sam Ruby wrote: Jeff Clites wrote: a) As Sam says, in Python "y**z" is just shorthand for "y.__pow__(z)"--they will compile down to exactly the same thing (required for Python to behave correctly). Since __pow__ isn't "special", w

Re: No C op with PMC arguments?

2004-11-07 Thread Jeff Clites
On Nov 5, 2004, at 9:40 AM, Leopold Toetsch wrote: Jeff Clites <[EMAIL PROTECTED]> wrote: a) As Sam says, in Python "y**z" is just shorthand for "y.__pow__(z)"--they will compile down to exactly the same thing (required for Python to behave correctly). I don't thi

Re: No C op with PMC arguments?

2004-11-05 Thread Jeff Clites
On Nov 4, 2004, at 10:30 PM, Brent 'Dax' Royal-Gordon wrote: On Thu, 4 Nov 2004 21:46:19 -0800, Jeff Clites <[EMAIL PROTECTED]> wrote: On Nov 4, 2004, at 8:29 PM, Brent 'Dax' Royal-Gordon wrote: This is true. But how do you define a number? Do you include floating-po

Re: No C op with PMC arguments?

2004-11-05 Thread Jeff Clites
t for the case Sam brought up.) I'd apply the same argument to many of the other p_p_p ops that we have--they don't gives us what we need at the HLL level (though they may still be necessary for other uses). JEff

Re: No C op with PMC arguments?

2004-11-04 Thread Jeff Clites
On Nov 4, 2004, at 8:29 PM, Brent 'Dax' Royal-Gordon wrote: Jeff Clites <[EMAIL PROTECTED]> wrote: I.e., PMCs don't inherently exponentiate--numbers do, and you can exponentiate PMCs by numberizing them, exponentiating, and creating a PMC with the result. This is true. Bu

Re: No C op with PMC arguments?

2004-11-04 Thread Jeff Clites
straighforward manner to types which know how to represent themselves as numbers. (e.g., it's gibberish to raise a ManagedStruct to a ParrotIO power, except that you can stretch and interpret such a thing as just implicit num-ification of the arguments.) JEff

mod_parrot 0.1

2004-11-03 Thread Jeff Horwitz
g.org/mod_parrot Maybe one day I'll have a real web page there. :) Enjoy, -jeff

  1   2   3   4   5   6   >