Newsgroups: perl.perl6.internals
From: t...@tewk.com (Kevin Tew)
Date: Fri, 15 Apr 2005 22:37:50 -0600
Local: Sat, Apr 16 2005 12:37 am
Subject: Python on parrot
Sam,
Just wondering what the status is on python/parrot/pirate/pyrate. These both look outdated. Is there a up to date cvs repo? Kevin Tew You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: perl.perl6.internals
From: ru...@intertwingly.net (Sam Ruby)
Date: Sat, 16 Apr 2005 21:05:12 -0400
Local: Sat, Apr 16 2005 9:05 pm
Subject: Re: Python on parrot
Kevin Tew wrote: I haven't looked at it for a few months now. I do plan to revisit it > Sam, > Just wondering what the status is on python/parrot/pirate/pyrate. > These both look outdated. enough to get the Pie-thon tests completed by the time of OSCON (in August). > 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" is in the parrot repo already. - Sam Ruby You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: perl.perl6.internals
From: ru...@intertwingly.net (Sam Ruby)
Date: Sat, 16 Apr 2005 21:50:32 -0400
Local: Sat, Apr 16 2005 9:50 pm
Subject: Re: Python on parrot
[I hope you don't mind me putting this back on the list - I would prefer
that everybody who is interested can follow along and/or participate] I talked to Michal briefly about this a while back. My impression was that he wanted to sign over the copyright to the Python foundation. Which makes a bit of sense - the goal of having everything run on a single runtime does not necessarily imply that everything has to be owned by a single organization and put into a single repository. My own opinions is that Michal thinks too much. ;-) My impression is that everybody here is reasonable, and if it made sense Also, I believe that much of the initial work is throwaway work anyway. > Cool I did notice all the python pmcs. At the moment, it is to Python to IMC, but eventually going directly to > By translator I assume you mean a interpreter/compiler to parrot byte > code. bytecode would be a good idea. > Why would you do it in Perl6, why not self hosted in python? Self hosted in Python is a good idea, once it can be bootstrapped. Overview of the current process: 1) Leverage python's "compiler" class to convert source to AST > I'm thinking of toying around with python and just want to leverage all Excellent. In the meantime, if you are interested in getting commit > the previous work. access to the Pirate repository, I'm confident that that can be arranged. My feeling, for what it is worth, the translator is known to be a But, as with all open source projects, feel free to scratch your own itches. > Looks like I'll start with a translator and some new test cases so they There also are a fair amount of python test cases in the parrot > can be contributed copyright free. repository. parrot/languages/python/*/*.t and t/dynclass/python/*.t. When I last looked, these were not complete. Undoubtably, there is - Sam Ruby You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Sun, 17 Apr 2005 10:05:29 +0200
Local: Sun, Apr 17 2005 4:05 am
Subject: Re: Python on parrot
Hi Sam, long not hear ;)
> ... The overwhelming majority of that work I'm currently working on that. Some of the MMD functions are already > is in getting the PMCs right. rewritten so that they can return new result PMCs. With the now working MMD system I'v also changed Python (and Tcl) PMCs accordingly. E.g. subtracting two PyInts gives a PyLong on overflow albeit the subtract is inherited from the Integeer PMC. See also: That's not yet finished and opcodes that create new detination PMCs > ... I have not kept up with the I'd appreciate if you can find the time to follow p6i. BTW we have > latest Parrot changes. switched to SVN. > - Sam Ruby leo You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: perl.perl6.internals
From: mic...@withoutane.com (Michal)
Date: Sun, 15 May 2005 13:17:42 -0400 (EDT)
Local: Sun, May 15 2005 1:17 pm
Subject: Re: Python on parrot
On Sat, 16 Apr 2005, Sam Ruby wrote: Hey guys, > [I hope you don't mind me putting this back on the list - I would prefer that > everybody who is interested can follow along and/or participate] > Kevin Tew wrote: I didn't see this until just now. >>> Kevin Tew wrote: Sam, are you still interested in this? >>>> Sam, >>>> Just wondering what the status is on python/parrot/pirate/pyrate. >>>> These both look outdated. >>> I haven't looked at it for a few months now. I do plan to revisit it Pirate is based on code created by Andrew Kuchling and the copyright on that work already belongs to the Python foundation. Mostly I think pirate is just a different project from parrot > the goal of having everything run on a single runtime does Yes. That was the other main idea. I was hoping that we could > not necessarily imply that everything has to be owned by a > single organization and put into a single repository. leverage the objects that the python team had already created. Do PMC's still have to be compiled inside the parrot source > My own opinions is that Michal thinks too much. ;-) This is almost certainly true. :) > My impression is that everybody here is reasonable, and if I hope this is true, too. :) > it made sense for further development to be transferred to > another organization, then some reasonable arrangement > would be made. > Also, I believe that much of the initial work is throwaway I've never really bought that logic. :) It works, and (especially > work anyway. Build one to throw away, and all that. after your last batch of refactorings) the code is pretty clean. I would like to see the emitter code separated out into a builder object though. >> Cool I did notice all the python pmcs. By translator I That's fine with me, as long as parrots imc compiler does the >> assume you mean a interpreter/compiler to parrot byte >> code. > At the moment, it is to Python to IMC, but eventually work. :) >> Why would you do it in Perl6, why not self hosted in python? I'm not sure what Kevin meant by self hosted but I've been > Self hosted in Python is a good idea, once it can be bootstrapped. thinking about this lately, and what we can do today is creating a back-end for the compiler that emits simplified python code in a way that would give us things like continuations (though with some loss of speed) without the need to duplicate the python library. > Overview of the current process: Sure. Kevin, if you're still interested let me know. > 1) Leverage python's "compiler" class to convert source to AST >> I'm thinking of toying around with python and just want > Excellent. In the meantime, if you are interested in getting commit access > My feeling, for what it is worth, the translator is known You're absolutely right. > to be a solvable problem. Determining the proper mapping > of Python semantics to Parrot is the research problem. > The overwhelming majority of that work is in getting the > PMCs right. Not having to worry about the syntax of > python or the conversion to bytecodes allows one to focus > on just that aspect of the problem. I finally had a chance to look into what you've done, both in the To me the main concern is making the PMC's compatable (or at least I agree with your point about optimizing the objects for parrot. I >> Looks like I'll start with a translator and some new test Kevin: did you actually do this? There would certainly be >> cases so they can be contributed copyright free. a copyright on your contribution, it would just be owned by the perl group instead of the python group. Is that your only reason for wanting to redo all our work? If possible, I'd much rather have you on the pirate team. Can we discuss this? > There also are a fair amount of python test cases in the I ran the tests off the latest parrot from subversion. > parrot repository. parrot/languages/python/*/*.t and > t/dynclass/python/*.t. > When I last looked, these were not complete. Undoubtably, Only three tests are failing, and they all seem to involve booleans: set_bool() not implemented in class 'PyBoolean' Everything else works great. - Michal You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: perl.perl6.internals
From: ru...@intertwingly.net (Sam Ruby)
Date: Sun, 15 May 2005 14:59:59 -0400
Local: Sun, May 15 2005 2:59 pm
Subject: Re: Python on parrot
I had better be:
http://conferences.oreillynet.com/cs/os2005/view/e_sess/6833 answer is no. Short term, the answer is yes. That should be easy enough to fix. > Everything else works great. Cool! - Sam Ruby You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: perl.perl6.internals
From: mic...@withoutane.com (Michal Wallace)
Date: Mon, 16 May 2005 10:49:55 -0400 (EDT)
Local: Mon, May 16 2005 10:49 am
Subject: Re: Python on parrot
On Sun, 15 May 2005, Kevin Tew wrote: Er. Yes. I can't speak for Sam, but I interpreted his post > I've taken the code from > http://www.intertwingly.net/stories/2004/10/05/pyrate.zip, > which I assume to be Sam's code. It was basically stubs > with a few AST nodes implemented when I started with it. as a spike of how a pirate refactoring could go, not a call to start a whole new incompatible project. > And am working to generate a python to pir Well, one thing that's innefficient is to write your own > translator/compiler that uses Sam's python pmc's I've > attached the source as it stands now. I'm just an > aspiring parrot hacker. I'm sure that there are a lot of > things I'm doing wrong or inefficiently. I'm looking for > feedback and suggestions for improvement. Please comment. compiler when there are already two mostly working examples out there. > I want to get my patches on top of Sam's initial work I'm absolutely bewildered that you would take that route in order > imported into the parrot SVN tree. > I believe that having the python compiler code in parrots to build a community. Between pie-thon and pirate there already are two python compilers, and pie-thon already *is* in the parrot tree... As far as I can tell, you didn't approach either existing group and see if you could help. You just went off and did your own thing. You're not building a community, you're creating yet another faction. > A python compiler in the parrot tree will lead to more This is a great goal, but I'm not sure it follows that > widespread exposure to other parrot developers, increased > peer review, testing by more people on a greater variety > of platforms, etc. having it in the source tree would lead to more exposure. To me, if you want exposure, a much better idea would be In my mind, the target audience for pirate is python - this buys us continuations without the genius-level - we'll be able to leverage CPAN and code written in - we'll have a native call interface - (etc) ... then maybe python hackers will be interested. So they Of course if you're targeting parrot developers who may or may I don't know, maybe I'm just rambling, but I don't see how > Michal could you expound on your thoughts here, they sound interesting. Sure. This is kind of off topic for the parrot list. I posted > I'm not sure what Kevin meant by self hosted but I've > been thinking about this lately, and what we can do > today is creating a back-end for the compiler that > emits simplified python code in a way that would give us > things like continuations (though with some loss of > speed) without the need to duplicate the python library. a blog entry here: http://sabren.com/index.php?p=62 > I meant a python to pir translator/compiler written in python. Like this one: http://pirate.tangentcode.com/ ?? > I've looked at the PyPy project. They are doing cool So why don't you want to help them with that work? Right > stuff. I would eventually like to use their work to emit > optimized pir for python, but they still have work to do. now you're just reinventing the wheel. If you were writing a backend for pypy, that would be one thing. That would actually be useful. Better yet, not write up a little report about what it would take to get pirate to work with pypy? We could almost certainly leverage their type inference engine. I'd love to see pirate become just another backend for pypy. It seems to me that would do a lot more to build community than the approach you're taking. - Michal You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
| Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy |
| ©2009 Google |