473,796 Members | 2,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Micro-threading PEP proposal announcement

I wanted to make everybody aware that I've posted a (rather long and
involved) PEP proposal for adding micro-threading to Python on
python-ideas for feedback and review.

In a nutshell, this proposal implements the Twisted Deferred/Reactor at
the C level so that the Python programmer gets the advantages that Twisted
offers without having to write their code in an event driven style. Thus,
legacy Python code not written in the Twisted style (Django, TurboGears,
WSGI apps) will gain the benefits of Twisted with almost no additional
work.

This PEP provides similar benefits to GUI toolkits where, again, Python
programmers have been faced with event driven programming. So using this
PEP, GUI toolkits could hide this event driven programming from the Python
programmer, making GUI programming much easier. For example, you would no
longer have to use a modal dialog just to make the programming easier.

The C-level Deferreds and Reactor are not made visible to the Python
programmer (as they are in Twisted).

Rather, what is visible is a very simple micro-thread that allows for
"start_and_forg et" threads, "parallel" threads (where you're only
interested in the final return value) and fully cooperative threads
communicating over micro-pipes (which, BTW, gives us a new way to write
generators that allows one generator to simply call another one to have
the second generator's output included with its own output without having
to capture and pass back values).

As there is a great deal of traffic on comp.lang.pytho n, I don't expect to
be able to keep up with the posts here and would prefer to discuss this
on python-ideas...

If there is any interest in this, please let me know! If I don't see any
interest, I'll assume that it's not solving a real problem and will let it
quietly die on the vine...

Thank you for your attention!

-bruce
Aug 25 '08 #1
1 1771


Pau Freixes wrote:
When can I read this PEP ? I'm interesting
> I wanted to make everybody aware that I've posted a (rather long and
involved) PEP proposal for adding micro-threading to Python on
python-ideas for feedback and review.
Python-ideas is another mailing list at python.org. You can also read
and post via the list-newsgroups gateway news.gmane.org as
gmane.comp.pyth on.ideas.

Aug 27 '08 #2

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

Similar topics

0
1843
by: Eric | last post by:
Help! Install Sun One Studio 4, Micro Edition on Windows ME PLease help: When I install Sun One Studio 4, Micro Edition on Windows ME, it's shown that searching for suitable SDK, and a DOS window open and close, and the setup problem stop here. How to solve? ---------------------------------------------------------------------------- --------------------------------------------------
12
2618
by: François | last post by:
Hi, After looking up Microsoft's site for licensing info...and found nothing, I turn to this newsgroup. Does someone know what version of VB .Net you are entitled to use when you are a micro business? I think I can't buy a VB .Net standard edition but I'm not sure about it. Also if I need to buy VB .Net Enterprise, how many licenses come with this, one only?
383
12273
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a poor man's DBMS, a broken email server and various other /application/ servers to try and crack the Internet and IS markets. In the case where they didn't spend their own money to get companies to
13
6220
by: webzila | last post by:
Hello, I have to write a program for an 8051 micro-controller using micro-C to monitor Switch 1 and if the switch in pushed the message "switch 1 pushed" should be displayed in the LCD. Also the microcontroller should display in the LCD the value of the voltage applied to the input of the ADC. The above procedure should only execute once the user has entered "1234" using a keypad that is attached to the 8051 microprocessor.
2
9317
by: Paul in Toronto | last post by:
First off, this is for a school assignment... I know some people get squeamish about this sort of post, but I'm kind of up a creek. Basically, as part of a semester-long project, we need to add another bean to a program we've been working on, and integrate it with the rest of the program. That part's not the issue. Part of the specification for the bean states tnat the user must be able to select (and optionally enter) values ranging...
2
1439
by: studyandjobs | last post by:
How Micro-pump will change the future of computer/ mobile chips. Engineers at Purdue University have developed a tiny "micro-pump" cooling device small enough to fit on a computer chip that circulates coolant through channels etched into the chip. ............. For detail.... http://www.studyandjobs.com/Micro_pump.html or http://www.studyandjobs.com/IT_study.htm
2
2454
by: m.a | last post by:
Hello, Is there any fixed point library in .net framework? I need it to use on fixed point processor that doesn't have any floating point co processor Regards
30
521
by: Ashit Vora | last post by:
Hi, I want to find the current time stamp in micro sec precision. The requirement is, my function is executed in an infinite loop. I measure a value and check if the value computed is what i expected 9forget all this stuff). I want to print the time stamp every time that event occurs. So my requirement is printing the current timestamps.
0
9535
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10200
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6800
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5453
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4127
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
3
2931
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.