Best of Rust — July 2024
- 1
- 2
ThePrimeTime·2yI Spent 18 Months Using Rust And Regret It
The post discusses the author's regret after rebuilding their algorithmic trading platform in Rust over 18 months. Initially enthusiastic about Rust's safety and purported speed, the author found the language challenging, particularly when dealing with verbose syntax, complex error handling, and async programming. Despite the upsides like speed and concurrency features, the author argues that Rust falls short in user experience and community support compared to other languages. The post suggests that Rust's steep learning curve and intricate error mechanisms make it difficult to write efficient code, especially for complex tasks like trading algorithms.
- 3
Hacker News·2y
QuestDB
QuestDB is an open-source time-series database with SQL analytics designed to efficiently handle data ingestion and analysis. The post details the development and debugging of a primary-replica replication feature, addressing a performance issue related to excessive network bandwidth usage. The author implemented a custom network profiling tool using Rust to capture and analyze network traffic, identifying the root cause of the problem. The solution involved optimizing how metadata was uploaded, ultimately improving bandwidth efficiency. Techniques used within QuestDB for high ingestion performance were also highlighted.
- 4
Community Picks·2y
The ultimate multi-model database
SurrealDB is a versatile multi-model database designed for modern applications. It integrates the database layer, querying layer, and API/authentication into one platform. It supports SurrealQL, GraphQL, REST, and JSON-RPC for data access and modification. SurrealDB can handle advanced querying without complex JOINs and offers real-time data syncing. It can operate in-memory or as a distributed cluster, suitable for various environments. Additionally, it supports embedded JavaScript functions and ES2020 standards for advanced data manipulation.
- 5
Community Picks·2y
The BEST Fully Rust-based Terminal Setup
Discover a fully Rust-based developer setup that leverages terminal tools for a streamlined workflow. This setup focuses on tools like Warp for terminal emulation, Zellij for terminal multiplexing, Nushell for the shell, Starship for the prompt, and Helix for text editing. Bonus tools include Exa for enhanced directory listing and multiple CLI tools for improved performance and efficiency.
- 6
Community Picks·2y
Memory Safety in C++ vs Rust vs Zig
The post compares C++, Rust, and Zig in terms of memory safety. C++ offers freedom but can lead to unsafe memory practices; Circle C++ provides stricter safety features while maintaining compatibility with existing codebases. Rust ensures exceptional memory safety with a strict compiler and concepts like the borrow checker. Zig strikes a balance with reasonable memory safety and ease of use, making it simpler to integrate into existing projects. Key focus areas include lifetime safety, type safety, and runtime safety, highlighting how each language handles these aspects differently.
- 7
The Coded Message·2y
Programming Portfolio
The programming portfolio showcases publicly available code written by the author. It includes both hobbyist and professional projects in languages such as Rust, C#, and Haskell. Highlights include a serialization format for serde-dbus in Rust, a blockchain app for Ledger Nano S in C#, and various hobby projects like a chess game and a Wordle clone in Haskell.
- 8
Hacker News·2y
Mako is Now Open Source
Mako is a production-grade, extremely fast front-end build tool now open-sourced. Developed with Rust, it aims to solve build speed issues and has been validated by extensive use within Ant Group. With significant speed improvements over tools like Webpack, it supports various platforms and business scenarios. Developers can now participate in its development and use it in their projects seamlessly.
- 9
Collections·2yZed Editor Now Publishing Native Linux Builds
Zed, an open-source Rust-based code editor, now offers native builds for Linux, featuring GPU-accelerated rendering via the Vulkan API, broad language support with Github CoPilot and GPT-4 integration, and compatibility with major Linux distributions. The project encourages community contributions for further enhancements and supports both X11 and Wayland.
- 10
Rust Developers·2y
Big Announcement: New Project
A new open-source project called 'Rustcrab' has been launched to serve as a valuable resource for Rust developers. The project includes a minimal website with real-time GitHub stars, light and dark modes, and integration with Substack email. Future plans include adding more sections, promoting the project, email updates, and live events. A separate Discord channel for discussions will also be created. The aim is to make it easier for developers to get involved with the Rust community and stay updated on resources and news.
- 11
- 12
Phoronix·2y
COSMIC Desktop Very Close To Alpha Release, Adds Compositor Multi-Threading
System76 is nearing the alpha release of COSMIC, a new Rust-written Linux desktop environment designed for Pop!_OS and other Linux distributions. Final touches are being made, including the addition of multi-threading to the compositor for enhanced performance. This development is closely followed by Michael Larabel, the founder of Phoronix.com and a prolific writer on Linux hardware and performance topics.
- 13
Hacker News·2y
Investing in Rust
Research attributes over 50% of security vulnerabilities to errors that could be prevented by memory-safe languages like Rust. Despite its efficiency and safety advantages over languages like C and C++, Rust faces adoption challenges due to its incompatibility with existing engineering skills and systems. The discussion includes recommendations for U.S. public policy to support the adoption of memory-safe languages.
- 14
The Coded Message·2y
Recommended Reading for Programmers
This post provides a curated list of resources recommended for programmers, particularly those interested in Rust and systems programming. It categorizes resources for beginners, intermediate learners, and those looking to understand unsafe Rust. Additionally, it mentions essential readings for C and C++ programmers, notable articles, and classic texts.
- 15
- 16
Hacker News·2y
swimos/swim-rust: Self-contained distributed software platform for building stateful, massively real-time streaming applications in Rust.
The Swim Rust SDK is a software framework designed for building stateful, real-time streaming applications using Rust. It operates on the Tokio asynchronous runtime and requires a Tokio runtime. Applications consist of multiple stateful agents running as separate tasks, each addressable by a URI. These agents can interact through multiplexed streaming APIs with both public and private states. Public states consist of lanes, which can be observed and modified over web-socket connections. The framework also supports persistent storage options and includes a variety of example applications for developers.
- 17
JetBrains·2y
Polars vs. pandas: What’s the Difference?
Polars is a powerful dataframe library built for speed and efficiency on a single machine, often outperforming pandas in memory usage and speed. Written in Rust and based on Apache Arrow, Polars offers features like safe concurrency and query optimization through lazy execution. Despite its performance advantages, Polars is less compatible with current data visualization and machine learning libraries compared to pandas.
- 18
ThePrimeTime·2yWhy I Chose Rust Over Zig
The author discusses their preference for Rust over Zig in system programming. Although they appreciate Zig for its C-like feel, they find Rust's memory safety, established ecosystem, and more mature tooling make it a more productive choice. The author also points out that Zig's current tooling, ecosystem, and lack of comprehensive learning resources are significant barriers. Despite Zig's potential, Rust’s industry backing and safer, more familiar tooling make it the author's go-to language for now.
- 19
The New Stack·2y
The Python Linter Ruff Is a Win for Open Source — and Rust
Ruff, a high-performance Python linter written in Rust by Astral Software, has quickly become a success story in the open-source community. Launched by Charlie Marsh, Ruff aims to consolidate multiple Python development tools into one fast and adoptable solution. With millions of downloads, it offers features like performance and auto-fixes, serving as a drop-in replacement for tools such as Flake8 and isort. Future plans for Ruff include advanced type inference and cross-file analysis. Astral Software continues to expand its toolkit, recently adding the uv package installer, also written in Rust.
- 20
Bitfield Consulting·2y
Best Rust books for 2024 — Bitfield Consulting
Discover the top recommended books for aspiring Rust programmers, including 'The Rust Programming Language', 'Effective Rust', 'Rust for Rustaceans', 'Programming Rust', and 'Zero to Production in Rust'. Each book is highlighted for its unique strengths and the specific skills it helps develop, from basic syntax to advanced idiomatic programming and backend development. Consider supplementing your reading with mentoring sessions for a comprehensive learning experience.
- 21
Fermyon·2y
Exploring the MQTT Trigger for Spin: Simplifying Real-time Communication
The post explains the use of the MQTT Trigger for Spin framework, which allows real-time communication by subscribing to specific MQTT addresses. It details the steps to install and configure the MQTT Plugin and create a Spin application to handle MQTT messages. The post highlights the efficiency, scalability, and real-time capabilities of MQTT in IoT applications, providing a seamless integration for developers.
- 22
Lobsters·2yBevy 0.14
Bevy 0.14 introduces a host of new features including Virtual Geometry for efficient rendering of large meshes, Sharp Screen Space Reflections, Depth of Field effects, Per-Object Motion Blur, Volumetric Fog and Lighting, Filmic Color Grading, and PBR Anisotropy. It also includes enhancements like ECS Observers and Hooks, improved color APIs, and support for GLTF KHR_texture_transform, amongst others. This release leverages a release candidate process to ensure stability and immediate usability.
- 23
- 24
- 25
Hacker News·2y
rustgo: calling Rust from Go with near-zero overhead
This post describes an experiment to call Rust code from Go with near-zero overhead, aimed at replacing assembly code for cryptographic operations. It explains why Rust is chosen over assembly and cgo, details the linking process, and provides a working example that integrates Rust and Go. The post concludes with performance benchmarks showing that rustgo is significantly faster than cgo and almost as fast as a Go function call.