Workflow
Rust语言
icon
Search documents
告别漏洞百出的 C++!微软用 Rust 赌上未来,内核和 Office 都在“锈”化
程序员的那些事· 2025-10-05 12:56
以下文章来源于算法爱好者 ,作者小蒜 算法爱好者 . 算法是程序员的内功!「算法爱好者」专注分享算法相关文章、工具资源和算法题,帮程序员修炼内功。 数十年来,微软一直在不断调整 Windows 系统的安全性。如今,它正尝试借助 Rust 语言解决安全问题,并且希望其他所有开发者也能采用 Rust。 鲁西诺维奇表示,真正关键的一点在于:当一名安全研究人员在新版 Rust 代码中发现一个漏洞时,系统会直接崩溃,而非让攻击者趁机接管系统。 他说:"我们认为这是一次成功的尝试。如果这段代码用 C++ 编写,这个漏洞实际上可能会导致权限提升问题;而用 Rust 编写时,系统只会出现可预测的蓝屏崩 溃,且这种崩溃无法被攻击者利用。" 此外,微软还重写了 DirectWrite(字体渲染器)。多年来,该组件引发了无数安全问题。 2 个微软开发者耗时 6 个月,完成了 15.4 万行代码的重写工作。重写后的 DirectWrite 运行速度比旧版本更快,且不再存在以往那种类型的漏洞。 Azure 的强制要求 问题其实很简单:使用 C 和 C++ 语言编写的代码,表面上看似无懈可击,实则可能会发生严重崩溃,更糟糕的是,还可能遭 ...
vivo蓝河操作系统内核开源:一场国产操作系统的「Rust革命」
3 6 Ke· 2025-07-30 13:42
Core Viewpoint - The article discusses vivo's development of the Blue River operating system, emphasizing its transition from self-research to open-source, and the use of Rust programming language to address the challenges posed by the AI era in operating systems [2][7][19]. Group 1: Operating System Evolution - The operating system has become a crucial bridge in the AI era, managing hardware resources and ensuring data security [4]. - Traditional operating systems, primarily built on C language, face structural limitations in adapting to modern demands for lightweight, secure, and cross-platform solutions [5][6]. - The emergence of Rust as a programming language aims to overcome the security vulnerabilities and inefficiencies of C/C++ in system-level programming [10][12]. Group 2: Blue River Operating System Features - The Blue River kernel, built using Rust, offers three core advantages: security, lightweight design, and universality [14]. - The kernel ensures memory safety and stability, requiring minimal hardware resources, with a memory footprint as low as 13KB [14]. - It supports various chip architectures, including RISC-V and ARM, and is compatible with POSIX interfaces, enhancing its adaptability across different platforms [14]. Group 3: Strategic Importance of Open Source - vivo's decision to open-source the Blue River kernel is aimed at fostering an ecosystem around Rust, enhancing its adoption and influence in the industry [20][21]. - The company is committed to building a developer community through initiatives like the Blue River operating system innovation competition, which has seen participation from over 400 teams from more than 90 top universities [21]. - This open-source strategy is part of vivo's broader vision to drive innovation in the operating system space and contribute to the development of the Rust programming language ecosystem in China [20][21].
vivo蓝河操作系统内核开源:一场国产操作系统的「Rust革命」
36氪· 2025-07-30 13:35
Core Viewpoint - The article discusses vivo's development of the Blue River operating system, emphasizing its transition from self-research to open-source, driven by the need for a secure, lightweight, and versatile OS in the AI era [1][20]. Group 1: Operating System Evolution - The operating system has become a critical component in the AI era, acting as a gatekeeper for hardware resources and data flow, while also raising security concerns due to increased vulnerabilities [3][4]. - Traditional operating systems, primarily built on C language, face structural limitations in adapting to modern demands for lightweight and secure systems [4][12]. Group 2: Rust Language Adoption - Rust is identified as a solution to overcome the limitations of traditional programming languages, offering memory and concurrency safety without sacrificing performance [5][9]. - The Blue River kernel, built using Rust, aims to provide a secure runtime environment, with a minimal memory footprint of just 13KB, making it suitable for various devices [12][14]. Group 3: Open Source Strategy - vivo's decision to open-source the Blue River kernel is aimed at fostering an ecosystem around Rust, encouraging developer engagement and collaboration [21][22]. - The company is actively promoting Rust through competitions and partnerships with academic institutions, positioning itself as a leader in the Rust programming community [22][24]. Group 4: Future Outlook - The launch of the Blue River operating system marks a significant step for vivo in addressing user experience challenges and adapting to the evolving landscape of smart devices [18][19]. - The open-source initiative is seen as a starting point for building a robust ecosystem around the Blue River operating system, contributing to the growth of domestic Rust language applications [26].