-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for async for
, async with
#12
Comments
When implementing async, please examine trio (https://trio.readthedocs.io/en/stable/reference-core.html) asyncio is clumsy and ugly in many ways. It evolved as Python async paradigm evolved, and is full of legacy gotchas. trio is clean as a whistle, and has an active gitter community (with the creator active). There's no active community for asyncio. |
This ticket is about implementing required syntax support in the compiler. Did you mean to post your shill on #6? |
Probably. My intent was to make sure kuroko core-devs are aware of the merits of Trio. |
Sorry, that was harsh of me, I've grown a bit paranoid about issue comments and seeing someone whose profile lists them as a C-level posting about an external product trips some alarms for me. This would be better discussed on #6 as previously stated, but to provide a more reasonable response: I'm in a tough position here. Even if I should also note that Kuroko is still mostly a personal project; while I'm happy to accept external contributions, I haven't quite garnered a team yet, core or otherwise, and that's likely to be the biggest blocker in closing the gap on Python 3.x compatibility. |
huh, so GitHub examines my repos and estimates my language skillset. Yes, I see it is an awkward situation to be in... I once wrote a Python / C++ interop (https://github.com/p-i-/picxx) and got so carried away with making it "fully featured" that I completely forgot my original task 😂 . There's a problem: Trio https://github.com/python-trio/trio-asyncio is required to "shim" one to t'other. So an async function containing asyncio
As I remember, you can also:
This might look like an unwanted extra layer of headfuck, but my thinking in the original post was that the internal architecture of Trio might serve as a better foundation / core-mechanic for implementing async, and that an asyncio compat layer could simply shim on top of this. The key intel I wanted to provide was that the primary Trio architect (Nathaniel J Smith) looked at the whole Python asyncio machinery, and built Trio from the ground up with 20/20 hindsight. It may be possible to "lift" I haven't explored the internals of either Trio or asyncio, but my experience from using both was that Trio required only a small fraction of the cognitive effort of asyncio to achieve any particular task. I'll sign off at this point, as I don't think I have anything valuable to contribute beyond this observation. |
What? No, you say in your bio you're a CEO.
And none of this has much to do with CPython bytecode for a simple async def foo():
await bar()
Kuroko's bytecode of the same:
|
No description provided.
The text was updated successfully, but these errors were encountered: