!OqDVTrmPstKzivLwZW:gitter.im

python-trio/general

720 Members
Discussion of Trio, a friendly Python library for async concurrency and I/O15 Servers

Load older messages


SenderMessageTime
2 Jun 2023
@oremanj-5abea8c4d73408ce4f93d0be:gitter.imoremanj (Joshua Oreman)There are comparatively few Trio libraries that don’t also support asyncio somehow23:57:36
@goodboy:matrix.org(nix)_lord_fomohuh, maybe i'm thinking of it backward then23:59:10
@goodboy:matrix.org(nix)_lord_fomooh wait no i guess yah that makes sense23:59:17
@goodboy:matrix.org(nix)_lord_fomobut then you can't like, use uvloop or wtv23:59:23
@goodboy:matrix.org(nix)_lord_fomo(which supposedly has speedups)23:59:30
@goodboy:matrix.org(nix)_lord_fomobut i guess if you're using asyncio to run a trio app (in par) speedups don't really happen anyway?23:59:46
@goodboy:matrix.org(nix)_lord_fomomore then trio can provide?23:59:51
3 Jun 2023
@goodboy:matrix.org(nix)_lord_fomo * but i guess if you're using asyncio to run a trio app (in part) speedups don't really happen anyway?00:00:15
@oremanj-5abea8c4d73408ce4f93d0be:gitter.imoremanj (Joshua Oreman)Yeah this doesn’t support uvloop and it would be pretty difficult to make it so. You’d need inside-out guest mode for that00:00:23
@goodboy:matrix.org(nix)_lord_fomoyah gotcha00:00:31
@goodboy:matrix.org(nix)_lord_fomowell, as a plus i feel like this will greatly encourage a better inter-loop-task interace00:00:46
@goodboy:matrix.org(nix)_lord_fomothat's what i was bringing up before00:00:51
@goodboy:matrix.org(nix)_lord_fomowe have like this, inter-task-channel thingy in tractor00:01:06
@goodboy:matrix.org(nix)_lord_fomobut it's really only refined from the trio side00:01:14
@goodboy:matrix.org(nix)_lord_fomoi dunno if you looked00:01:18
@oremanj-5abea8c4d73408ce4f93d0be:gitter.imoremanj (Joshua Oreman)But guest mode should perform a lot better as a basis for trio-asyncio than trio-asyncio’s current strategy of reimplementing the asyncio event loop interface in trio00:01:23
@goodboy:matrix.org(nix)_lord_fomowould love something better/more refined00:01:24
@goodboy:matrix.org(nix)_lord_fomo
In reply to @oremanj-5abea8c4d73408ce4f93d0be:gitter.im
But guest mode should perform a lot better as a basis for trio-asyncio than trio-asyncio’s current strategy of reimplementing the asyncio event loop interface in trio
ahh gotcha
00:01:37
@goodboy:matrix.org(nix)_lord_fomoyeah makes sense; that's your main motivation i presume00:01:47
@oremanj-5abea8c4d73408ce4f93d0be:gitter.imoremanj (Joshua Oreman)Mostly I think this will work out better in a bunch of little ways - sniffio correctness, async generator finalization, interface and implementation uniformity regardless of which loop is ‘outer’00:06:27
@oremanj-5abea8c4d73408ce4f93d0be:gitter.imoremanj (Joshua Oreman)Also it would be nice to get rid of the increasingly perilous monkeypatching of asyncio that trip-asyncio does00:09:56
@oremanj-5abea8c4d73408ce4f93d0be:gitter.imoremanj (Joshua Oreman)* Also it would be nice to get rid of the increasingly perilous monkeypatching of asyncio that trio-asyncio does00:13:29
@goodboy:matrix.org(nix)_lord_fomogotcha00:26:47
@richardsheridan:matrix.orgrichardsheridanRedacted or Malformed Event16:28:30
@richardsheridan:matrix.orgrichardsheridanRedacted or Malformed Event16:29:28
@graingert:matrix.orggraingertI think this is missing for weakref.finalize callbacks https://github.com/python-trio/trio/issues/67616:43:43
@graingert:matrix.orggraingert oremanj (Joshua Oreman): can you get aioguest upstreamed before nest-asyncio? 20:01:07
@oremanj-5abea8c4d73408ce4f93d0be:gitter.imoremanj (Joshua Oreman)I hadn’t considered trying honestly!20:17:19
@njsmith-54f8c17c15522ed4b3dcdd75:gitter.imnjsmith (Nathaniel J. Smith)I don't think anything that requires greenlet is going to make it into the stdlib...22:23:57
@oremanj-5abea8c4d73408ce4f93d0be:gitter.imoremanj (Joshua Oreman)With upstream support they could do the generator thing Trio does instead, but it still feels like a stretch22:53:29

There are no newer messages yet.


Back to Room ListRoom Version: 6