home.social

#nonblocking — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #nonblocking, aggregated by home.social.

  1. Argh, I'm refactoring some old Rust code to test it better, and github.com/rust-lang/rust/issu is not letting me use generics to invert dependencies in order to inject some test code into an async function.

    I thought I was being such a clever clogs. As I swore in the comment on the offending function, Buttmuppets!

    This bug with lifetimes and generic associated types is really unpleasant to discover on a Sunday. Butt. Muppets.

    #rust #gat #dry #DependencyInjection #test #async #nonblocking

  2. I rewrote my #foss implementation of a #python #multipart form data parser as a #sansio (push based #nonblocking ) parser, and it is now not only suitable for #async applications, but also 2x to10x faster than the old (blocking) implementation. Was a ton of work, but totally worth it. Release will follow later this week.

    github.com/defnull/multipart/p