- 03 Aug, 2005 15 commits
-
-
Laura Creighton authored
v in van when the name is spelled in full.
-
Eric van Riet Paap authored
-
Niklaus Haldimann authored
translation with the integration yesterday, didn't think an app-level MixedModule could affect it.
-
Eric van Riet Paap authored
It was ment to be an alternative to PBC's that caused some problems during the Goteborg sprint. PBC now work fine.
-
Richard Emslie authored
-
Richard Emslie authored
-
Richard Emslie authored
-
Richard Emslie authored
-
Richard Emslie authored
-
Richard Emslie authored
-
Holger Krekel authored
- marshal and _sre are now switched off by default and also don't get translated. You can use --usemodules=_sre or --usemodules=marshal or --usemodules=marshal,_sre for usage on pypy/cpython - don't import marshal multimethod in the objspace/std/model.py. We need to investigate what causes the 5 MM-related RTyper errors if you include it. - added some more comments and clarifications here and there
-
Christian Tismer-Sperling authored
I added an interp-level marshal module. It is also enabled to do the basic marshalling and loading of .pyc files. This implementation is fairly fast. There is some performance to be gathered in the presence of files. Buffering has not been taken, yet. Hint: PyPy marshal does not use file descriptors, but file-like objects. For optimization, look for a seek method and redirect to the string marshaller. Make sure to seek back to the true end of the marshal. This is cheap, but make PyPy marshal much more versatile than CPython's. This implementation tries to be as compatible to builtin marshal as possible. At the time being, there is one problem: Recursion depth is not big enough to emulate CPython's nesting depth of 5000. I did a couple of aproaches to do it the stackless way. The snippets can be found in stackless_snippets, but nothing was pleasant enough, yet to make me incorporate it into the so far quite nice module. After all, every simpler effort brings me back to the way Stackless 3.1 implements things. I will finally implement an extension this way. Although I was not pleased with my temporary results, I have to say that RPython's object model is much nicer than that of the C language! The single inheritance is very, very powerful. I will use it to implement custom frame-like structures. I also agree with Armin's comment that such transformations should not be done by hand, but that we should find algorithms which generate this automatically. Besides that, I think it makes sense to explore these things, and marshal is a perfect example which is not too complicated, but reveals a number of non-trivial cases. Nevertheless, for complete CPython compatibility, it is necessary to limit object nesting to 5000, or CPython will crash. I do intend to back-translate the stackless version to CPython, in order to remove this arbitrary limitation. I'm also expecting new random arguments whioch will prevend this from getting into the core, as usual :-)
-
Christian Tismer-Sperling authored
it breaks annotation on the first problem. I think we should have this as a translation option.
-
Christian Tismer-Sperling authored
PLEASE correct it. I just didn't bother.
-
Christian Tismer-Sperling authored
-
- 02 Aug, 2005 15 commits
-
-
Eric van Riet Paap authored
- added entrypoint wrapper function to handle llvm->CPython exception conversions (very basic right now) - added calling convention (ccc/fastcc) to enable llvm to do its magic with functioncalls Last remaining exceptions test now passes! The test that is left is skipped because the interpreter does not like it.
-
Richard Emslie authored
-
Richard Emslie authored
-
Richard Emslie authored
Fixed howler - that was preventing richards from running.
-
Carl Friedrich Bolz-Tereick authored
- added array support - added support for structs with inlined arrays - added cast_pointer - tests for the above
-
Carl Friedrich Bolz-Tereick authored
of memory situations.
-
Niklaus Haldimann authored
-
Holger Krekel authored
targetpypymain.py goal)
-
Richard Emslie authored
-
Armin Rigo authored
-- one for building C extension modules and one for standalone executables. The test pass, at least on Linux.
-
Eric van Riet Paap authored
One, possible PBC related, test is failing. Two tests are failing because an exception in the llvm code is currently not converted to a CPython exception. The imported (pyrex) module for some reason then exits but I am not sure if I want the put any effort into fixing this (at the moment). Especially since the purpose is to have a selfreliant 'llvm-executable'.
-
Eric van Riet Paap authored
- finally use correct type for exc_type and exc_value globals - remove call to issubclass for "except: cases
-
Richard Emslie authored
* removed prints in preference to logging * refactoring of pbc nodes after creating void array node on last day of sprint
-
Anders Lehmann authored
The skipped test in test_parsestring passes. For some reason you cant ask isinstance(<a number>,(int,long)) at interpreterlevel ? Changed the isinstance to only ask for ints. enabled the test
-
Richard Emslie authored
-
- 31 Jul, 2005 10 commits
-
-
Carl Friedrich Bolz-Tereick authored
more similar to _ptr.
-
Richard Emslie authored
-
Carl Friedrich Bolz-Tereick authored
simulator. It is a bit crooked and for now only Structs with primitive types.
-
Armin Rigo authored
-
Richard Emslie authored
-
Richard Emslie authored
kindly from c/test/test_typed.py
-
Holger Krekel authored
Oups, missing from previous check-in.
-
Holger Krekel authored
for the end of times trying to see the full traceback
-
Holger Krekel authored
Progressing towards generating stand-alone C programs that don't link against CPython at all. Mostly works when tested by hand. Missing distutils incantations to compile the C source automatically (the inprogress test is disabled because of that).
-
Holger Krekel authored
empty call import code ; code.interact() basically)
-