Jarred Sumner announced that Bun, the JavaScript runtime, is being rewritten from Zig to Rust, as detailed in a blog post on bun.com.
#rust
30 items
A project called pgrust has rewritten PostgreSQL's query engine in Rust, now passing 100% of the standard Postgres regression tests, marking a significant milestone in the effort to port the database to Rust.
The article discusses the decision to rewrite the Bun runtime, originally built in Zig, using Rust instead. It explores the motivations behind this change, potential improvements in performance and ecosystem compatibility, and the challenges involved in such a significant rewrite of a major JavaScript runtime.
A Reddit post visualizes the distribution of code in the Bun runtime, comparing its newly added Rust files against its existing JavaScript and C++ codebase.
Bun, the JavaScript runtime originally written in Zig, has been rewritten in Rust to improve performance, stability, and developer experience. The transition aims to leverage Rust's mature ecosystem and safety guarantees while maintaining full compatibility with existing JavaScript and TypeScript applications.
LiberSystem is an operating system built as a capability-based microkernel written in the Rust programming language, focusing on security and safety through the use of capabilities for access control and Rust's memory safety guarantees.
OffHeap is a high-performance off-heap L1 cache engine for Node.js, written in Rust. It provides caching outside the Node.js heap to reduce garbage collection pressure and improve performance for data-intensive applications.
The article describes how Pydantic rebuilt its Rust-based Python interpreter as a Bazel remote build system, enabling faster and more efficient compilation and testing of Python projects by leveraging Bazel's distributed caching and remote execution capabilities.
Sonair has developed the world's first safety-certified 3D ultrasonic sensor, built using the Rust programming language. The sensor achieved ISO 13849 functional safety certification, making it suitable for industrial safety applications like autonomous mobile robots and collaborative robotics.
A new Rust-based macOS infostealer named PamStealer has been discovered. It targets user credentials by validating them through the Pluggable Authentication Module (PAM) and exfiltrates stolen data from infected systems.
The Rust version of the coreutils 'cp' command caused Ubuntu image builds to fail due to incompatibility issues. The breakage stemmed from differences in behavior between the Rust and GNU implementations of 'cp', leading to build errors in Ubuntu's image generation process.
Zynkbot is an open-source AI assistant built in Rust that runs locally with transparent memory, allowing users full visibility into how it stores and retrieves information.
The article argues that Rust is not truly memory-safe despite its design goals, pointing out that unsafe blocks, FFI calls, and memory leaks (via Rc/Arc cycles and Box::leak) can still introduce memory vulnerabilities, and that the language's safety guarantees only hold if the programmer follows strict rules.
Fli is a minimal CLI file listing tool built in no_std Rust and Libc, occupying only 18KB. It offers an alternative to traditional ls commands with a tiny footprint. The project is open-source and available on GitHub.
The article explains how memory fragmentation degrades Rust application performance and covers strategies to eliminate it, such as using custom allocators, pre-allocating memory, and designing data structures that minimize heap allocations.
YSERVER 1.3, a modern X11 server written in Rust and developed through "vibe coding," has been released. This new version adds Xinerama support for multi-monitor setups and introduces compatibility with FreeBSD, expanding beyond its initial Linux focus.
A Rust developer discovered that adding a boolean argument and an if-statement inside a sort_unstable_by closure unexpectedly reduced the compiled binary size by about 1KB, with the quicksort function alone shrinking by 980 bytes. The cause remains unclear despite similar inlining, and the effect was observed on the arm-unknown-linux-gnueabihf target.
Qt has released the public beta of the Rust Bridge, enabling developers to use Qt APIs from Rust code. This bridge allows Rust developers to leverage Qt's GUI and other modules natively within their Rust projects.
A project called RatatuEFI ports the Ratatui terminal UI framework to run directly in UEFI, without an underlying operating system. It enables building TUI applications that boot and run in the UEFI environment.
The article is a tutorial on building a 3D editor using the Bevy game engine in Rust, focusing on creating an infinite grid and a 3D space. It covers setting up the Bevy project, implementing camera controls, and rendering a grid that extends infinitely using shaders or procedural techniques. The guide serves as an introductory step toward developing a full-featured 3D editor.
Laurenz Mädje discusses Typst, a Rust-based document typesetting system, focusing on its incremental compilation design for fast preview updates, in contrast to LaTeX's full rebuild model.
A self-published Rust book guides readers through building a Redis clone as the final project, teaching systems programming concepts hands-on.
Power House is an open-source toolkit written in Rust and Python that enables the creation and verification of verifiable computation artifacts, helping developers build trust in software outputs through cryptographic proofs.
Ferroload is a fast dataloader implementation written in Rust, designed to efficiently batch and cache data loading operations for improved performance in data-intensive applications.
MS Coin is a Layer-1 blockchain protocol built entirely in Rust, focused on privacy, security, and performance. It offers a decentralized and anonymous ecosystem for digital transactions, differentiating itself through its Rust-based architecture and privacy-first design.
Wgpu v30
3.0Wgpu v30.0.0 has been released, bringing various updates and improvements to this graphics abstraction layer for Rust. The release includes new features, bug fixes, and changes to the API.
The article explains Rust's `std::pin::Pin` type, which ensures that a value in memory cannot be moved once pinned. It covers why pinning is necessary for self-referential structs and async state machines, how `Pin` works with `Box` and stack pinning, and the safety guarantees provided by `Unpin` and `!Unpin` traits.
Axiom is a Rust-based operating system kernel designed specifically for LLM inference workloads, aiming to optimize performance and efficiency for running large language models at the system level.
fastcp is a Rust/Bash wrapper for the cp command that checks whether the filesystem supports reflink and, if so, automatically adds the --reflink=always flag to speed up file copies.
Qt introduces a new cross-platform Rust UI framework using its bridging technology, enabling developers to build native interfaces in Rust while leveraging Qt's mature toolkit and ecosystem. The approach aims to combine Rust's safety and performance with Qt's extensive UI capabilities across multiple platforms.