Project ideas from Hacker News discussions.

Async Rust never left the MVP state

📝 Discussion Summary (Click to expand)

Key take‑aways

  • Overly sensational title

    "Overly dramatic title for the content, though." – Animats

  • Significant async overhead, especially in constrained environments

    "He's optimizing for embedded no‑std situation. These things do matter in constrained environments." – algesten

  • Function‑coloring and ecosystem lock‑in (Tokio dominance)

    "It seems crazy to me how much the whole ecosystem depends on tokio." – ignoreusernames


🚀 Project Ideas

Async Trivial Overhead Eliminator (ATEE)

Summary

  • Reduces the size and runtime overhead of async state machines by eliminating unused variants (e.g., Panicked, Returned, Unresumed) when a function can never reach those states.
  • Collapses duplicated enum definitions from nested async calls, yielding smaller generated futures, better LLVM optimization, and measurable binary‑size gains on embedded targets.
  • Targets “trivial” async functions that currently carry the full state‑machine enum cost even when only a subset of states is reachable.

Details

Key Value
Target Audience Rust developers, especially those building embedded or resource‑constrained applications
Core Feature Compiler / proc‑macro pass that simplifies async state enums and folds trivial futures
Tech Stack Rust compiler internals, procedural macros, optional cranelift integration
Difficulty Medium/High
Monetization Hobby

Notes

  • HN commenters repeatedly stress that the compiler should invest more in optimizing async, especially for small futures that don’t need all error/execution variants.
  • This approach can be adopted incrementally as a community‑maintained crate or proposed for upstream compiler optimism, directly addressing the pain point raised by multiple commenters.

Executor‑Agnostic Async Runtime API (EAAR)

Summary

  • Provides a minimal, stable std‑level async executor trait that library authors can depend on instead of a concrete runtime like tokio.
  • Includes a default lightweight executor suitable for embedded environments and a plug‑in hook for swapping in alternatives (async‑std, smol, glommio, etc.).
  • Eliminates the de‑facto tokio dependency bottleneck, enabling true runtime‑agnostic async code.

Details

Key Value
Target Audience Library maintainers, framework developers, embedded Rust users who want runtime flexibility
Core Feature std::async::Executor trait with methods spawn, block_on, now_or_never; default DefaultExecutor implementation; runtime‑selection ergonomics
Tech Stack Rust, const generics, procedural macros, feature‑flags for optional runtime backends
Difficulty Medium
Monetization Revenue-ready: Sponsorship

Notes

  • Numerous HN participants lament the central dependency on tokio and the lack of a standard executor abstraction—this project offers a concrete, standards‑compatible solution.
  • By exposing a clear, stable API, it opens the door to multiple executor implementations competing on performance for niche use‑cases, which aligns with community desires for healthier ecosystem diversity.

Effect‑Agnostic Function Kit (EAFK)

Summary

  • Introduces a generic “effect” parameter that makes functions agnostic to whether they are sync or async, eliminating function‑coloring duplication.
  • Allows a single definition of utilities (e.g., map, filter) to operate over both synchronous and asynchronous containers without separate trait bounds.
  • Leverages nightly generic associated types and const‑generics, with a view toward future keyword‑generics support.

Details

Key Value
Target Audience Library authors who need to expose both sync and async APIs, reducing code duplication
Core Feature Generic over an Effect trait where Self: Effect<Future = ...>; provides combinators that automatically adapt to the concrete effect; integrates with existing async traits
Tech Stack Rust nightly, generic associated types, const generics, optional keyword‑generics experimental feature
Difficulty High
Monetization Hobby

Notes

  • Commenters repeatedly discuss the “function coloring” problem and the desire for a composable effect system; this kit directly tackles that by unifying sync/async code paths.
  • It speaks to the wish for better composability in async patterns highlighted throughout the discussion, offering a path to avoid duplicated async/sync function overloads.

Embedded Async Overhead Analyzer (EAOA)

Summary

  • A cargo sub‑command that statically analyzes async codebases, quantifies the memory and runtime overhead of async state enums, and suggests concrete refactorings to collapse redundant variants.
  • Generates CI‑friendly reports and can auto‑apply patches that simplify futures, directly reducing binary size on microcontrollers.
  • Bridges the gap between high‑level async usage and low‑level embedded constraints highlighted by several commenters.

Details

Key Value
Target Audience Embedded Rust developers using async on constrained MCUs, maintainers of async‑heavy libraries
Core Feature Scans generated futures, measures enum discriminant size, reports redundancy, suggests #[simplify_async] transformations, integrates with CI pipelines
Tech Stack Rust, syn/pest parsers, ripgrep for code extraction, optional apply‑patch generator
Difficulty Low/Medium
Monetization Hobby

Notes

  • The discussion contains explicit requests for tooling that can measure and mitigate async overhead on embedded targets; this plugin provides exactly that.
  • By making the hidden costs visible and automatable, it aligns with community demand for practical, actionable tooling rather than theoretical debates.

Read Later