Async Rust: What is a runtime? Here is how tokio works under the hood

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
  1. reqwest

    An easy and powerful Rust HTTP Client

    > The big HTTP libraries let you opt out (of async)

    At least for reqwest it just wraps the async code in something like `block_on`: https://github.com/seanmonstar/reqwest/blob/5397d2cf8eaecc9f...

    And as the sibling comment says, you can do that in your own code. It does still add Tokio to your binary size, and probably start a bunch of worker threads you don't need, but it does work.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. wg-async

    Working group dedicated to improving the foundations of Async I/O in Rust

    This is a consequence of runtimes relying on global variables that their core future types are dependent on. Creating abstractions to solve this problem is one of the main goals of the the async working group [0].

    [0]: https://github.com/rust-lang/wg-async

  4. smol

    A small and fast async runtime for Rust

  5. preemptible-thread

    Discontinued How to preempt threads in user space

    There's waiters and polling that only executed your function to progress and there's pending and done. Any help to understand the relationship between the three things would be appreciated.

    I wrote a M:N thread scheduler in C, Java and Rust. The C version also can schedule file reading to an IO thread but I'm nowhere near finished.

    https://github.com/samsquire/preemptible-thread

    Another of my ideas is to rewrite synchronous code into parallel LMAX disruptors. In other words a tree of RingBuffer each line of synchronius code its own event loop. Rather than one event loop multiplexing events from different systems you pipeline every blocking call. I think it would be very fast.

    Here's a write-up.

    https://github.com/samsquire/ideas4#51-rewrite-synchronous-c...

  6. ideas4

    Discontinued An Additional 100 Ideas for Computing https://samsquire.github.io/ideas4/

    There's waiters and polling that only executed your function to progress and there's pending and done. Any help to understand the relationship between the three things would be appreciated.

    I wrote a M:N thread scheduler in C, Java and Rust. The C version also can schedule file reading to an IO thread but I'm nowhere near finished.

    https://github.com/samsquire/preemptible-thread

    Another of my ideas is to rewrite synchronous code into parallel LMAX disruptors. In other words a tree of RingBuffer each line of synchronius code its own event loop. Rather than one event loop multiplexing events from different systems you pipeline every blocking call. I think it would be very fast.

    Here's a write-up.

    https://github.com/samsquire/ideas4#51-rewrite-synchronous-c...

  7. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Open source code with swearing in the comments is statistically better than that without

    4 projects | /r/programming | 12 Feb 2023
  • hyper v1.0.0 Release Candidate 1

    3 projects | /r/rust | 26 Oct 2022
  • Rust open TCP Connection

    3 projects | /r/rust | 10 Mar 2022
  • Announcing Actix Web v4.0

    4 projects | /r/rust | 25 Feb 2022
  • Announcing Linkerd's CNCF Graduation

    4 projects | /r/kubernetes | 29 Jul 2021