TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Announcing Async-Std 1.0

37 点作者 Argorak超过 5 年前

2 条评论

gaunab超过 5 年前
Congratulations on releasing 1.0. This will be a huge milestone in making async programming very approachable to newer Rust devs and a solid base to build upon. There's a lot to like about async-std: It keeps things as similar as possible to std, and the general focus on a well-designed public API, relies on small and shared abstractions for library authors (through futures-rs), good documentation from the start, and a very encouraging community attitude. Keep it going :-)
评论 #21511193 未加载
ecnahc515超过 5 年前
First, congrats!<p>The first example of reading a file in sync vs async really makes me feel like you could have a macro of sorts that just lets you write the sync version and have it generate the async version (assuming you only use the stdlib IO based APIs). Usage of threads could even be converted to tasks, etc.<p>I&#x27;m sure it falls apart in various places, but it would really make async (in Rust) a lot more approachable. At which point you have something very similar to how Go does things, which I think is potentially very nice.
评论 #21510997 未加载