6 Jun 1999 21:54
Stackless Preview (was: Memory leak under Idle?)
Christian Tismer <tismer <at> appliedbiometrics.com>
1999-06-06 19:54:04 GMT
1999-06-06 19:54:04 GMT
Tim Peters wrote: [see the main list on idle leaks] > if-pystone-works-ship-it-ly y'rs - tim Well, on request of uncle Timmy, I do it. Although it's very early. A preview of stackless Python can be found under ftp://ftp.pns.cc/pub/stackless_990606.zip Current status: The main interpreter is completely stackless. Just for fun, I've set max recursion depth to 30000, so just try it. PyStone does of course run. My measures were about 3-5 percent slower than with standard Python. I think this is quite fair. As a side effect, the exec_statement now behaves better than before, since exec <anything> without globals and locals should update the current environment, which worked only for exec "string". Most of the Run_<thing> functions are stackless as well.(Continue reading)
David Grove pulled me into one of his
bouts of paranoia. I think he's calmed down for the moment.
> One interesting aspect of this for Python is the specific work being
> performed. From the FAQ on this joint effort, one gets, under "What is
> the scope of the work that is being done?":
>
> fork()
>
> This implementation of fork() will clone the running interpreter
> and create a new interpreter with its own thread, but running in the
> same process space. The goal is to achieve functional equivalence to
> fork() on UNIX systems without suffering the performance hit of the
> process creation overhead on Win32 platforms.
>
> Emulating fork() within a single process needs the ability to run
> multiple interpreters concurrently in separate threads. Perl version
> 5.005 has experimental support for this in the form of the PERL_OBJECT
> build option, but it has some shortcomings. PERL_OBJECT needs a C++
> compiler, and currently only works on Windows. ActiveState will be
> working to provide support for revamped support for the PERL_OBJECT
> functionality that will run on every platform that Perl will build on,
> and will no longer require C++ to work. This means that other operating
> systems that lack fork() but have support for threads (such as VMS and
> MacOS) will benefit from this aspect of the work.
>
> Any guesses as to whether we could hijack this work if/when it is released

RSS Feed