
? 研究发现人类仍比人工智能便宜
? Chrome 将内置人工智能写作助手
? FreeBSD 开发者讨论在其基本系统中使用 Rust
»
»

? 得益于人工智能驱动的狂热,标普 500 指数创历史新高
? 龙架构为 Linux 6.8 提供初步 Rust 内核支持
? NPM 用户每周下载 21 亿个过时软件包
»
»

? ChatGPT 几乎没有提升必应搜索市场份额
? 谷歌明确警告 Chrome 隐身模式仍然会被跟踪
? Rust 编写的 Linux 调度程序可提高游戏性能
»
»

? 联网的扭矩扳手也能被入侵
? Git 项目考虑使用 Rust 代码开发
? 开源社区在 2024 年仍在继续支持 Flash 播放器
»
»

? 首个 Rust 编写的网络 PHY 驱动程序将登陆 Linux 6.8
? 字节跳动被指利用 OpenAI API 训练自己的 AI
? 谷歌群组明年终止支持新闻组(Usenet)
»
»

? Linus Torvalds 谈 Rust 和 AI 编程
? Meta 用 11 亿张用户照片训练其人工智能图像生成器
? 微软 DHCP 服务器软件被滥用来欺骗 DNS 记录
»
»

? Rust 有了一个制定规范的团队,但不负责定义该语言
? Firefox 120 将支持新的隐私控制请求头 Sec-GPC
? 波兰法院地板下发现大型加密矿机
»
»

? Linux 中的 Rust 支持继续成熟
? 微软庆祝 “补丁星期二” 20 周年
? 亚马逊宣布推出 Olympus LLM
»
»

? 微软支持开发者用 Rust 开发 Windows 驱动
? 所有主要 GPU 都可能遭受新的像素窃取攻击
? 苹果在法庭上为谷歌搜索交易辩护
»
»

Rust 开发者,你们有新的东西可以尝试了!

? GitHub 调整主页信息流惹怒开发人员
? 黑客声称只打了 10 分钟电话就关闭了米高梅酒店
? JetBrains 放弃开源插件,宣布全新 Rust IDE
»
»

? 埃隆·马斯克的 Twitter/X 关注者水分严重
? OpenTF 宣布创建 Terraform 分支
? 调查发现业界对 Rust 应用的担忧减少了 21%
»
»

在 Rust 基础系列的最后一章里,让我们现在用 Rust 编写一个程序

另一种方法是使用循环。因此,让我们在本文中看看循环。

在这篇文章中,我们将学习使用条件语句来管理 Rust 程序的控制流。

? Rust 项目再次陷入领导力危机
? 英伟达成为第一家万亿芯片公司
? ChatGPT 为律师编写的法庭文件杜撰了六个不存在的案例
»
»

在这一章中,在实例的帮助下,学习如何使用函数并从中返回值。

Rust 和 Python 的优势互补。可以使用 Python 进行原型设计,然后将性能瓶颈转移到 Rust 上。

在 Rust 系列的第四篇中,学习复合数据类型、数组和元组。

现在来讲解数据类型是再自然不过的了。

? “特性和错误多到无法列出” 的新文件系统准备进入内核主线
? SSD 厂商称 2028 年硬盘将停止销售
? Rust 代码将首次出现在 Windows 11 Insider 预览版
»
»

? sudo 和 su 命令正在用 Rust 重写
? 被辞退的 AI 工程师称谷歌拥有更强大的 AI 技术
? 人工智能编码竞赛,OpenAI 系胜出
»
»

推进你的 Rust 学习,熟悉 Rust 程序的变量和常量。

? 微软用 Rust 重写核心 Windows 代码
? 基于区块链来共享空闲的 WiFi 接入点
? 谷歌计划在认证器中加入端对端加密功能
»
»

? Windows 上 Firefox CPU 占用的锅终于被摘了
? Rust 基金会禁止 Rust 相关软件使用 “Rust” 名称
? 开发者创造出了可以“自愈”的程序
»
»

在 Rust 编程系列的第一篇中,你将学习如何用 Rust 编写和执行你的第一个程序。

? 走出混乱,Rust 项目公布新的治理结构
? “问客”诞生?我觉得这是一个短暂的过渡
? C++ 23 语言标准宣布功能已完备
»
»

