<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>序列化 on Text Matrix</title><link>https://txtmix.com/tags/%E5%BA%8F%E5%88%97%E5%8C%96/</link><description>Recent content in 序列化 on Text Matrix</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Tue, 21 Jul 2026 20:06:14 +0800</lastBuildDate><atom:link href="https://txtmix.com/tags/%E5%BA%8F%E5%88%97%E5%8C%96/index.xml" rel="self" type="application/rss+xml"/><item><title>protocolbuffers/protobuf 拆解：Protocol Buffers 的协议层、编译器与多语言运行时地图</title><link>https://txtmix.com/posts/tech/protocolbuffers-protobuf-google-data-interchange-format-guide/</link><pubDate>Mon, 13 Jul 2026 03:05:00 +0800</pubDate><guid>https://txtmix.com/posts/tech/protocolbuffers-protobuf-google-data-interchange-format-guide/</guid><description>&lt;h1 id="protocolbuffersprotobuf-拆解google-数据交换格式的协议层编译器与多语言运行时地图">protocolbuffers/protobuf 拆解：Google 数据交换格式的协议层、编译器与多语言运行时地图&lt;/h1>
&lt;h2 id="核心判断">核心判断&lt;/h2>
&lt;p>Protocol Buffers（以下简称 protobuf）不是一个 JSON 替代品，也不是某种&amp;quot;通用对象序列化框架&amp;quot;——它是 Google 用二十年内部迭代沉淀下来的&lt;strong>结构化数据 IDL + 二进制 wire format + 跨语言代码生成&lt;/strong>这套三件套。从这个角度看仓库里的一切才能看清边界：&lt;code>protoc&lt;/code> 编译器是单一入口、&lt;code>.proto&lt;/code> 文件是契约、&lt;code>*.pb.cc&lt;/code> / &lt;code>*.pb.go&lt;/code> / &lt;code>*.pb.py&lt;/code> 等是契约在目标语言上的具象化产物，而 wire format 是这套契约真正落到字节流时的物理形式。理解了&amp;quot;三段式&amp;quot;（IDL → wire format → 语言运行时），后续所有特性——字段编号、向后兼容、JSON mapping、well-known types、proto2/proto3 差异——都是这套骨架上的可推导项。&lt;/p></description></item><item><title>yaml-cpp 完整指南：C++ 生态最稳的 YAML 解析器</title><link>https://txtmix.com/posts/tech/jbeder-yaml-cpp-cpp-yaml-parser-complete-guide/</link><pubDate>Sat, 11 Jul 2026 02:50:00 +0800</pubDate><guid>https://txtmix.com/posts/tech/jbeder-yaml-cpp-cpp-yaml-parser-complete-guide/</guid><description>&lt;h1 id="yaml-cpp-完整指南c-生态最稳的-yaml-解析器">yaml-cpp 完整指南：C++ 生态最稳的 YAML 解析器&lt;/h1>
&lt;h2 id="核心判断">核心判断&lt;/h2>
&lt;p>yaml-cpp 是一个&lt;strong>纯 C++、无外部依赖、零 Boost 依赖&lt;/strong>的 YAML 解析与发射（emitter）库。它的优势不在性能，而在&amp;quot;可预测性&amp;quot;：API 稳定十年、ABI 兼容做得到位、C++ 标准从 C++03 一直兼容到 C++17。如果你需要把 YAML 当成&amp;quot;配置 + 数据交换&amp;quot;的稳定锚点，它几乎是最稳的选择。&lt;/p></description></item></channel></rss>