Rust 标准库的 sync 模块提供了一系列并发原语,包括对应原子操作的 atomic 系列,实现 channel 通信的 mpsc 和 mpmc 等,以及对应互斥锁的 Mutex、RwLock 和 Condvar 等。 不过,这些原语都是对应同步编程模型,基于线程阻塞来实现的。如果在 Future 和 async/await 上下文当中使用,可能会因为阻塞运行时调度而成为 Async Rust 的性能瓶颈。甚至 Rust 官方定义了一条 Lints 规则,提示开发者不...| 夜天之书
昨天的文章里,我介绍了 Async Rust 当前的实现以及一个实现 Async Runtime 需要了解的概念和现有的一些实践。 文章发出后,有评论称 Async Rust 创造性工作,没有可借鉴的经验。诚然,Rust 系统编程语言的定位就决定了它与其他有运行时的语言在设计时存在巨大的不同,同类语言 C 和 C++ 在异步编程方面,受限于语言的历史包袱,相关的支持往往以三方库而不是语言级的支持出现...| 夜天之书
绝大多数第一次接触 Async Rust 的开发者所写的 Hello World 程序是下面这样的: 1 2 3 4 5 6 7 8 9 10 11 12 13 asyncfnsay_world() { println!("world"); } #[tokio::main] asyncfnmain() { // Calling `say_world()` does not execute the body of `say_world()`. letop = say_world(); // This println! comes first println!("hello"); // Calling `.await` on `op` starts executing `say_world`. op.await; } 目前最流行的 Rust Async Runtime tokio 告诉你,只要在 main 函数前加...| 夜天之书
Musings about async await again and why I think virtual threads| Armin Ronacher's Thoughts and Writings
Queue Based Scaling is a long awaited feature that matches queued requests to the exact amount of replicas almost instantly.| OpenFaaS - Serverless Functions Made Simple
Reading Time: 2minutesSometimes I get stuck with a problem that I don’t really like: When I can’t execute my little bit of code until another bit of code executes, and there’s no events coming from that other code to tell me that it’s run. When I find myself in the situation where I need something off onRead More| Frank M Taylor
A follow-up to how I wish async would work.| Armin Ronacher's Thoughts and Writings
本文永久链接 - https://tonybai.com/2025/07/05/go-is-8020-language 大家好,我是Tony Bai。 如果你写了一段时间的 Go,你可能会有一种独特的感觉。一方面,它简洁、高效、可靠;另一方面,你又会时常觉得它“| tonybai.com
Below is a list of tips to make writing nodejs scripts fun, fast, and easy using the frontend tools you already know like JavaScript and Typescript.| Jonathan Creamer
Is synchronous XHR obsolete? Some reasons that synchronous XHR may here to stay.| WaspDev
Discover lesser-known Tokio features like current-thread runtimes for !Send futures, seeded runtimes for deterministic tests, and paused time for precise temporal control in your Rust applications.| Pierre Zemb's Blog
Build a web server with Rust and tokio - Part 0: the simplest possible GET handler Welcome to this series of blog posts where we will be exploring how to build a web server from scratch using the Rust programming language. We will be taking a hands-o...| Geoffrey Copin's blog
During the last couple of weeks I’ve gone on a completely different direction. I happened to hear a few people saying good things about OCaml, and I was kind of missing coding with strong types, so I decided to reimplement my basic key value store (see the post), and see if it was fun to write. First of all, here is the result. The functionality is the same, a hash map over a network, using an “official” async library, and a basic client and server that receive and send S-Expressions ov...| Logos, Thumos & Code
Sample demonstrating that directly executing runnables in your ExecutionContext (with no stack-safety) is a really bad idea.| Alexandru Nedelcu - Blog
Production-ready, Promise-enabled async queue.| Alexandru Nedelcu - Blog
Announcing the 2.0 Release of the OpenFeature SDK for .NET| OpenFeature Blog
The most popular option to decompress ZIP files from the Rust programming language is a crate simply named zip — At the time of this writing, it has 48 million downloads. It ’ s fully-featured, sup...| fasterthanli.me
In December 2023, a minor miracle happened: async fn in traits shipped. As of Rust 1.39, we already had free-standing async functions: pub async fn read_hosts() -> eyre::Result> { // et...| fasterthanli.me
Asynchronous code does not require the rest of your code to be asynchronous. I can’t say the same for blocking code.| notgull
During the last few weeks I’ve been working on a new tool that started as a way for me to become more familiar with Rust and its| evilsocket
I recently apperead on the “QnA With Friends” podcast, run by Irine.| notgull
Async await in Swift allows to write asynchronous tasks with structured concurrency. Maintain readability in complex code.| SwiftLee
smol just became a much easier choice to build web servers.| notgull
After looking at some rare poor performance in rclone, I have created a package for read-ahead functionality, which I have implemented a few times in different contexts. This gave me the opportunity to create a solid implementation with solid tests to make sure it works with good performance. For the impatient here is the package:...| defer time.Sleep()
School year 2014-2015 is ending. It’s time for a brief report. Session Restore As I announced last year, I am mostly inactive on Session Restore these days. However, I am quite happy to have landed « Bug 883609 – Make Backups Useful ». This has considerably improved the resilience of Session Restore against a variety […]| Il y a du thé renversé au bord de la table
Let's imagine that we want to manage cancellation of an async operation using generator functions in javascript. When a secondary event occurs, we can listen for it and force the generator function to return by calling its...| alinacierdem.com
Animation is a pain if you do not know how it is implemented. Basically, you are updating a value with respect to time. This is generally done by calculating the time elapsed since the last frame and interpolating this value between...| Ali Naci Erdem Personal Blog RSS
If you ever built an Android app, you have definitely used some of the built-in layouts available in the platform—RelativeLayout, LinearLayout, FrameLayout, etc. They are our bread and butter for building Android UIs.| Lucas Rocha
In this blog post, I delve into the comparison of memory consumption between asynchronous and multi-threaded programming across popular languages like Rust, ...| pkolaczk.github.io
Technical blog of Microsoft certified developer James Hickey. Helping you reach the next step of your career as a software developer!| blog.jamesmichaelhickey.com
In the previous post I showed how to use asynchronous Rust to measure throughput and response times of a Cassandra cluster. That approach works pretty well o...| pkolaczk.github.io
Performance of a database system depends on many factors: hardware, configuration, database schema, amount of data, workload type, network latency, and many ...| pkolaczk.github.io