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
4
votes
2 answers

Any ready solution for basic asynchronous (non-blocking) HTTP clients with Stackless Python 3.1?

UPDATE: after much laboring with Py3, including writing my own asynchronous webserver (following a presentation given by Dave Beazley), i finally dumped Python (and a huge stack of my code )-: in favor of CoffeeScript running on NodeJS. Check it…
flow
  • 3,624
  • 36
  • 48
4
votes
1 answer

Stackless Scala With Free Monads, complete example

The following code is adapted from a paper (R. O. Bjarnason, Stackless Scala With Free Monads). The title of the paper points to the purpose of the proposed data structures in general - that is to afford recursive processing in constant stack space,…
user2715145
4
votes
2 answers

Stackless Python and PyQt

What experiences do you have with Stackless Python and PyQt? Issues i would be happy if people address: Compilation of PyQt for Stackless: does PyQt need to be compiled especially for Stackless? is the compilation smooth? problems with bindings…
random guy
  • 2,225
  • 6
  • 24
  • 24
3
votes
2 answers

Stackless Python - Recursion in a for loop?

I'm fairly new to programming and I've been working with Python for a few months now. I'm trying to get a concept to work with Stackless, but just can't figure out how (though I've written other test scripts that work with Stackless). Anywho, as a…
3
votes
1 answer

Tasklets Local Storage in Stackless Python

I'm starting with Stackless Python so it's a whole new amazing world for me. I usually use regular threads, and they normally have Thread-local storage (TLS), which is a very useful feature when you need NOT share memory with other threads. So,…
Cartucho
  • 3,257
  • 2
  • 30
  • 55
3
votes
1 answer

What's BLUE from CCP Stackless presentations?

In Stackless Python in Eve, there is some talk about "BLUE" objects in Python. Does anyone know details about this technology?
demonkoryu
  • 1,247
  • 10
  • 27
3
votes
1 answer

Which JVM languages are stackless?

Which Turing-complete language implementations on the JVM do not use the JVM stack as a call stack? (I ask because I want to implement coroutines between Scala and another language in the same thread.)
Robin Green
  • 32,079
  • 16
  • 104
  • 187
3
votes
3 answers

Simulating threads scheduling in java (stackless java?)

For some academic research I need to simulate several threads running on a single processor. I want to be able to insert *call_scheduler()* calls inside my code, in which the current "thread" will pause (remembering in which code line it is) and…
Oren
  • 2,767
  • 3
  • 25
  • 37
2
votes
3 answers

Is it possible to use stackless python 2.7.2 with pythondotnet?

Platform: Windows 7 Assume 32bit versions of both. My current understanding is that it is NOT possible since both installation processes involve replacing the python.exe itself. I guess the source for each would have to be merged in order to get…
Ryan R.
  • 2,478
  • 5
  • 27
  • 48
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

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
1 answer

Mailboxes with Stackless

In my stackless application I'd like to have Erlang style message box queues. Instead of mandating that sending tasklets are blocked until the receiving tasklet is ready to receive, I'd like to have the sending tasklet to queue up the message in the…
Timothy Baldridge
  • 10,455
  • 1
  • 44
  • 80
2
votes
1 answer

Does Pypy's stackless thread option support parallel execution?

I was reading about PyPy's stackless feature. My question is simple: does this get around the GIL? The page says it allows coding in "massively concurrent style". Does this also mean massively parallel style, taking advantage of multiple cores?
jmite
  • 8,171
  • 6
  • 40
  • 81
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