Files
maths-cs-ai-compendium-zh/images/container_vs_vm.svg
T
flykhan 2536c937e3 feat: 完整中文翻译 maths-cs-ai-compendium(数学·计算机科学·AI 知识大全)
翻译自英文原版 maths-cs-ai-compendium,共 20 章全部完成。

第01章 向量 | 第02章 矩阵 | 第03章 微积分
第04章 统计学 | 第05章 概率论 | 第06章 机器学习
第07章 计算语言学 | 第08章 计算机视觉 | 第09章 音频与语音
第10章 多模态学习 | 第11章 自主系统 | 第12章 图神经网络
第13章 计算与操作系统 | 第14章 数据结构与算法
第15章 生产级软件工程 | 第16章 SIMD与GPU编程
第17章 AI推理 | 第18章 ML系统设计
第19章 应用人工智能 | 第20章 前沿人工智能

翻译说明:
- 所有数学公式 $...$ / $$...$$、代码块、图片引用完整保留
- mkdocs.yml 配置中文导航 + language: zh
- README.md 已翻译为中文(兼 docs/index.md)
- docs/ 目录包含指向各章文件的 symlink
- 约 29,000 行中文内容,排除 .cache/ 构建缓存
2026-05-03 10:23:20 +08:00

75 lines
6.5 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 280" width="700" height="280">
<text x="350" y="22" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" font-weight="bold" fill="#333">Virtual Machines vs Containers</text>
<line x1="350" y1="35" x2="350" y2="270" stroke="#ccc" stroke-width="1" stroke-dasharray="4,3"/>
<!-- VM side -->
<text x="175" y="52" text-anchor="middle" font-family="Arial, sans-serif" font-size="12" font-weight="bold" fill="#3498db">Virtual Machines</text>
<!-- Hardware -->
<rect x="30" y="230" width="290" height="30" rx="4" fill="#555" fill-opacity="0.2" stroke="#555" stroke-width="1.5"/>
<text x="175" y="250" text-anchor="middle" font-family="Arial, sans-serif" font-size="10" font-weight="bold" fill="#555">Hardware</text>
<!-- Host OS -->
<rect x="30" y="195" width="290" height="30" rx="4" fill="#666" fill-opacity="0.15" stroke="#666" stroke-width="1.5"/>
<text x="175" y="215" text-anchor="middle" font-family="Arial, sans-serif" font-size="10" font-weight="bold" fill="#666">Host OS / Hypervisor</text>
<!-- VM 1 -->
<rect x="40" y="65" width="125" height="125" rx="6" fill="#3498db" fill-opacity="0.06" stroke="#3498db" stroke-width="1.5"/>
<rect x="50" y="73" width="105" height="22" rx="3" fill="#e74c3c" fill-opacity="0.15" stroke="#e74c3c" stroke-width="1"/>
<text x="102" y="89" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" font-weight="bold" fill="#e74c3c">App A</text>
<rect x="50" y="100" width="105" height="22" rx="3" fill="#f39c12" fill-opacity="0.15" stroke="#f39c12" stroke-width="1"/>
<text x="102" y="116" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" fill="#f39c12">Bins/Libs</text>
<rect x="50" y="127" width="105" height="28" rx="3" fill="#9b59b6" fill-opacity="0.15" stroke="#9b59b6" stroke-width="1"/>
<text x="102" y="145" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" font-weight="bold" fill="#9b59b6">Guest OS</text>
<rect x="50" y="160" width="105" height="22" rx="3" fill="#666" fill-opacity="0.1" stroke="#666" stroke-width="1"/>
<text x="102" y="176" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" fill="#666">Virtual HW</text>
<!-- VM 2 -->
<rect x="185" y="65" width="125" height="125" rx="6" fill="#3498db" fill-opacity="0.06" stroke="#3498db" stroke-width="1.5"/>
<rect x="195" y="73" width="105" height="22" rx="3" fill="#27ae60" fill-opacity="0.15" stroke="#27ae60" stroke-width="1"/>
<text x="247" y="89" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" font-weight="bold" fill="#27ae60">App B</text>
<rect x="195" y="100" width="105" height="22" rx="3" fill="#f39c12" fill-opacity="0.15" stroke="#f39c12" stroke-width="1"/>
<text x="247" y="116" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" fill="#f39c12">Bins/Libs</text>
<rect x="195" y="127" width="105" height="28" rx="3" fill="#9b59b6" fill-opacity="0.15" stroke="#9b59b6" stroke-width="1"/>
<text x="247" y="145" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" font-weight="bold" fill="#9b59b6">Guest OS</text>
<rect x="195" y="160" width="105" height="22" rx="3" fill="#666" fill-opacity="0.1" stroke="#666" stroke-width="1"/>
<text x="247" y="176" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" fill="#666">Virtual HW</text>
<!-- Container side -->
<text x="525" y="52" text-anchor="middle" font-family="Arial, sans-serif" font-size="12" font-weight="bold" fill="#27ae60">Containers</text>
<!-- Hardware -->
<rect x="380" y="230" width="290" height="30" rx="4" fill="#555" fill-opacity="0.2" stroke="#555" stroke-width="1.5"/>
<text x="525" y="250" text-anchor="middle" font-family="Arial, sans-serif" font-size="10" font-weight="bold" fill="#555">Hardware</text>
<!-- Host OS (shared) -->
<rect x="380" y="165" width="290" height="60" rx="4" fill="#27ae60" fill-opacity="0.1" stroke="#27ae60" stroke-width="1.5"/>
<text x="525" y="190" text-anchor="middle" font-family="Arial, sans-serif" font-size="10" font-weight="bold" fill="#27ae60">Host OS (shared kernel)</text>
<text x="525" y="210" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" fill="#27ae60">namespaces + cgroups</text>
<!-- Container 1 -->
<rect x="390" y="65" width="85" height="95" rx="6" fill="#3498db" fill-opacity="0.06" stroke="#3498db" stroke-width="1.5"/>
<rect x="397" y="73" width="71" height="22" rx="3" fill="#e74c3c" fill-opacity="0.15" stroke="#e74c3c" stroke-width="1"/>
<text x="432" y="89" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" font-weight="bold" fill="#e74c3c">App A</text>
<rect x="397" y="100" width="71" height="22" rx="3" fill="#f39c12" fill-opacity="0.15" stroke="#f39c12" stroke-width="1"/>
<text x="432" y="116" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" fill="#f39c12">Bins/Libs</text>
<text x="432" y="148" text-anchor="middle" font-family="Arial, sans-serif" font-size="7" fill="#999">no guest OS!</text>
<!-- Container 2 -->
<rect x="490" y="65" width="85" height="95" rx="6" fill="#3498db" fill-opacity="0.06" stroke="#3498db" stroke-width="1.5"/>
<rect x="497" y="73" width="71" height="22" rx="3" fill="#27ae60" fill-opacity="0.15" stroke="#27ae60" stroke-width="1"/>
<text x="532" y="89" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" font-weight="bold" fill="#27ae60">App B</text>
<rect x="497" y="100" width="71" height="22" rx="3" fill="#f39c12" fill-opacity="0.15" stroke="#f39c12" stroke-width="1"/>
<text x="532" y="116" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" fill="#f39c12">Bins/Libs</text>
<!-- Container 3 -->
<rect x="590" y="65" width="70" height="95" rx="6" fill="#3498db" fill-opacity="0.06" stroke="#3498db" stroke-width="1.5"/>
<rect x="597" y="73" width="56" height="22" rx="3" fill="#3498db" fill-opacity="0.15" stroke="#3498db" stroke-width="1"/>
<text x="625" y="89" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" font-weight="bold" fill="#3498db">App C</text>
<rect x="597" y="100" width="56" height="22" rx="3" fill="#f39c12" fill-opacity="0.15" stroke="#f39c12" stroke-width="1"/>
<text x="625" y="116" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" fill="#f39c12">Libs</text>
<text x="175" y="270" text-anchor="middle" font-family="Arial, sans-serif" font-size="9" fill="#3498db">heavy: each VM runs full OS</text>
<text x="525" y="270" text-anchor="middle" font-family="Arial, sans-serif" font-size="9" fill="#27ae60">light: shared kernel, ms startup</text>
</svg>