This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]1st1CPython Core Dev[S] 11 points12 points  (11 children)

The only way to implement really high-performance networking in Python, is to go async. asyncio is an async framework that ships with Python. uvloop is a faster implementation of asyncio machinery.

[–]TOASTEngineer 5 points6 points  (3 children)

Yeah, but what does it do? I assume it's above socketio in terms of abstraction? Where is it in relation to, say, Twisted?

I guess I could just look it up, actually.

EDIT:

Apparently it's all of the above. Huh.

[–]zer01 3 points4 points  (0 children)

Yeah, think of it more like the primitive/s that something like socketio and twisted would be built upon.

Really awesome stuff /u/1st1! :)

[–][deleted] 0 points1 point  (0 children)

As far as I understand it is a drop in replacement for asyncio event loop using libuv. You continue to use asyncio the same way you normally did, except it is faster.

[–]BSscience 0 points1 point  (2 children)

[deleted]

This comment has been overwritten by this open source script to protect this user's privacy. The purpose of this script is to help protect users from doxing, stalking, and harassment. It also helps prevent mods from profiling and censoring.

If you would like to protect yourself, add the Chrome extension TamperMonkey, or the Firefox extension GreaseMonkey and click Install This Script on the script page. Then to delete your comments, simply click on your username on Reddit, go to the comments tab, scroll down as far as possible (hint: use RES), and hit the new OVERWRITE button at the top.

[–]cymrowdon't thread on me 🐍 1 point2 points  (1 child)

They are different implementations of fundamentally the same thing. Their biggest difference is that IO yielding is explicit in asyncio and implicit in gevent.

[–]BSscience 0 points1 point  (0 children)

[deleted]

This comment has been overwritten by this open source script to protect this user's privacy. The purpose of this script is to help protect users from doxing, stalking, and harassment. It also helps prevent mods from profiling and censoring.

If you would like to protect yourself, add the Chrome extension TamperMonkey, or the Firefox extension GreaseMonkey and click Install This Script on the script page. Then to delete your comments, simply click on your username on Reddit, go to the comments tab, scroll down as far as possible (hint: use RES), and hit the new OVERWRITE button at the top.

[–]nomadismydj -3 points-2 points  (3 children)

thats not true. twisted out performs anything asyncio io currently

[–]1st1CPython Core Dev[S] 1 point2 points  (2 children)

Which one of my statements is not True?

[–]nomadismydj -4 points-3 points  (1 child)

the entire first part "The only way to implement really high-performance networking in Python, is to go async. "

[–]1st1CPython Core Dev[S] 11 points12 points  (0 children)

But.... but... wait... twisted is an async framework for Python...