Rust

Tokio + prctl = nasty bug

A detailed analysis of a bug in HyperQueue where tasks were unexpectedly terminated after 10 seconds due to an interaction between tokio thread management, PR_SET_PDEATHSIG, and process spawning optimization. The bug emerged from moving process spawning to a worker thread, causing processes to receive SIGTERM when tokio cleaned up idle threads.

Linus Torvalds Clearly Lays Out Linux Maintainer Roles - Or Not - Around Rust Code

Linus Torvalds addresses the ongoing Linux kernel Rust debate by clarifying maintainer roles, stating that maintainers can either actively engage with Rust code or stay hands-off, but cannot arbitrarily block its implementation. The discussion centers around DMA maintainer Christoph Hellwig's opposition to Rust code integration, highlighting the broader implications for kernel development governance.

Re: Rust kernel policy

Greg KH, a Linux kernel maintainer, strongly advocates for incorporating Rust into the kernel, citing how it eliminates common C-related bugs and memory safety issues. He emphasizes that Rust would particularly benefit new code and drivers, while acknowledging the ongoing importance of improving the existing C codebase. The discussion addresses concerns about mixed-language maintenance and developer adaptation.

Greg Kroah-Hartman Makes A Compelling Case For New Linux Kernel Drivers To Be Written In Rust

Linux kernel maintainer Greg Kroah-Hartman advocates for writing new kernel drivers in Rust, highlighting how it eliminates common C-related memory bugs. The debate over Rust in the Linux kernel continues, with Linus Torvalds supporting its inclusion despite some maintainers' opposition. Kroah-Hartman emphasizes that while existing C code won't disappear, Rust offers better memory safety and API design opportunities.

Why I'm Writing a Scheme Implementation in 2025 (The Answer is Async Rust)

A developer introduces scheme-rs, a work-in-progress R6RS implementation designed for seamless interoperability with async Rust. The project aims to solve async Rust's debugging and iteration challenges while serving as a foundation for a future language called Gouki, which will combine Scheme's macro system with advanced typing features.

Rust is Eating JavaScript | Lee Robinson

Mozilla-created Rust programming language is increasingly being adopted to optimize JavaScript tooling, offering significant performance improvements in areas like minification, transpilation, and bundling. Major tech companies and open-source projects are leveraging Rust's memory efficiency and speed to enhance developer tools, with projects like SWC showing 3-5x performance gains.

String vs &str

Explores the differences and optimal usage patterns between &str and String in Rust, focusing on their implementation in function arguments, return values, and struct fields. Explains how each type has specific use cases based on memory ownership, lifetime requirements, and performance considerations.

Writing a Simple Driver in Rust

A comprehensive guide demonstrates how to create a Windows kernel driver in Rust using WDK crates, showcasing code examples for a thread priority modification driver called 'Booster'. The implementation highlights Rust's potential in system programming while addressing challenges like memory management and Windows API integration.