Questions tagged [python-stackless]

Stackless Python is an experimental implementation of the Python language; Stackless was designed from the start to overcome the limitations of cPython's Global Interpreter Lock by using tasklets, which implement functions as microthreads.

Stackless Python is an experimental implementation of the Python language; Stackless was designed from the start to overcome the limitations of cPython's Global Interpreter Lock by using tasklets, which implement functions as microthreads.

From the Stackless Python web site:

Stackless Python is an enhanced version of the Python programming language. It allows programmers to reap the benefits of thread-based programming without the performance and complexity problems associated with conventional threads. The microthreads that Stackless adds to Python are a cheap and lightweight convenience which can if used properly, give the following benefits:

  • Improved program structure.
  • More readable code.
  • Increased programmer productivity.
80 questions
2
votes
4 answers

Segfault in the C code when using a Python tool called guppy ( heapy )

So I am using Python Stackless with heapy on two diffrent machines with the same architectures but slightly different C compilers. Heapy works perfectly fine on the first one, but I get a core dump on the second one. Python 2.7.1 Stackless 3.1b3…
theRealWorld
  • 1,188
  • 2
  • 8
  • 23
2
votes
3 answers

Is there something similar to Stackless Python available in C#?

Is there something similar to Stackless Python, i.e. a framework that supports continuations, microthreads and lightweight processes in C#? I know that C# 5 is going to support partially some of these features. But is there anything that can be used…
Can Gencer
  • 8,822
  • 5
  • 33
  • 52
2
votes
1 answer

Why Is My Stackless Executable So Much Smaller

I wrote a few games for a competition in Stackless Python and needed to create an executable. Accidentally though, I used CPython 2.6 instead of using Stackless Python 2.5 to build the executable. I rebuilt correctly, and found that the final size…
Nikwin
  • 6,576
  • 4
  • 35
  • 43
2
votes
1 answer

Sandboxed AND stackless python?

I need a scripting language for describing very complicated workflows. These workflows need to be paused whenever user input is required, and resumed after it is given (could be months later). Seems like serializable continuations from Stackless…
Lilith River
  • 16,204
  • 2
  • 44
  • 76
2
votes
1 answer

In stackless python, is data sent over a channel immutable?

I have a typical producer, consumer pattern. If the producer sends an object over a channel, the producer is blocked until the consumer accepts the object. After the consumer accepts the object, the producer alters the object in some way. Does the…
2
votes
0 answers

How can I use stackless python on heroku?

I'm trying to use stackless python for a heroku app, but they don't support the runtime: ! Requested runtime (stackless-3.3.5) was not found. This is surprising, since stackless-3.3.5 was recently added to the list of "unofficial" releases that…
Enucatl
  • 507
  • 3
  • 14
2
votes
3 answers

What are my options for doing multithreaded/concurrent programming in Python?

I'm writing a simple site spider and I've decided to take this opportunity to learn something new in concurrent programming in Python. Instead of using threads and a queue, I decided to try something else, but I don't know what would suit me. I have…
2
votes
2 answers

how stackless python can be fast for concurrency?

stackless python didn't take a good usage of multi-core, so where is the point it should be faster than python thread/multiprocessing ? all the benchmark use stackless python tasklet to compare with python thread lock and queue, that's unfair, cause…
davyzhang
  • 2,419
  • 3
  • 26
  • 34
2
votes
2 answers

Using Stackless Python to save the state of a large running program?

Given a large (4.5 GB codebase) python testing framework whose execution involves many tens of files, many of which are not directly pickle-able, is it possible to wrap initial execution of the program in a one line function, create a Stackless…
bsm
  • 207
  • 1
  • 10
2
votes
2 answers

Python Handling large number of Threads?

# data is a list Threading_list=[] class myfunction(threading.Thread): def __init__(self,val): ....... ....... def run(self): ....... ....... for i in range(100000): t=myfunction(data[i]) # need to…
Mok
  • 277
  • 1
  • 6
  • 16
1
vote
2 answers

Can not import stackless after stackless python installation

I used pycharm and eclipse+pydev, and I also installed stackless python(2.7.1) for mac os x. when I try to import stackless, there always are tips which is "can't find such package/reference", but when I switch to IDLE/Client, "import stackless" is…
Tom Heng
  • 35
  • 5
1
vote
2 answers

Stackless installation and configuration with DJango

I am trying to run a DJango Command Extension which uses stackless. I have installed Stackless Python (compiled with python 2.5) so whenever I type python2.5 at the console it fires up indicating that the version is Python 2.5.2 Stackless 3.1b3…
crashekar
  • 283
  • 1
  • 6
  • 15
1
vote
2 answers

Embedded python not picking up PYTHONPATH

I have a really weird problem with embedding python. If I don't specify PYTHONPATH, Py_Initialize fails with ImportError: No module named site. If I set PYTHONPATH in cmd and then run my program, it works! If I set PYTHONPATH programmatically…
toster-cx
  • 2,287
  • 1
  • 26
  • 32
1
vote
1 answer

Couldn't find index page for 'stackless_installer_c4_win32' (maybe misspelled?)

I am trying to install stackless python. I have tried pip install stackless-python easy_install stackless-python python -m pip install stackless-python I have done all these and also the same with an underscore instead of a dash. All of these spit…
user3993871
1
vote
0 answers

Factory returning boost exposed python object seg faults

I am having a wicked problem with exposing a polymorphic class hierarchy via a factory. I have created an example that demonstrates the problem. This is all being hosted in a executable with an embedded python(stackless 2.7) interpreter. When I run…