? Rust 是如何诞生的
? Adobe 对 Figma 的收购面临欧盟反垄断调查
? 拯救 Linux 内核的 IA64 支持
»
»

? GNU Coreutils 的 Rust 实现正变得非常强大
? Linux 6.1 被选为 LTS 长期支持内核
? Thunderbird 正在经历一次从头开始的大规模重修
»
»

? C++ 之父认为 Rust 的安全性并不优于 C++
? OpenAI 说 GPT-4 的 100 万亿参数数量是“胡说”
? GitHub 将停止支持 Subversion

跟随这个演示,学习如何在 Rust 中使用文件系统模块。

❶ 数据库损坏导致全美停飞航班
❷ 因员工监控软件显示摸鱼,被勒令向公司返回工资
❸ 谷歌将在 Chrome 开发中使用 Rust

❶ 数千用 Rust 开发的项目面临拒绝服务攻击
❷ 美国最幸福、压力最小的工作是伐木工和农民
❸ 苹果公司因非法获取用户数据而被罚

Rustlings 是由 Rust 团队维护的开源项目,旨在帮助你通过调试代码的方式来学习 Rust。

Rust FFI 和 bindgen 工具是为 Rust 调用 C 库而设计的。Rust 很容易与 C 语言对话,从而与任何其它可以与 C 语言对话的语言对话。

❶ Linux 6.1 发布,拉开 Rust 进入 Linux 内核的大幕
❷ AlphaCode 是如何在编程竞赛中超过一半的程序员
❸ 亚马逊计划干掉条形码

❶ 美国将斥资 15 亿美元启动华为替代方案
❷ GCC 即将加入对 Rust 的支持
❸ 一堆 X.org 组件得到了更新,但无关紧要

❶ 安卓的 Rust 代码中发现的内存安全漏洞为零
❷ OpenAI 的新聊天机器人可以解释代码
❸ 英国年龄超过 50 岁的 IT 专家仅有 22%

❶ Rust 叫好不叫座
❷ Docker Hub 至少有 1600 个公开镜像带有恶意行为
❸ 新加坡将每棵大树都连上物联网

• GitHub Copilot 被诉“规模空前的软件盗版” • 经过六年等待,Rust 终于支持通用关联类型了 • 谷歌计划建立支持世界上 1000 种最常用的语言的 AI 模型

• NTP 协议面临无人维护的境地 • Plasma 5.27 将是 Plasma 5 系列的最后一个功能版本 • Rust 成立新的团队来制定官方编码风格

• Debian 确定了处理非自由固件的方案 • System76 的 COSMIC 桌面将不使用 GTK • openEuler 发布 22.09 创新版,实现鸿蒙欧拉互联互通

在 2022 年的 Linux 内核维护者峰会上,Miguel Ojeda 向大家更新了此项目的最新状况,希望能达成一致来确定何时可以完成合并。

• Linus Torvalds 获颁英特尔首个终身创新成就奖 • 英特尔认为摩尔定律仍旧有效 • Rust for Linux v10 补丁发布,预计合并到 Linux 6.1

Redox OS 刚刚获得了大量匿名捐款。它将用于什么?令人兴奋的事情!

• 微软 Azure CTO 称 C/C++ 应该被废弃 • Mozilla 发布报告指责操作系统与浏览器的锁定 • 被忽视 15 年的 Python 漏洞导致 35 万项目陷入风险

• Rust 将进入 Linux 6.1 • LibreOffice 上架 Mac 应用商店,售价 9 欧元 • 研究发现 YouTube 的反馈按钮几乎没有用

• Rust Linux 驱动程序实现与 C 代码相当的性能 • PyTorch 成为 Linux 基金会的顶级项目 • 思科承认“阎罗王”勒索团伙泄露了其数据,但表示没有问题

• 中国内核开发者向 Linus 建议继续保留 5.20 版本号 • GitLab 禁止员工使用 Windows • 开发者大幅精简 Rust for Linux v9 补丁

rustup 可用于 Rust 安装与更新。它还能够在稳定版、测试版和每日更新版之间无缝切换 Rust 编译器及其工具。