stackless

Good python library for designing a mmo? Actor based design

i m trying to design a mmo game using python... I have evaluated stackless and since it is not the general python and it is a fork, i dont want to use it I am trying to chose between pysage candygram dramatis and parley any one try any of these libraries? Thanks a lot for your responses ...

What problem characteristics promote the use of parallel/concurrent architectures?

I am quite excited by the possibility of using languages which have parallelism / concurrency built in, such as stackless python and erlang, and have a firm belief that we'll all have to move in that direction before too long - or will want to because it will be a good/easy way to get to scalability and performance. However, I am so u...

What stackless programming languages are available?

What stackless programming languages are available? I know of Stackless Python, but are there any other languages which do not rely on a C stack that can be embedded into other applications? List of stackless programming languages: Stackless Python PyPy by climatewarrior Lua by Van Gale Tcl by Martin Drapeau Lisp and Scheme by John F...

Stackless python network performance degrading over time?

So i'm toying around with stackless python, writing a very simple webserver to teach myself programming with microthreads/tasklets. But now to my problem, when I run something like "ab -n 100000 -c 50 http://192.168.0.192/" (100k requests, 50 concurrency) in apache bench I get something like 6k req/s, the second time I run it I get 5.5k,...

What are the drawbacks of Stackless Python?

I've been reading recently about Stackless Python and it seems to have many advantages compared with vanilla cPython. It has all those cool features like infinite recursion, microthreads, continuations, etc. and at the same time is faster than cPython (around 10%, if the Python wiki is to be believed) and compatible with it (at least ver...

In stackless Python, can you send a channel over a channel?

I do not have stackless currently running, so I can not try this myself. import stackless ch1 = stackless.channel() ch2 = stackless.channel() ch1.send(ch2) ch3 = ch1.receive() Are ch2 and ch3 then the same channel? Say: text = "Hallo" ch2.send(text) assert text == ch3.receive() This feature reminded me of a talk about Newsqueak th...

Multiprocessing or Multithreading?

I'm making a program for running simulations in Python, with a wxPython interface. In the program, you can create a simulation, and the program renders (=calculates) it for you. Rendering can be very time-consuming sometimes. When the user starts a simulation, and defines an initial state, I want the program to render the simulation con...

What does it really mean that a programming language is stackless?

According to this answer http://stackoverflow.com/questions/551950/what-stackless-programming-languages-are-available/671296#671296 all of these programming languages are stackless Stackless Python PyPy Lisp Scheme Tcl Lua Parrot VM What does it really mean for them to be stackless? Does it mean they don't use a call stack? If the...

What C-integration problems arise with stackless VM implementations?

By stackless VM I mean implementation which maintains its own stack on the heap instead of using system "C-stack". This has a lot of advantages like continuations and serializable state, but also has some disadvantages when it comes to C-bindings, especially to C-VM-C kind of callbacks (or VM-C-VM). The question is what exactly these di...

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 060516 (python-2.52:72942, May 26 2009, 23:07:34) [GCC 4.3.3] on linux2 But in my eclipse ...

Python Comet Server

I am building a web application that has a real-time feed (similar to Facebook's newsfeed) that I want to update via a long-polling mechanism. I understand that with Python, my choices are pretty much to either use Stackless (building from their Comet wsgi example) or Cometd + Twisted. Unfortunately there is very little documentation reg...

How does a stackless language work?

I've heard of stackless languages. However I don't have any idea how such a language would be implemented. Can someone explain? ...

Threading in Python

What's the best approach to writing multi-threaded applications in Python, I'm aware of the basic concurrency mechanisms provided by the language and also of Stackless Python. What would you recommend and why? ...

Explain socket buffers please.

Hello! 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 it - it reads 5 bytes from the buffer and then does stuff with it... but what...

Stackless python stopped mod_python/apache from working.

Hello 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. The error that i get is 500: Internal Server Error The server encountered an int...

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 etc. Stability: any unexpected crashes, freezes, pauses and other weirdities? Memory Manage...

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 lock always has low efficiency see, if use single thread function call without lock i...

mod_python is not loading stackless python

Hi, I have setup a apache2 mod_python environment with stackless python and it is working. And When I test the python environment with sys.version , it shows 2.5.2 Stackless 3.1b3 060516 (python-2.52:76701, Dec 8 2009, 02:13:34) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu4)] in the browser But when I do "import stackless" it shows : MOD_PY...

Stackless python + apache + mod_python on ubuntu

Has anyone setup a apache2 and mod_python with stackless on ubuntu? If yes can you please post here the steps involved? Thanks in advance ...

Which programming languages support hot code swapping and/or sandboxing?

Hello, I would like to write a web based MMO game that will allow users to write AI and run it as part of the game. I plan to use Html5 for graphics and want this to be web based so it can be accessed from smartphones. I need to find a programming language that will support sandboxing, concurrency, hot code swapping, and a large librar...