沉睡的木木夕

Results 18 issues of 沉睡的木木夕

标记清除/压缩、复制回收、分代垃圾回收

近端时间看了很多关于架构方面的碎片化知识,关于《架构整洁之道》第一遍读的比较泛,打算这次精读一下。

The library currently supports the json_mode return format, but two days ago, OpenAI released a new feature supporting [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs/structured-outputs). The current ChatCompletionCreateRequest is not compatible with this format, and...

[《The Log: What every software engineer should know about real-time data’s unifying abstraction》](https://engineering.linkedin.com/distributed-systems/log-what-every-software-engineer-should-know-about-real-time-datas-unifying) https://redolog.github.io/posts/rd/log/translation/what-every-software-engineer-should-know-about-real-time-datas-unifying/

# .NET 9 Lock 类在异步方法中的错误用法及解决方案 ## 问题描述 在使用 .NET 9 新引入的 `Lock` 类时,在异步方法中出现了状态不一致的问题。第一次执行正常,但多次调用后 Lock 的状态变得异常,导致后续调用无法正常工作。 ## 错误的代码示例 ```csharp public class BackgroundService { private static readonly Lock lockObject = new(); private...

# FFprobe 流式解析原理分析与优化方案 ## 背景 当前需要高性能批量获取 MP4 视频的时长信息,了解 FFprobe 的流式解析原理有助于我们: 1. 理解为什么 FFprobe 比下载整个文件快 2. 优化我们的 C# 实现 3. 处理网络异常和超时情况 ## FFprobe 流式解析原理 ### 1. MP4 文件结构 ``` [ftyp] [mdat]...