Zig 0.14.0 introduces major updates including expanded cross-compilation capabilities, improved target support, and incremental compilation features aimed at reducing edit/compile/debug cycle latency, along with significant build system upgrades and language changes.
A comprehensive guide presenting 35 specific methods to enhance Rust programming practices, covering essential topics from type systems to FFI boundaries. The guide is structured into six main sections, focusing on types, traits, concepts, dependencies, tooling, and advanced Rust features. Each item provides detailed insights for writing more effective and maintainable Rust code.
Smart pointers in C++ cannot fully prevent use-after-free vulnerabilities due to internal raw pointers in types beyond user control. Examples with std::vector, std::span, and std::lock_guard demonstrate how iterator invalidation and pointer mismanagement can still lead to memory safety issues regardless of smart pointer usage.
A deep dive into using the interning design pattern in Rust to compress a time series database by a factor of 2000, exploring schema optimization, serialization strategies, and compression techniques to achieve significant space savings.
A detailed guide on building a JSON parser in C, focusing on creating a memory-safe implementation with an ergonomic API and struct-attached functions as methods. Key features include comprehensive compiler flags setup, robust memory management, and simplified JSON value representation.
Servo, a web browser rendering engine written in Rust, offers developers a lightweight, high-performance solution for embedding web technologies. Originally created by Mozilla Research in 2012 and now under Linux Foundation Europe, the project focuses on WebGL and WebGPU support for desktop, mobile, and embedded applications. The project advances web standards and platform development through its unique approach, distinct from Gecko and WebKit.
Fish shell 4.0.0 has been ported from C++ to Rust, introducing improved keyboard binding capabilities, better terminal support, and enhanced scripting features while maintaining backward compatibility for most users.
Memory safety vulnerabilities have been a persistent security challenge costing billions, prompting a call for industry-wide standardization and secure-by-design practices. Recent advancements in memory-safe languages like Rust and hardware technologies offer promising solutions for widespread adoption. Google advocates for establishing a common framework to assess memory safety assurances and drive industry-wide adoption of secure practices.
A developer shares their experience building a feed aggregator using Gleam, a type-safe language running on the Erlang VM. The article explores Gleam's features, including its type system, error handling, and OTP integration, while highlighting both strengths and challenges in implementing a real-world application.
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.