Re: Pie-thon state 5 - and final
I'd like to second the "wow". I've been lurking on the list for two years, and I wanted to say how impressive this is. The promise of Parrot seems like a fantasy, and here you are with most of Python running at better speed than on it's own interpreter. It's gone from a fantasy to a defect list. It blows me away. What Parrot will do for Perl, Python, Ruby, probably Java and .NET, and (I like to think) development in general, is pretty amazing. Thank you. Scott --- Scott Smith Manager of Application Design and Development Genome Sequencing Center Washington University School of Medicine Leopold Toetsch said: > Clark C. Evans wrote: >> Wow. I'm impressed you got anywhere near this far! Your work sounds >> very promising, a great way to validate Parrot's value proposition. > > Thanks. > >> On Sat, Jul 24, 2004 at 12:24:48PM +0200, Leopold Toetsch wrote: >> | >> | >>> False=42 > >> But that's not a bug. If one assignes "42" to False, then this is what >> False means, 42, nothing more and nothing less. Yes, I know you know this. > > Well. There are (AFAIK) only 2 instances of the bool object, these > shouldn't be assignable. I think that doing "(True,False) = (0,1)" and > then importing some library would break things horribly. > >> If you could, would you set your goal slightly higher than >> just the Python tests? I'd love to see Parrot do Stackless Python! > > What I know of stackless isn't too much. But Parrot is using CPS > (continuation passing style) for all subroutine and method calls, > including coroutines aka generators. So I think that *is* stackless Python. > >> *bings* >> >> Clark > > leo >
Re: Pie-thon state 5 - and final
Clark C. Evans wrote: Wow. I'm impressed you got anywhere near this far! Your work sounds very promising, a great way to validate Parrot's value proposition. Thanks. On Sat, Jul 24, 2004 at 12:24:48PM +0200, Leopold Toetsch wrote: | | >>> False=42 But that's not a bug. If one assignes "42" to False, then this is what False means, 42, nothing more and nothing less. Yes, I know you know this. Well. There are (AFAIK) only 2 instances of the bool object, these shouldn't be assignable. I think that doing "(True,False) = (0,1)" and then importing some library would break things horribly. If you could, would you set your goal slightly higher than just the Python tests? I'd love to see Parrot do Stackless Python! What I know of stackless isn't too much. But Parrot is using CPS (continuation passing style) for all subroutine and method calls, including coroutines aka generators. So I think that *is* stackless Python. *bings* Clark leo
Re: Pie-thon state 5 - and final
Wow. I'm impressed you got anywhere near this far! Your work sounds very promising, a great way to validate Parrot's value proposition. On Sat, Jul 24, 2004 at 12:24:48PM +0200, Leopold Toetsch wrote: | And there is of course the question, if we should really be | "bug"-compatible | | >>> False=42 | >>> if False: | ... print "aha", False | ... | aha 42 But that's not a bug. If one assignes "42" to False, then this is what False means, 42, nothing more and nothing less. Yes, I know you know this. If you could, would you set your goal slightly higher than just the Python tests? I'd love to see Parrot do Stackless Python! *bings* Clark
Re: Pie-thon state 5 - and final
At 12:24 PM +0200 7/24/04, Leopold Toetsch wrote: Below is the last summary of the attempt to implement enough of Python to run the Pie-thon benchmarks - within 5 weeks. Four and a half of seven programs are running. Albeit this experiment did fail, it IMHO has brought Parrot a lot further. Valuable interals like integer->bigint promotion are vastly implemented. We'll have to sort out, what we will keep in core and what should be moved into a Python or maybe a general HLL support library. Yeah. I'm sketching out a post-mortem of the project (I've got some internet access -- I'm hiding in a Starbucks and escaping the 103F/40C heat and making use of the hotspot) as there were a number of issues that this project brought out that we need to deal with. Despite the fact that we didn't make it, the project *was* worthwhile, and I want to get it finished. Having it working is useful for a number of reasons, and it'd be damned foolish to let all the work that's been done go to waste. Leo did a *lot* of work on this, and deserves the credit for getting things to the state they're in. What I'd like to do now is clean up the source that's been committed so other folks can understand it, and we can work out how to do the final integration of the Python-specific code. If there are enough folks at OSCON to make this worthwhile we may grab a room and sketch things out, otherwise we'll hash things out on the list the next week or so. -- Dan --it's like this--- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk
RE: Pie-thon state 5 - and final
At 10:13 AM -0700 7/24/04, Tim Howell wrote: Does this mean that Dan is conceeding to Guido, or am I missing something? Yep, that's about it. Also, when/where at OSCON is all of this supposed to take place? Python lightning talks. -- Dan --it's like this--- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk
RE: Pie-thon state 5 - and final
Does this mean that Dan is conceeding to Guido, or am I missing something? Also, when/where at OSCON is all of this supposed to take place? --TWH -Original Message- From: Leopold Toetsch [mailto:[EMAIL PROTECTED] Sent: Saturday, July 24, 2004 3:25 AM To: Perl 6 Internals Cc: Dan Sugalski Subject: Pie-thon state 5 - and final Below is the last summary of the attempt to implement enough of Python to run the Pie-thon benchmarks - within 5 weeks. Four and a half of seven programs are running. Albeit this experiment did fail, it IMHO has brought Parrot a lot further. Valuable interals like integer->bigint promotion are vastly implemented. We'll have to sort out, what we will keep in core and what should be moved into a Python or maybe a general HLL support library. But before starting over, we will have to go through some of the issues that arise, when HLL borders are crossed. E.g.: PyString + PMC := concat PyString % PMC := sprintf And there is of course the question, if we should really be "bug"-compatible >>> False=42 >>> if False: ... print "aha", False ... aha 42 Have fun, leo
Pie-thon state 5 - and final
Below is the last summary of the attempt to implement enough of Python to run the Pie-thon benchmarks - within 5 weeks. Four and a half of seven programs are running. Albeit this experiment did fail, it IMHO has brought Parrot a lot further. Valuable interals like integer->bigint promotion are vastly implemented. We'll have to sort out, what we will keep in core and what should be moved into a Python or maybe a general HLL support library. But before starting over, we will have to go through some of the issues that arise, when HLL borders are crossed. E.g.: PyString + PMC := concat PyString % PMC := sprintf And there is of course the question, if we should really be "bug"-compatible >>> False=42 >>> if False: ... print "aha", False ... aha 42 Have fun, leo The Pie-thon state - 5 17.07.2004 Pie-thon 73 - 76 Iterators generators, slices cleanup. Implement SET_SLICE and DEL_SLICE. 17.07.2004 Pie-thon 77 vtable cleanup, floor_divide Removed tons of unused vtables concerning BIGNUM. All these vtable entries assumed that BIGNUM is a native Parrot type, which it isn't. BIGNUMs a PMCs. Create a new floor_divide MMD entry. 19.07.2004 Pie-thon 78 - b6.py Adapt perlhash.fromkeys() to new slice creation scheme. b6.py is running - fast. 19.07.2004 Pie-thon 79 Better var arg handling of foo(*arg). 19.07.2004 Pie-thon 80 parrot/pie-thon.pl run this piece from b2.py: def izip(*args): args = map(iter, args) while 1: yield tuple([x.next() for x in args]) def main(): for x, y in izip(xrange(10), "abcdefghijklmnop"): print y, print if __name__ == '__main__': main() 20.07.2004 Pie-thon 81 - 82 Towards objects and attributes. Hack pie-thon.pl to do something for ooops[1]. 21.07.2004 Pie-thon 83 - 85 More object bits. Get generator method in object running. 22.07.2004 Pie-thon 86 Fixed a bug in Parrot exception code. After reentering the runloop 3 times, nested exceptions caused a SEGFAULT. 22.07.2004 Pie-thon 87 b2.py runs. And as promised it runs fast. More then double the speed of Python - with an unoptimized Parrot build ;) 22.07.2004 Pie-thon 88 - 90 Approaching b3.py: unary_negative in pie-thon.pl. Fix various ResizablePMCArray bugs. Implement the __new__ aka "CONSTRUCT" functionality, which creates an object for a given class and arguments. 23.07.2004 Pie-thon 91 - 92 Provide a builtin __new__ as default fallback. Parrot got trace output for method call resolution. Pie-thon 93 Parrot's native type vtable functions and Python's everything is a PMC objects are fighting, if a vtable function like "__get_string" is overridden. The vtable wants a native type like STRING* while the external function delivers a PMC. Parrot now extracts the native type it needs from the PMC, if the return value signature of the function indicates a PMC. 23.07.2004 Pie-thon 94 - 95 b3.py is running. It reveals a DOD bug though, so GC is disabled. This concludes the effort to implement the Pie-thon benchmark for OSCON, because there isn't any chance to implement the needed bits for b0.py in the remaining time. Four of seven benchmarks are running: b1, b2, b3, and b6. b5 is done partially. Three of these are faster on Parrot, but e.g. while b2.py is running 3 times the speed of python, it takes just 0.2s here on a Pentium 600, which makes it hard to say, what's faster for these test collection. The benchmarks are mainly testing the speed of builtin functions, which are of course mature and optimized in Python, while a lot of the builtins just didn't even exist in Parrot a month ago. When it comes to just running arithmetic code, like in b2.py, Parrot is a lot faster. I'd estimate that Parrot will run at about twice the speed of Python or Perl5 on average, finally. [1] ooops: object oriented obfuscation - pythonic sense
