TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Future of Asynchronous IO in Python

85 pointsby leonardiniusover 10 years ago

7 comments

Animatsover 10 years ago
It&#x27;s frustrating. Many people want an interprocess subroutine call, and few OSs have the right primitives for it. (QNX does, and Windows sort of does, but the Linux&#x2F;Unix world does not.) There&#x27;s an endless collection of kludges so program A can call program B implemented on top of pipe&#x2F;socket like mechanisms.<p>OpenRPC and CORBA are out of fashion. Google protocol buffers help, but don&#x27;t come with a standard RPC mechanism. HTTP with JSON is easy to do but has high overhead. Then there&#x27;s the handling of failure, the curse of callback-oriented systems. (&quot;He said he&#x27;d call back. Why didn&#x27;t he call back? Doesn&#x27;t he like me any more? Should I dump him?&quot;)<p>The lack of a good, standardized interprocess call mechanism results in interprocess call logic appearing at the application level. At that level, it&#x27;s intertwined with business logic and often botched.
评论 #8667308 未加载
评论 #8671031 未加载
评论 #8666797 未加载
评论 #8666363 未加载
评论 #8666126 未加载
评论 #8666888 未加载
评论 #8666728 未加载
评论 #8668289 未加载
Reefover 10 years ago
Article suggests that a high performance framework is implemented where notification of a unavailability will be propagated &quot;before real user tried to execute a request&quot; (which would have 50% probability of happening if number of heartbeats per second would be equal to number of requests per second the service serves, ha ha). Also from the Article we can learn that sending a 304 with content does not work as expected (!?)<p>Not only that, but there should be only one connection to database, through all traffic will go. Pulling that up through a network switch connected to a server with multiple cables, or pushing all that through a single TCP connection, with a foot note that advises against rewriting it after a few years?<p>Also, everything explained there should run in a single thread, because surely it will be fast enough.<p>Good luck with that.<p>[if you find other funny stuff that I missed, leave them in the comment section below]
评论 #8666690 未加载
xorcistover 10 years ago
&gt; (The GIL) is there for other scripting languages too (Ruby, Perl, Node.js, to name a few)<p>I don&#x27;t know about Node, but I know it&#x27;s perfectly possible to write &quot;proper&quot; multi threaded programs in Perl (and has always been since the version string started reporting support for threads, which should be a good 15 years ago).<p>It&#x27;s not terribly relevant to the article (because you normally don&#x27;t write multi threaded programs in Python), but then why bring it up?
评论 #8667246 未加载
mamcxover 10 years ago
Ok, and if we can start clean?<p>(I&#x27;m in the process of build a toy language).<p>Is this more a problem for a language with baggage, or is general? I wonder if for example in Go, Erlang is less of a issue...
评论 #8665646 未加载
评论 #8666703 未加载
rumcajzover 10 years ago
This article raises many relevant points.<p>But the real issue behind all of that is that we lack means to easily implement protocol stacks. Implementing a new protocol (especially in the user space) is a task that can easily eat months or years of your precious time.
评论 #8663361 未加载
theVirginianover 10 years ago
I&#x27;m sorry to be negative but the grammar mistakes in this article were glaring.
评论 #8666710 未加载
评论 #8667011 未加载
评论 #8666479 未加载
notastartupover 10 years ago
Do we really need to reinvent the wheels? Microservice, the async craze feels like, we now need to create a single wheel that is made up of many wheels, and spend an enormous time making it look and feel like a single wheel that was working fine, never mind that it serves absolutely no difference to the end user, it will make our next few years interesting because the old way of creating the wheel is boring and unexciting.<p>I think that after a few years, software businesses will realize that it was an investment with questionable advantages and go right back to what was working fine for the past decade and will continue to work fine.
评论 #8666722 未加载
评论 #8665134 未加载