3 ms·
Python's async support also seems to be getting better. There's a flask clone called Quart (http://pgjones.gitlab.io/quart/ http://pgjones.gitlab.io/quart/) and
by benatkin 8y ago
Python's async support also seems to be getting better. There's a flask clone called Quart (http://pgjones.gitlab.io/quart/ http://pgjones.gitlab.io/quart/) and an async postgres client (https://github.com/MagicStack/asyncpg https://github.com/MagicStack/asyncpg). It works very similar to JavaScript, with async and await keywords. I think it should provide speed and comfort especially if you're a regular JavaScript user.
- Waterluvian 8y agoI wrote a pretty substantial experiment using asyncio for 100k websocket client connections across a massive theoretical fleet of robots. It's not open source but the general result was that I used to hate async in Python and now I love it. The syntax makes blending sync and async easy. And the cooperative multitasking paradigm is very easy to reason about. No locks!
- deleted 8y ago[deleted]
- simple_phrases 8y agoIf you did a write-up or went into more detail about your experience, I'd read it. Big fan of Python and am heavily invested in its ecosystem, but I currently prefer async programming in modern JavaScript compared to Python. Did you make use of third-party async libraries?
- Waterluvian 8y agoI'm going to ask my boss to open source it and then do a write up.
- j88439h84 8y agoPython is even better since it has http://trio.rtfd.org http://trio.rtfd.org which provides structured concurrency.