Rust
Search documents
Transformer论文作者重造龙虾,Rust搓出钢铁版,告别OpenClaw裸奔漏洞
量子位· 2026-03-06 06:33
Core Viewpoint - The article discusses the security vulnerabilities associated with OpenClaw and introduces IronClaw as a secure alternative, emphasizing the importance of user data protection and privacy in AI applications [1][2]. Group 1: OpenClaw Vulnerabilities - OpenClaw has been criticized for its severe security issues, including remote code execution and credential exposure, leading to over 25,000 instances being publicly accessible without adequate security controls [7][8]. - The architecture of OpenClaw allows user credentials to be directly sent to LLM providers, raising significant privacy concerns [10][11]. - Users' sensitive information, including employer data, can potentially be accessed by company employees, highlighting a lack of true privacy [11][12]. Group 2: Introduction of IronClaw - IronClaw is a complete rewrite of OpenClaw using Rust, which enhances memory safety and eliminates traditional vulnerabilities like buffer overflows [13][14]. - The security architecture of IronClaw includes four layers of defense: Rust's memory safety, WASM sandbox isolation, encrypted credential storage, and a Trusted Execution Environment (TEE) [15][16][17][18]. - A key feature of IronClaw is that the large language model (LLM) never has access to raw credentials, ensuring that sensitive information remains protected [21][22]. Group 3: Community and Future Developments - The developer community remains cautious due to past vulnerabilities in OpenClaw, but IronClaw's design aims to address these core issues [24]. - Future plans include red team testing and professional security audits to further enhance IronClaw's security [26]. - The article discusses the need for a more intelligent strategy system to combat prompt injection attacks, which could compromise user data [30][31]. Group 4: Vision for User-Owned AI - The creator of IronClaw, Illia Polosukhin, envisions a future where users have complete control over their data and AI agents operate in a trusted environment [42][44]. - NEAR Protocol is building infrastructure to support this vision, including an AI cloud platform and decentralized GPU market [45]. - The concept of user-owned AI includes a marketplace for specialized AI agents, allowing users to automate workflows and tasks [46][49].
微软用 Rust 开发了一个库操作系统 LiteBox
程序员的那些事· 2026-02-15 14:40
Core Viewpoint - Microsoft has officially open-sourced LiteBox, an experimental "library operating system" developed in Rust, which significantly reduces the attack surface by streamlining the interface with the host system [1][3]. Group 1 - LiteBox is not a complete independent system but serves as a security isolation layer that can be embedded into applications or the kernel, retaining only the most essential system interfaces to minimize the attack surface [3]. - The project focuses on achieving easy interoperability between various "northbound" adaptation layers and "southbound" platforms, supporting both kernel and non-kernel usage scenarios [1]. - LiteBox inherently includes Rust's memory safety features, making it more stable and less vulnerable compared to traditional C/C++ sandboxes [4]. Group 2 - It is lighter than virtual machines and more secure than containers, supporting cross-platform execution of Linux programs and integration with hardware security features like AMD SEV-SNP, making it suitable for cloud services and enterprise-level high-security scenarios [4]. - The project is currently in the experimental stage, with interfaces still being iterated upon, and it is open-sourced under the MIT license, with code hosted on GitHub [4].
“AI 写的 C++ 代码,客观上比人类更烂”,吴咏炜对话 Adobe 首席科学家 David Sankel
3 6 Ke· 2026-02-12 11:19
Core Insights - C++ remains irreplaceable for achieving absolute control over performance, despite facing challenges from languages like Rust and the rise of AI programming [1] - The discussion highlights the complexities and vulnerabilities associated with modern coding practices, particularly in C++ [2] Group 1: Memory Safety and Vulnerabilities - Most memory safety vulnerabilities originate from newly written code rather than legacy systems, primarily due to the "code hardening" process that old code undergoes under security scrutiny [4][5] - New code lacks the maturity and scrutiny that older code has faced, leading to a higher incidence of vulnerabilities [6] - C++ still inherits many unsafe characteristics from C, making it difficult to eliminate memory-related vulnerabilities entirely [7][11] Group 2: Tools and Ecosystem - Despite the availability of advanced dynamic analysis tools, their adoption in the C++ ecosystem is limited due to high configuration costs and a lack of awareness among developers [8][9] - Even with the best practices enforced, significant memory vulnerabilities persist in C++ code, as evidenced by Google's findings [10][12] Group 3: Performance vs. Safety - C++ offers unmatched performance by allowing developers to take risks with undefined behavior, which is crucial in high-performance applications like high-frequency trading and gaming [13][15] - The historical inertia of C++ and the vast amount of legacy code contribute to its continued dominance in certain sectors, despite the emergence of safer languages [16][18] Group 4: AI in Programming - AI-generated code poses risks, particularly in C++, where it tends to produce less secure code compared to human-written code [35] - The reliance on AI tools necessitates careful review by developers, as AI-generated outputs can introduce significant errors [33][34] Group 5: Undefined Behavior and Future Proposals - Ongoing proposals aim to address undefined behavior in C++, with the introduction of concepts like "erroneous behavior" in future standards [38] - The evolution of CPU architectures allows for more efficient safety checks, suggesting a shift in how undefined behavior is perceived in the context of performance [40][42]
Rust 贡献者推出新语言 Rue,探索 AI 辅助编译器开发
AI前线· 2026-02-02 07:27
Core Viewpoint - Steve Klabnik, the author of the Rust programming language, has announced Rue, a new systems programming language that aims to explore memory safety without garbage collection while prioritizing developer ergonomics over complexity [2][3]. Group 1: Motivation and Design Philosophy - Klabnik's motivation for creating Rue stems from his love for programming languages and a desire to explore what would happen if Rust did not compete with C and C++ for maximum performance [3]. - The design of Rue follows a "Ru" prefix pattern and aims to simplify the programming experience by eliminating Rust's borrow checker, using "inout" parameters to temporarily transfer ownership [3][4]. Group 2: Technical Approach and Limitations - Rue allows functions to modify values in place without storing them as references in heap-allocated structures, eliminating the need for lifetime annotations [4]. - However, this design choice leads to some limitations in expressiveness, as certain patterns become impossible to express, such as borrowing iterators from containers [5]. Group 3: Development Process and AI Collaboration - Klabnik's development of Rue represents an experiment in building a programming language without funding or a team, initially struggling until he effectively utilized AI assistance from Anthropic's Claude AI, resulting in approximately 70,000 lines of Rust compiler code in just two weeks [5][6]. - The collaboration with AI extends beyond coding assistance, as Klabnik guides the architecture and design decisions, emphasizing the need for skills in effectively using AI tools [6][7]. Group 4: Current Status and Future Prospects - Rue is still in early development, featuring basic control flow, functions, and non-generic enumerations, with plans for heap allocation and other features still in progress [6]. - Klabnik maintains modest expectations for Rue's development, acknowledging that many successful programming languages began as personal experiments [6][7].
50万行代码不敢交给AI?TypeScript之父直言:它就像是个“高级复读机”
3 6 Ke· 2026-01-30 13:08
Core Insights - The inventor of TypeScript, Anders Hejlsberg, emphasizes that existing programming languages are better suited for AI programming not due to their advancement but because they possess the largest training datasets [1] - He describes current large models as advanced "repeaters" that essentially regurgitate previous work with minor extrapolations [1] TypeScript 7.0 Core Upgrade - TypeScript 7.0 introduces a native compiler, which is currently in preview, promising a performance increase of 10 times [3] - The previous TypeScript compiler was written in TypeScript itself and ran on the V8 JavaScript engine, but performance limitations necessitated this upgrade [3] - The new compiler aims to maintain output consistency with the old compiler, including historical quirks, to avoid migration issues [4] Language Selection Controversy - The decision to implement the native compiler in Go instead of Rust or C sparked controversy within the TypeScript community [5] - Rust was ruled out due to its lack of support for necessary data structures and garbage collection, while C was initially considered but ultimately not chosen [5] - Hejlsberg believes the choice of Go was correct, despite community skepticism regarding the decision not to use C [5] AI in Code Migration - Initial attempts to use AI for migrating TypeScript code to Go were deemed unsuccessful, as AI-generated outputs often lacked the required certainty [6] - Hejlsberg suggests that AI should be used to create tools that assist in migration rather than directly translating code [6] - AI's effectiveness is recognized in specific tasks, such as migrating new pull requests to the Go codebase after the initial migration [6] Future of TypeScript - TypeScript will continue to follow JavaScript's standardization process while enhancing its type system features [7] - Significant changes are expected to occur in the toolchain rather than the language itself, as AI transforms development tools [8] - Hejlsberg notes that AI is evolving from a plugin to a core tool for developers, necessitating robust language service support [8] Origin of TypeScript - TypeScript was conceived to address the limitations of JavaScript rather than to create a new language, stemming from the needs of the Outlook Web team [9] - The decision to migrate the compiler to Go reflects a recognition of performance limitations within TypeScript itself [9]
【2025新品】java-antd-web3全栈dapp开发教程
Sou Hu Cai Jing· 2026-01-19 20:12
Group 1 - The article discusses the integration of Java and Ant Design (AntD) in the development of Web3 DApps, highlighting their importance in enterprise-level blockchain solutions [2][4]. - Java's strong typing and exception handling capabilities enable efficient interaction with major blockchains like Ethereum and Solana, achieving event listening delays of 500 milliseconds [4]. - AntD Pro provides ready-to-use solutions for DApp management, enhancing user experience with features like dynamic forms and visual components [4]. Group 2 - The evolution of the Web3 tech stack is noted, with Solidity remaining the primary language for smart contract development, while Rust is gaining traction on the Solana chain [4]. - The Graph protocol improves on-chain data query performance by three times, addressing the slow response issues of traditional DApp frontends [4]. - The course design emphasizes modularity, security practices using tools like Slither, and real-world case studies to ensure data consistency in cross-chain asset management [4][7]. Group 3 - The demand for composite talent in the blockchain sector is increasing, with salary premiums of 30-50% for engineers skilled in both Java and smart contract development [8]. - Typical career paths include roles in blockchain middleware development, digital asset management system architecture, and regulatory technology (RegTech) solution design [8]. - Practical project blueprints include building DeFi protocols, NFT platforms, and DAO governance systems [8]. Group 4 - The article outlines new paradigms for DApp development in 2026, including cross-chain asset transfers via Wormhole and enhanced transaction privacy through zero-knowledge proof technology [6][8]. - Innovations in user experience are highlighted, such as account abstraction wallets that eliminate the burden of mnemonic management and gasless transaction models that lower entry barriers for users [8]. - Regulatory compliance innovations are also discussed, including on-chain KYC solutions and real-time tax calculation engines [8].
Python 大哥,C 老二,Java 小三……Go 彻底跌出前十
程序员的那些事· 2026-01-07 23:34
Core Insights - C has regained the title of "Programming Language of the Year" in the 2025 TIOBE index, marking a significant rise in its ranking after three years [1] - The programming landscape is shifting, with C and C++ swapping positions, and C language maintaining its dominance in the embedded systems market [1] - Perl has made a remarkable leap from 32nd to 11th place, while R language has returned to the top ten, driven by growth in the data science sector [1] - Go language has fallen out of the top ten, and Ruby has dropped out of the top twenty, indicating a potential decline in their usage [1] Ranking Summary - Python remains the top programming language with a rating of 22.61%, although it has seen a slight decrease of 0.68% [2] - C has moved up to the second position with a rating of 10.99%, showing an increase of 2.13% [2] - Java and C++ have dropped to third and fourth positions, respectively, with Java at 8.71% (down 1.44%) and C++ at 8.67% (down 1.62%) [2] - C holds the fifth position with a rating of 7.39%, reflecting an increase of 2.94% [2] - Visual Basic and SQL are in sixth and eighth positions, respectively, with ratings of 2.41% and 2.27% [2] - R has climbed to the tenth position with a rating of 1.82%, up by 0.81% [2] - Perl's rise to 11th place with a rating of 1.63% marks a significant increase of 1.14% [2] - Rust has moved to 13th place with a rating of 1.51%, showing a modest increase of 0.34% [2] - Go has dropped to 16th place with a rating of 1.24%, down by 1.37% [2]
11天狂写10万行代码,13年Rust老兵,与Claude联手从零造了一门新语言
3 6 Ke· 2026-01-07 12:49
Core Insights - Steve Klabnik, a senior technical expert in the Rust community, has developed a new experimental systems programming language called Rue in just 11 days with the help of AI tool Claude, writing approximately 100,000 lines of Rust code [1][11] - Klabnik's motivation to create a programming language stems from his long-standing interest in language design and compiler development, which he has pursued for over a decade [3][4] - The name "Rue" was chosen for its connection to Klabnik's admiration for Ruby and Rust, as well as its connotations and brevity [8] Development Process - Klabnik initially hesitated to develop a programming language due to the high expectations and complexities involved, which have increased over the years [4][10] - His perspective shifted with the advancement of AI tools, leading him to explore the feasibility of using AI to assist in compiler development [4][12] - The project faced a temporary halt due to work commitments but resumed in late 2025, with Klabnik feeling more adept at utilizing AI for software development tasks [5][6] Project Features and Goals - Rue aims to provide memory safety without relying on garbage collection, positioning itself as a higher-level language than Rust but lower than Go, focusing on usability [8][10] - The development of Rue has already attracted attention from other developers, evolving from a personal experiment into a collaborative effort [6][15] - The project is still in its early stages, with Klabnik emphasizing that it is primarily for fun and exploration rather than a serious push for adoption [15] Community Reactions - The announcement of Rue has sparked discussions in the programming community, with opinions divided on the necessity of new languages in the age of AI [15][16] - Some argue that the emergence of AI reduces the need for learning new languages, while others believe it enhances the value of language experimentation [16]
曾对AI嗤之以鼻,如今2周生成7万行代码:Rust大佬与Claude联手打造新语言Rue
机器之心· 2026-01-07 00:49
Core Insights - The article discusses Steve Klabnik's journey with Rust and his new programming language, Rue, highlighting the evolution of his perspective on AI as a valuable tool in software development [1][3][21] Group 1: Klabnik's Perspective on AI - Klabnik transitioned from being an AI skeptic to recognizing the practical benefits of AI tools in coding, particularly with the use of Claude for generating code [3][10] - He emphasizes that AI serves as a high-level tool, enhancing productivity for those with a foundational understanding of software engineering principles [10][21] Group 2: Introduction of Rue - Rue is a new programming language designed by Klabnik, aiming to bridge the gap between high-performance languages like Rust and more accessible languages like Go [6][20] - The name Rue reflects both a sense of self-deprecation and a botanical reference, indicating a blend of good and bad qualities [6] Group 3: Development Process of Rue - The Rue project has rapidly accumulated around 70,000 lines of Rust code within two weeks, showcasing the efficiency of AI-assisted coding [8][20] - Klabnik's workflow involves AI (Claude) handling the implementation details while he focuses on design and architecture [14][20] Group 4: Rust's Role in AI Programming - Rust's strict compiler serves as a quality control mechanism, ensuring that AI-generated code meets safety and type-checking standards [13][19] - This strictness, once seen as a barrier for beginners, is now viewed as an advantage in the context of AI programming, as it helps eliminate critical errors [17][21] Group 5: Future of Programming Roles - Klabnik's experiment with Rue suggests a shift in developer roles from "bricklayers" to "architects," where human developers focus on higher-level design while AI handles more routine coding tasks [21]
AI、Rust、Java、Go...全学科资料,给大家整理出来了!| 极客时间
AI前线· 2025-12-25 05:52
Core Insights - The article emphasizes the power of knowledge and the potential for individuals to excel in the technology field through access to free educational resources [2]. - It promotes a comprehensive offering of over 200 hours of free IT self-study courses covering 14 popular subjects, including AI, Java, architecture, Go, cloud-native technologies, and more [2][5]. Course Offerings - The courses are taught by industry experts, including former executives from major tech companies, providing practical insights and experiences [2]. - The curriculum is designed for various skill levels, catering to beginners, experienced programmers, and those curious about new technologies [5]. Specific Course Highlights - Courses include topics such as AIGC applications, multi-modal large model technologies, and practical applications of AI tools [9][10]. - There are specialized sessions on programming languages like Rust, Java, and Go, focusing on performance, reliability, and practical applications [18][22]. Learning Pathways - The article outlines structured learning paths for different audiences, ensuring that everyone can find suitable courses to enhance their skills and career prospects [5]. - It encourages immediate action to enroll in the limited-time offer of free courses, emphasizing the urgency and value of the opportunity [36].