473,563 Members | 2,897 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stackless Integration

Hi,

I've been looking at stackless python a little bit, and it's awesome.
My question is, why hasn't it been integrated into the upstream python
tree? Does it cause problems with the current C-extensions? It seems
like if something is fully compatible and better, then it would be
adopted. However, it hasn't been in what appears to be 7 years of
existence, so I assume there's a reason.

Justin

Aug 9 '07 #1
6 1109

"Justin T." <jm*******@gmai l.comwrote in message
news:11******** **************@ i38g2000prf.goo glegroups.com.. .
| I've been looking at stackless python a little bit, and it's awesome.
| My question is, why hasn't it been integrated into the upstream python
| tree? Does it cause problems with the current C-extensions? It seems
| like if something is fully compatible and better, then it would be
| adopted. However, it hasn't been in what appears to be 7 years of
| existence, so I assume there's a reason.

First, which 'stackless'? The original continuation-stackless (of about 7
years ago)? Or the more current tasklet-stackless (which I think is much
younger than that)?

The original added a feature Guido did not want (continuations) and
required major changes to the core that would have make maintainance
probably more difficult for most of the developers, including GvR. For
more, see
http://www.python.org/dev/peps/pep-0219/

Second, what do you mean by integration? The current tasklet version is, I
am sure, as well integrated as Tismer can make it. Last I looked, there
were warnings about possible incompatibiliti es, but perhaps these have been
overcome. It is just not part of the stdlib. And as far as I know or
could find in the PEP index, C. Tismer has never submitted a PEP asking
that it be made so. Doing so would mean a loss of control, so there is a
downside as well as the obvious upside of distribution.

tjr

Aug 9 '07 #2
On Aug 9, 8:57 am, "Terry Reedy" <tjre...@udel.e duwrote:
First, which 'stackless'? The original continuation-stackless (of about 7
years ago)? Or the more current tasklet-stackless (which I think is much
younger than that)?
The current iteration. I can certianly understand Guido's distaste for
continuations.
>
overcome. It is just not part of the stdlib.
And I wish it were! It wouldn't be such a pain to get to my developers
then.
And as far as I know or
could find in the PEP index, C. Tismer has never submitted a PEP asking
that it be made so. Doing so would mean a loss of control, so there is a
downside as well as the obvious upside of distribution.
That's true. Though, hopefully, the powers that be would allow him to
maintain it while it's in the stdlib. Maybe we should file a PEP for
him... :)

Justin

Aug 9 '07 #3
It's not Pythonic.

Jean-Paul
Ha! I wish there was a way to indicate sarcasm on the net. You almost
got people all riled up!

Aug 9 '07 #4
On 2007-08-09, Justin T. <jm*******@gmai l.comwrote:
>
>It's not Pythonic.

Jean-Paul

Ha! I wish there was a way to indicate sarcasm on the net. You
almost got people all riled up!
Sorry. There's NO WAY to show sarcasm on the net. ;)

--
Neil Cerutti
Aug 9 '07 #5
In article <sl************ ********@FIAD06 .norwich.edu>,
Neil Cerutti <ho*****@yahoo. comwrote:
>On 2007-08-09, Justin T. <jm*******@gmai l.comwrote:
>>JP Calderone:
>>>
It's not Pythonic.

Ha! I wish there was a way to indicate sarcasm on the net. You
almost got people all riled up!

Sorry. There's NO WAY to show sarcasm on the net. ;)
"If sarcasm were posted to the Net, would anybody notice?" --JDN
--
Aahz (aa**@pythoncra ft.com) <* http://www.pythoncraft.com/

"And if that makes me an elitist...I couldn't be happier." --JMS
Aug 9 '07 #6

"Justin T." <jm*******@gmai l.comwrote in message
news:11******** **************@ x40g2000prg.goo glegroups.com.. .
| And as far as I know or
| could find in the PEP index, C. Tismer has never submitted a PEP asking
| that it be made so. Doing so would mean a loss of control, so there is
a
| downside as well as the obvious upside of distribution.
| That's true. Though, hopefully, the powers that be would allow him to
| maintain it while it's in the stdlib.

