Rust语言
Search documents
告别漏洞百出的 C++!微软用 Rust 赌上未来,内核和 Office 都在“锈”化
程序员的那些事· 2025-10-05 12:56
Core Viewpoint - Microsoft is adopting Rust programming language to enhance the security of its Windows operating system, addressing vulnerabilities that arise from using C and C++ [4][6][26]. Group 1: Security Enhancements - Microsoft has been continuously improving the security of the Windows system for decades and is now rewriting parts of the code in Rust to mitigate security issues [4][6]. - The introduction of Rust aims to prevent vulnerabilities from being exploited; when a bug is found in Rust code, the system crashes predictably rather than allowing an attacker to take control [6][10]. - The DirectWrite component has been rewritten in Rust, resulting in faster performance and elimination of previous vulnerabilities [6]. Group 2: Azure and Rust Implementation - Azure has mandated the use of Rust for new projects, particularly those involving untrusted data processing, due to the high risks associated with C++ [8][9]. - The Caliptra hardware root of trust was entirely developed in Rust, showcasing the language's application in critical infrastructure [8]. - Azure Boost requires that any module handling untrusted data must be written in Rust, further solidifying the language's role in Microsoft's cloud services [9][10]. Group 3: Office Team's Transition - The Office team faced challenges with their DiskANN semantic search system, which could not handle the scale required for millions of documents, leading to a decision to rewrite it in Rust [15][16]. - The transition to Rust resulted in significant performance improvements while maintaining accuracy, prompting the Office team to fully adopt Rust [16][17]. Group 4: Developer Adoption and Feedback - Internal surveys indicate that developers generally have a positive view of Rust after overcoming initial adaptation challenges, particularly those transitioning from C++ [21][22]. - Developers appreciate the performance gains from migrating C++ code to Rust and the reduction in debugging time, despite some complaints about the complexity of integrating Rust with existing C++ and C code [23]. Group 5: Future Prospects and Industry Impact - Microsoft is developing an AI tool to automate the migration of codebases from C++ to Rust, which could significantly reduce the labor costs associated with such transitions [24]. - The push for Rust is seen as a critical move for future software engineering, with support from entities like the NSA and the Linux community, indicating a broader industry shift towards memory-safe languages [26][27]. - The introduction of a driver framework for Rust aims to enhance the security of the Windows ecosystem by encouraging hardware manufacturers to adopt Rust for driver development [18][19].
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].