<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>2 你好，世界 on 编程那些事儿</title><link>https://before80.github.io/prgms/Rust/comprehensiveRust/day1-morning/hello-world/</link><description>Recent content in 2 你好，世界 on 编程那些事儿</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Tue, 11 Aug 2026 23:57:44 +0800</lastBuildDate><atom:link href="https://before80.github.io/prgms/Rust/comprehensiveRust/day1-morning/hello-world/index.xml" rel="self" type="application/rss+xml"/><item><title>2.1 什么是 Rust？</title><link>https://before80.github.io/prgms/Rust/comprehensiveRust/day1-morning/hello-world/01-what-is-rust/</link><pubDate>Tue, 11 Aug 2026 11:30:00 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/comprehensiveRust/day1-morning/hello-world/01-what-is-rust/</guid><description>&lt;blockquote&gt;
&lt;p&gt;译文 · 基于 &lt;a href="https://google.github.io/comprehensive-rust/"&gt;Comprehensive Rust&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://google.github.io/comprehensive-rust/hello-world/what-is-rust.html"&gt;https://google.github.io/comprehensive-rust/hello-world/what-is-rust.html&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="21-什么是-rust"&gt;2.1 什么是 Rust？&lt;/h1&gt;
&lt;p&gt;Rust 是一门较新的编程语言，&lt;a href="https://blog.rust-lang.org/2015/05/15/Rust-1.0.html"&gt;于 2015 年发布 1.0&lt;/a&gt;：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Rust 是静态编译语言，定位与 C++ 类似
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;rustc&lt;/code&gt; 以 LLVM 作为后端。&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Rust 支持众多
&lt;a href="https://doc.rust-lang.org/nightly/rustc/platform-support.html"&gt;平台与架构&lt;/a&gt;：
&lt;ul&gt;
&lt;li&gt;x86、ARM、WebAssembly 等&lt;/li&gt;
&lt;li&gt;Linux、Mac、Windows 等&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Rust 用于广泛的设备：
&lt;ul&gt;
&lt;li&gt;固件与引导加载程序，&lt;/li&gt;
&lt;li&gt;智能显示设备，&lt;/li&gt;
&lt;li&gt;手机，&lt;/li&gt;
&lt;li&gt;桌面端，&lt;/li&gt;
&lt;li&gt;服务器。&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;Rust 与 C++ 处于同一领域：&lt;/p&gt;</description></item><item><title>2.2 Rust 的优势</title><link>https://before80.github.io/prgms/Rust/comprehensiveRust/day1-morning/hello-world/02-benefits/</link><pubDate>Tue, 11 Aug 2026 11:30:00 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/comprehensiveRust/day1-morning/hello-world/02-benefits/</guid><description>&lt;blockquote&gt;
&lt;p&gt;译文 · 基于 &lt;a href="https://google.github.io/comprehensive-rust/"&gt;Comprehensive Rust&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://google.github.io/comprehensive-rust/hello-world/benefits.html"&gt;https://google.github.io/comprehensive-rust/hello-world/benefits.html&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="22-rust-的优势"&gt;2.2 Rust 的优势&lt;/h1&gt;
&lt;p&gt;Rust 的一些独特卖点：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;编译期内存安全&lt;/em&gt; —— 整类内存错误在编译期就被阻止&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;无未初始化变量。&lt;/li&gt;
&lt;li&gt;无双重释放（double-free）。&lt;/li&gt;
&lt;li&gt;无释放后使用（use-after-free）。&lt;/li&gt;
&lt;li&gt;无 &lt;code&gt;NULL&lt;/code&gt; 指针。&lt;/li&gt;
&lt;li&gt;无忘记解锁的互斥锁。&lt;/li&gt;
&lt;li&gt;无线程间数据竞争。&lt;/li&gt;
&lt;li&gt;无迭代器失效。&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;无未定义的运行时行为&lt;/em&gt; —— Rust 语句的行为从不被留作“未指定”&lt;/p&gt;</description></item><item><title>2.3 在线演练场</title><link>https://before80.github.io/prgms/Rust/comprehensiveRust/day1-morning/hello-world/03-playground/</link><pubDate>Tue, 11 Aug 2026 11:30:00 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/comprehensiveRust/day1-morning/hello-world/03-playground/</guid><description>&lt;blockquote&gt;
&lt;p&gt;译文 · 基于 &lt;a href="https://google.github.io/comprehensive-rust/"&gt;Comprehensive Rust&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://google.github.io/comprehensive-rust/hello-world/playground.html"&gt;https://google.github.io/comprehensive-rust/hello-world/playground.html&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="23-在线演练场"&gt;2.3 在线演练场&lt;/h1&gt;
&lt;p&gt;&lt;a href="https://play.rust-lang.org/"&gt;Rust Playground&lt;/a&gt; 提供了便捷方式运行短小的 Rust 程序，
也是本课程示例与练习的基础。试着运行它默认打开的 “hello-world” 程序。它还带有一些实用功能：&lt;/p&gt;</description></item></channel></rss>