A commitment to maintain is a requirement, not something allowed. By loss
of control, I meant things like comforming to PSF's C and Python code style
guide, responding to possible api change requests, and meeting doc and test
suite requirement. There is also the policy of no-feature-additions with
bug-fix releases (x.y.*). Is the development of stackless essentially
finished? and the design 'frozen'?

| Maybe we should file a PEP for| him... :)

You could offer to help him, but only he can offer his code. Judging from
discussions of other proposed additions, I expect that the PEP submitter(s)
would have to substantively deal with questions like
* Do the C stack manipulations interfere with other operations, either core
or extensions? What test have you run to show that it does not.?
* Is the functionality portable to Jython and IronPython? (No is a strike
against acceptance.) If so, how easily?
* Generators were, in a sense, an alternative to continuation-stackless.
The 2.5 addition of generator.send( ), making communication more easily
2-way, makes generators more like tasklets. So why do we really need them?
How about an alternative implementation built on generators?

If you want some idea of the type of back and forth discussion that may be
involved, look at the discussion of Eby's generic functions PEP (3124) on
the Py-3000 list.

Terry Jan Reedy

Aug 10 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2297
by: srijit | last post by:
Hello Chris, Please refer an old message below. I unzipped python23.dll.zip and kept python23.dll in a local folder. I started Python from a dos box (Win XP machine) in the same local folder. I typed help(stackless) and got an error message, as shown below. D:\Python23\myfiles>python Python 2.3.3 (#51, Dec 18 2003, 20:22:39) on win32...
7
1674
by: Christian Tismer | last post by:
New Win32 binaries have been uploaded to the Stackless website. Some compatibility issues with certain constructors have been solved. Please let me know of any problems. more to come soon - cheers -- chris -- Christian Tismer :^) <mailto:tismer@stackless.com>
0
1330
by: Christian Tismer | last post by:
As already announced, the *********************************************** *** *** *** S t a c k l e s s S p r i n t *** *** *** *********************************************** has now a settled date: It will take place in Berlin, March 10-14 2004.
4
2272
by: Christian Tismer | last post by:
Dear Former Stackless Users, I have to use this list to announce something really bad to you, since all the Stackless lists are defunct: The Stackless project is finally dead, now and forever. If this doesn't affect you, please don't worry and just ignore it. I don't take any responsibilities for any harm brought to you, your family or...
28
4828
by: Matt Leslie | last post by:
Hi, I'm trying to use microthreads under stackless python, since they sound like exactly what I am after, but I am having very little success. I've got a fresh install of python 2.3.3 from python.org, then downloaded the binary python2.3 release of stackless python from www.stackless.com. This contained three files: python23.dll,...
11
2644
by: binarybana | last post by:
After recently getting excited about the possibilities that stackless python has to offer (http://harkal.sylphis3d.com/2005/08/10/multithreaded-game-scripting-with-stackless-python/) and then discovering that the most recent version of stackless available on stackless.com was for python 2.2 I am wondering if Stackless is dead/declining and if...
3
2010
by: Richard Tew | last post by:
Hi, Stackless Python is now available for the recent release of Python 2.4.3 (final). You can either obtain the source code from the SVN repository or download the precompiled windows binaries. SVN: http://codespeak.net/svn/stackless/Python-2.4.3/dev Download: http://www.stackless.com/download
0
938
by: Linnorm | last post by:
I've written a port forwarding wrapper with paramiko for an app we use and it works fine except that it consumes way too much processor. (i.e. 25% +) I'm trying to write a stackless-based server class to replace the threading one but I can't get the tunnel the wrapper creates to work for more than one instance of the app. I based my code on...
0
1740
by: davy zhang | last post by:
thank you very much for the advices! I asked myself many times, why not just use thread:D After some research I found thread has some fatal defects 1. thread number is limited by os, that means the system don't want you start many threads at the same time 2. thread pool is another approach for concurrent program, but the context...
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.