Questions tagged [stackless]

Stackless refers to a code implementation that does not use a call stack. Haskell is an example of a stackless language

Stackless refers to a code implementation that does not use a call stack. Haskell is an example of a stackless language

46 questions
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

windows 8 incompatibility?

I cannot get my code to run on my win8 laptop. I am working with a combination of: Stackless Python 2.7.2 Qt 4.8.4 PySide 1.1.2 Eclipse/Pydev and WingIDE This works well on my Win7 PC, but now i have bought a demo laptop with windows 8. As far as…
Lars
  • 1,869
  • 2
  • 14
  • 26
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
1 answer

Stackless Python - profile single tasklet execution time

In my server written in Stackless Python, I occasionally am getting large spikes in CPU usage for 5-10 seconds durations. This happens sporadically so I'm having trouble tracking it down. I've used cProfile to try and determine where these spikes…
OpenUserX03
  • 1,448
  • 2
  • 14
  • 21
1
vote
1 answer

Resume ASIO Stackless Coroutine

Having played a little with the current implementation of Coroutine TS in Clang, I stumbled upon the asio stackless coroutine implementation. They are described to be Portable Stackless Coroutines in One* Header. Dealing mostly with asynchronous…
rmm19433
  • 280
  • 2
  • 10
1
vote
2 answers

Fastest way to produce UDP packets

We're building a test harness to push binary messages out on a UDP multicast. The prototype is using the Twisted reactor loop to push out messages, which is achieving just about the level of traffic we require - about 120000 messages per second. We…
Ben Hughes
  • 2,527
  • 1
  • 18
  • 16
1
vote
1 answer

Retrieving the Return Value of a Stackless Python Tasklet Bound Function?

Stackless Experts, I have managed to create tasklets under Stackless Python (both from the Stackless and the C side). It seems to me that in order to create a tasklet in Stackless, you bind an arbitrary Python callable (function) to the tasklet (as…
Lin
  • 355
  • 3
  • 10
1
vote
1 answer

Robson tree traversal algorithm

Can anyone explain the Robson algorithm for tree traversal? I'm having trouble understanding what the steps of the algorithm are.
user2980766
  • 151
  • 6
1
vote
1 answer

Does coroutine stacks grow in Lua, Python, Ruby or any other languages?

There are some languages which support deterministic lightweight concurrency - coroutine. Lua - coroutine Stack-less Python - tasklet Ruby - fiber should be many more... but currently I don't have much idea. Anyway as far as I know, it needs many…
eonil
  • 83,476
  • 81
  • 317
  • 516
1
vote
3 answers

Explain socket buffers please

I was trying to find examples about socket programming and came upon this script: http://stacklessexamples.googlecode.com/svn/trunk/examples/networking/mud.py When reading through this script i found this line: listenSocket.listen(5) As i understand…
Odif Yltsaeb
  • 5,575
  • 12
  • 49
  • 80
0
votes
1 answer

Is it possible to serialize tasklet code (not just exec state) using SPickle without doing a RPC?

Trying to use stackless python (2.7.2) with SPickle to send a test method over celery for execution on a different machine. I would like the test method (code) to be included with the pickle and not forced to exist on the executing machines python…
Ryan R.
  • 2,478
  • 5
  • 27
  • 48
0
votes
1 answer

Is there a stackless and heapless programming language?

Is there a statically compiled programming language that is both stackless and heapless? For data, such a language would not have a concept of memory allocation. Instead, the memory requirements of the program would be known completely at…
0
votes
1 answer

Difficulty using stackless python, cannot write to a dict

I have simple map-reduce type algorithm, which I want to implement in python and make use of multiple cores. I read somewhere that threads using native thread module in 2.6 dont make use of multiple cores. is that true? I even implemented it using…
ANON
  • 1
  • 3
0
votes
1 answer

Stackless python stopped mod_python/apache from working

I installed stackless pyton 2.6.2 after reading several sites that said its fully compatible with vanilla python. After installing i found that my django applications do not work any more. I did reinstall django (1.1) again and now im kind of lost.…
Odif Yltsaeb
  • 5,575
  • 12
  • 49
  • 80
0
votes
1 answer

Would C/C++/Pascal/etc. be substantially slower if it was a stackless language?

And a related question: How would stack traces/similar debugging features look like in it? And please excuse me if this is a stupid question, but I don't know much about low-level programming. I know most CPUs have instructions related to the stack,…
Llamageddon
  • 3,306
  • 4
  • 25
  • 44