(also I still need to setup my blog, so going to be gisting things until then haha)
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
What if HTTP servers were expressed as loops, and HTTP/2 servers as loops of loops: fn main () { for await session in Server::listen("8080") { session.push("hello".try_into())?; for await req in session.incoming() { "hii".try_into()?; } } }
Show this thread -
I keep finding myself going back to this idea constantly. I suspect it could be made to perform well, and can't think of many ways this could be simplified further. Big question would be how to structure this further with middleware, routing, etc. But can probably be p. light.
Show this thread - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.