Re: [pypy-svn] r8201 - pypy/trunk/src/pypy/appspace
ale@codespeak.net wrote:
Author: ale Date: Tue Jan 11 08:58:40 2005 New Revision: 8201
Added: pypy/trunk/src/pypy/appspace/struct.py Log: Added the start of a struct module. It is not quite finished yet.
The structure of the code is basically as in structmodule.c. But some python goodies has been used - if that makes the module less RPython I don't know.
No, I think this is absolutely fine. I could translate it to RPython, and it works. See attached module. (The implementation will improve, but this is at least a proof that you wrote RPython) ciao - chris -- Christian Tismer :^) <mailto:tismer@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/ 14109 Berlin : PGP key -> http://wwwkeys.pgp.net/ work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/
Christian Tismer wrote:
ale@codespeak.net wrote:
Author: ale Date: Tue Jan 11 08:58:40 2005 New Revision: 8201
Added: pypy/trunk/src/pypy/appspace/struct.py Log: Added the start of a struct module. It is not quite finished yet.
The structure of the code is basically as in structmodule.c. But some python goodies has been used - if that makes the module less RPython I don't know.
No, I think this is absolutely fine. I could translate it to RPython, and it works. See attached module. (The implementation will improve, but this is at least a proof that you wrote RPython)
Eeek, I don't get an attached zip file through the list. should I put a file somewhere in the repos? Where? ciao - chris -- Christian Tismer :^) <mailto:tismer@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/ 14109 Berlin : PGP key -> http://wwwkeys.pgp.net/ work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/
On Tue, Jan 11, 2005 at 16:01 +0100, Christian Tismer wrote:
Christian Tismer wrote:
ale@codespeak.net wrote:
Author: ale Date: Tue Jan 11 08:58:40 2005 New Revision: 8201
Added: pypy/trunk/src/pypy/appspace/struct.py Log: Added the start of a struct module. It is not quite finished yet.
The structure of the code is basically as in structmodule.c. But some python goodies has been used - if that makes the module less RPython I don't know.
No, I think this is absolutely fine. I could translate it to RPython, and it works. See attached module. (The implementation will improve, but this is at least a proof that you wrote RPython)
Eeek, I don't get an attached zip file through the list. should I put a file somewhere in the repos? Where?
In this case I'd probably put just it somewhere on the web, for example in your public_html directory on codespeak so that it becomes available as http://codespeak.net/~tismer/... cheers, holger
Hi Holger,
Eeek, I don't get an attached zip file through the list. should I put a file somewhere in the repos? Where?
In this case I'd probably put just it somewhere on the web, for example in your public_html directory on codespeak so that it becomes available as http://codespeak.net/~tismer/...
Ah, great! The ugly file can be read here: http://codespeak.net/~tismer/struct.genrpy.py I swear to produce nicer code in the future, maybe by using small tail-called functions instead og goto blocks. ciao - chris -- Christian Tismer :^) <mailto:tismer@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/ 14109 Berlin : PGP key -> http://wwwkeys.pgp.net/ work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/
participants (2)
-
Christian Tismer -
hpk@trillke.net