摘要: 原文:https://kciter.so/posts/the-expensive-main-thread/en/ What comes to mind when you hear “frontend optimization”? For most of us it’s things like red 阅读全文
posted @ 2026-09-04 16:23 talentzemin 阅读(9) 评论(0) 推荐(0)
摘要: 一、一个看似奇怪的语感 "A boy is there." 这句话,语法上完全合法,母语者也能听懂,但几乎没人会这么说。大多数情况下,自然的说法是: There is a boy there. 两句话字面意思相近,为什么后者才是"正常"说法?答案不在语法本身,而在语用/语篇层面——具体来说,是英语主 阅读全文
posted @ 2026-08-21 13:34 talentzemin 阅读(10) 评论(0) 推荐(0)
摘要: 一、数学里的函数:自变量决定了"求值"需要几个输入 在数学里,一个函数被定义出来的第一件事,就是规定它需要几个自变量: f(x) = x² // 一元函数,需要 1 个输入 g(x, y) = x + y // 二元函数,需要 2 个输入 h(x, y, z) = x·y + z // 三元函数,需 阅读全文
posted @ 2026-08-17 13:11 talentzemin 阅读(16) 评论(0) 推荐(0)
摘要: 一、它是什么 System.Threading.Channels 提供的 Channel<T>,是一个异步安全的生产者-消费者管道。数据从 Writer 端写入,从 Reader 端读出,中间是一根"管道",这也是名字的由来。 var channel = Channel.CreateUnbounde 阅读全文
posted @ 2026-08-09 14:35 talentzemin 阅读(10) 评论(0) 推荐(0)
摘要: 写在前面 在 B/S 系统里,导出报表、批量处理、AI 分析、数据同步……这类"跑几秒到几分钟"的操作,如果还按照传统的"发请求 - 等响应"来做,几乎必然会遇到网关超时、页面卡死、用户重复点击等一堆问题。 这类操作我们统称为长任务(Long-Running Task)。 本文梳理一套通用的设计模式 阅读全文
posted @ 2026-08-09 10:25 talentzemin 阅读(10) 评论(0) 推荐(0)
摘要: 原文:https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/tree/master Asynchronous programming has been around for several years on the .NET platf 阅读全文
posted @ 2026-08-07 14:44 talentzemin 阅读(9) 评论(0) 推荐(0)
摘要: 原文:https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/tree/master ASP.NET Core is a cross-platform, high-performance, open-source framework fo 阅读全文
posted @ 2026-08-07 14:43 talentzemin 阅读(7) 评论(0) 推荐(0)
摘要: 引子 最近在研究开源 AI coding agent Pi 的架构,看到它处理"用户中途插话"这个功能(官方叫 steering)的实现方式时,忽然意识到一件事:这套机制我们早就在别的地方见过无数次了——进度条的取消按钮、.NET 的 CancellationToken,本质上都是同一个东西。 这篇 阅读全文
posted @ 2026-08-05 17:32 talentzemin 阅读(15) 评论(0) 推荐(0)
摘要: sourceUrl: https://queue.acm.org/detail.cfm?id=3807963 Examining the most common misconceptions 审视最常见的误解 Jenna Butler, Brian Houck, Margaret-Anne Stor 阅读全文
posted @ 2026-08-05 13:09 talentzemin 阅读(28) 评论(0) 推荐(0)
摘要: 引言 Kubernetes(以下简称 K8s)本质上是一个"声明式的分布式操作系统":用户描述"我想要什么样的最终状态",K8s 内部一整套组件协同工作,持续把集群从"当前状态"驱动到"期望状态"。理解 K8s,最重要的不是记住某个资源怎么写 YAML,而是理解这套系统的设计哲学——一切皆状态,一切 阅读全文
posted @ 2026-07-31 13:23 talentzemin 阅读(27) 评论(0) 推荐(0)