Best of RustAugust 2024

  1. 1
    Article
    Avatar of communityCommunity Picks·2y

    Encore.ts — 9x faster than Express.js & 3x faster than Bun + Zod

    Encore.ts is an Open Source backend framework for TypeScript, boasting performance numbers 9x faster than Express.js and 3x faster than Bun with Zod. Its architecture leverages a multi-threaded event loop using Rust, and precomputes request schemas to optimize performance. With infrastructure integrations built in Rust, Encore.ts aims to off-load non-business logic from the JavaScript event loop, making backend applications highly optimized for speed and efficiency while maintaining compatibility with Node.js.

  2. 2
    Article
    Avatar of hnHacker News·2y

    flxzt/rnote: Sketch and take handwritten notes.

    Rnote is an open-source, vector-based drawing app designed for sketching, handwritten notes, and document annotation. It features an adaptive UI for stylus input, pressure-sensitive stroke styles, shape creation, content manipulation tools, document import/export in various formats, and customizable backgrounds. Written in Rust and GTK4, it supports multiple platforms with relevant installation instructions and troubleshooting tips. The app is under active development with an unstable file format, prompting occasional downgrades for compatibility.

  3. 3
    Article
    Avatar of rustdevsRust Developers·2y

    Rust is taking over

    Rspack 1.0, a Rust-based JavaScript bundler, is 10 times faster than Webpack and is compatible with most Webpack APIs. It is utilized by major companies such as Microsoft, Amazon, and TikTok, boasting 100k npm downloads per week and usage in 1000 ByteDance apps. Improvements include enhanced performance, compatibility, bundle handling, APIs, and TypeScript support.

  4. 4
    Article
    Avatar of communityCommunity Picks·2y

    Why you should use Rust on the backend

    Rust is becoming an increasingly popular choice for backend web development due to its low memory footprint, efficient concurrency handling, and strong memory safety guarantees. The article provides an example of a Rust web service using Axum and discusses how Rust optimizes for both performance and safety. Major companies like Amazon, Google, and Microsoft are adopting Rust, and its advantages are particularly significant for reducing costs and enhancing security. Additionally, DARPA is transitioning its C codebase to Rust, highlighting the language's growing impact.

  5. 5
    Article
    Avatar of devtoDEV·2y

    Soroban by Example

    Soroban by Example is a comprehensive resource aimed at helping developers transition to the Soroban smart contract language using a project-based approach. This resource focuses on making familiar concepts from other languages accessible, providing an interactive documentation explorer, and using AI to generate customized contract variants. Despite initial challenges, the team developed several supportive tools, including a custom GPT model and an integrated playground. Future plans include a monorepo, multilingual support, and potential consultation services within the Soroban ecosystem.

  6. 6
    Article
    Avatar of shuttle_devShuttle·2y

    What is your struggle when learning Rust?

    Francesco, a content creator for Rust, invites readers to share their struggles while learning the language. He aims to address these problems and encourages readers to introduce themselves in the comments.

  7. 7
    Video
    Avatar of youtubeYouTube·2y

    Where is Rust being used?

    Rust is increasingly being adopted across various industries due to its performance, memory safety, and robust type system. Key industries embracing Rust are cloud infrastructure (with companies like AWS, Google, and Microsoft using it for critical projects), web3 (platforms like Solana and Polkadot), systems and low-level programming (such as parts of Firefox and Windows), cybersecurity, and finance. Emerging areas of adoption include aerospace, robotics, and gaming. Knowing Rust fundamentals, building real-world projects, and networking are crucial for landing Rust roles.

  8. 8
    Article
    Avatar of medium_jsMedium·2y

    I’m Tired of Fixing Customers’ AI Generated Code

    The author shares their experiences and frustrations with handling customer support for their cryptocurrency trading and data gathering tools. Specifically, they describe the challenges posed by customers using AI-generated code, which often includes errors that the customers cannot fix themselves. The author frequently has to correct these issues, which leads to a time-consuming and frustrating support process, especially when customers expect extensive free support for complex projects.

  9. 9
    Article
    Avatar of communityCommunity Picks·2y

    Rspack

    Rspack optimizes web development by splitting code into smaller bundles, removing unused code with tree shaking, and offering compatibility with webpack plugins. It supports module federation for code sharing, manages static assets, and is compatible with webpack loaders. Features include hot module replacement, a high-performance dev server, parallel builds, faster transpilation through SWC, and advanced CSS optimizations with Lightning CSS. The JavaScript API allows customization of build processes.

  10. 10
    Article
    Avatar of logrocketLogRocket·2y

    Building cross-platform GUI apps in Rust using egui

    Explore how to build a cross-platform GUI application in Rust using the egui library and eframe framework. The post explains the immediate mode GUI concept, compares it with retained mode, and provides a step-by-step guide to creating a pet management app. It includes instructions for setting up SQLite for data storage and fetching random pet images using APIs. Event-driven architecture is used to handle asynchronous data operations, and the post discusses the benefits and challenges of this approach.

  11. 11
    Article
    Avatar of asayerasayer·2y

    Yew: The Top Rust Front End Framework for 2024

    Yew is a prominent Rust front-end framework in 2024, prioritizing speed and reliability through WebAssembly. It features a component-based architecture and seamless interoperability with JavaScript, making it a viable alternative to traditional JavaScript frameworks. The post guides building a to-do list app with Yew, delving into setup, integration with backend APIs, and performance benefits. While Yew offers substantial advantages in type safety and performance, it does require a steep learning curve and has a smaller ecosystem compared to established JavaScript frameworks.

  12. 12
    Article
    Avatar of lobstersLobsters·2y

    Writing APIs in Rust

    Tyler Neely discusses the importance of minimizing costs when integrating new Rust libraries, emphasizing the benefits for both users and authors. Practical advice such as using 'cargo tree' to manage dependencies is highlighted to improve overall experience.

  13. 13
    Article
    Avatar of socketdevSocket·2y

    uv: Python's New High-Speed Package Manager Promises to Simplify Tooling

    Astral has introduced uv, a new package manager for Python written in Rust that promises speeds 10-100x faster than existing tools like pip. It simplifies project and tool management, Python installation, and script execution. The tool is inspired by Rust's Cargo and aims to reduce complexity in Python development. The latest release has garnered significant community enthusiasm for its potential to streamline workflows and replace traditional tools.

  14. 14
    Article
    Avatar of hnHacker News·2y

    Rust GUI library via Flutter, done simple

    Combining Rust's powerful programming capabilities with Flutter's popular and mature cross-platform development features enables efficient GUI creation. Using the flutter_rust_bridge, developers can seamlessly integrate Rust's state and logic with Flutter's flexible and responsive UI elements. This approach leverages Flutter’s extensive ecosystem and hot-reload feature for rapid UI development, while also acknowledging certain compromises such as the necessity for boilerplate code and the split between Rust logic and Flutter UI.

  15. 15
    Article
    Avatar of rustRust·2y

    Rust Project goals for 2024

    The Rust project has set 26 goals for the latter half of 2024, including three flagship goals: finalizing preparations for the Rust 2024 edition, improving the Async Rust experience, and resolving major blockers for Linux kernel support in stable Rust. These efforts align with Rust's mission to empower the development of reliable and efficient software. The roadmap also lists additional goals, such as stabilizing cargo-script and improving Rust’s borrow checker. Progress will be tracked through blog posts, repository milestones, and other channels.

  16. 16
    Article
    Avatar of bytesdevBytes by ui.dev·2y

    The final boss of build tools

    Vite has rapidly become a key foundation for higher-level innovations in the web ecosystem, with many frameworks adopting it. The Vite team plans to create a unified toolchain for handling JavaScript and TypeScript from source to production. Meanwhile, Neon offers a managed Postgres service designed to simplify database management tasks. Additionally, recent tech updates include new JavaScript tools, TypeScript 5.6 beta features, and insights from the Stack Overflow 2024 Developer Survey.

  17. 17
    Article
    Avatar of lobstersLobsters·2y

    uv: Unified Python packaging

    uv is a high-performance Python package manager written in Rust. Initially released as a pip replacement, uv now offers comprehensive project management, tool installation, Python bootstrapping, and script execution. It creates cross-platform lockfiles, manages dependencies, and supports workspaces, making Python development simpler and faster. The tool is particularly optimized for managing large projects and ensuring consistent environments across different platforms.

  18. 18
    Article
    Avatar of hnHacker News·2y

    dani-garcia/vaultwarden: Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs

    Vaultwarden is an unofficial Bitwarden-compatible server written in Rust, ideal for self-hosted deployments where the official service might be too resource-heavy. The project includes full Bitwarden API support, features like organizations, attachments, and U2F, and requires HTTPS for secure use of Web Crypto APIs in modern browsers. Users can configure the server with Docker and should report issues directly through designated community channels.

  19. 19
    Article
    Avatar of p99confP99 Conf·2y

    Switching From C++ to Rust

    Nikita Lapkov shares his experience transitioning from writing C++ to Rust. He highlights the benefits of Rust's memory safety, unified build system, concise and helpful compiler error messages, and powerful type system with features like generics and enums. Compared to C++, Rust offers a more pleasant and efficient developer experience.

  20. 20
    Video
    Avatar of letsgetrustyLet's Get Rusty·2y

    Ultimate Neovim setup for Rust development

    Neovim is a modern, terminal-based editor and a powerful fork of Vim, offering a rich plugin ecosystem and highly configurable setup. This guide outlines six steps to create the ultimate setup for Rust development, covering installation of Rust and Neovim, base configurations, and necessary plugins for code completion, debugging, and auto-formatting. The setup also includes tips for enhancing productivity using plugins like Harpoon and GitHub Copilot.

  21. 21
    Article
    Avatar of lobstersLobsters·2y

    Don't write Rust like it's Java

    The post discusses the author's journey of adapting from Java to Rust, highlighting key differences and challenges. The author emphasizes Rust's memory safety and type correctness and contrasts Rust's traits with Java's interfaces. The author urges not to force Rust into an object-oriented paradigm and to embrace Rust's unique features and idioms for a more fulfilling development experience.

  22. 22
    Article
    Avatar of lobstersLobsters·2y

    lovasoa/SQLpage: SQL-only webapp builder, empowering data analysts to build websites and applications quickly

    SQLPage is an SQL-only webapp builder designed for data scientists, analysts, and business intelligence teams. It allows users to create data-centric applications using only SQL queries, bypassing traditional web programming languages. SQLPage supports different databases such as SQLite, PostgreSQL, MySQL, and Microsoft SQL Server. It is written in Rust and can be deployed using binary files or Docker images. Users can quickly generate webpages displaying data as lists, grids, and charts. It also supports advanced features like custom components, serverless deployment, and HTTP/2 and HTTPS.

  23. 23
    Article
    Avatar of lobstersLobsters·2y

    Why am I writing a Rust compiler in C?

    The author is working on a project called Dozer, which involves writing a Rust compiler in pure C to address bootstrapping issues with Rust. They explain the significance of bootstrapping and the complexities involved in the process, tracing the origins of compilers back to their earliest forms. The goal is to make Rust more accessible earlier in the bootstrapping process without relying on C++.

  24. 24
    Video
    Avatar of davidbombalDavid Bombal·2y

    Reverse Engineering 101 tutorial with the amazing Stephen Sims!

  25. 25
    Article
    Avatar of hnHacker News·2y

    Rust Atomics and Locks by Mara Bos

    The Rust programming language excels in concurrency but implementing concurrent data structures can be challenging. Mara Bos, team lead of the Rust library team, provides a practical guide to understanding low-level concurrency. You will learn about atomics, memory ordering, mutexes, condition variables, and their implementation using operating system APIs. The book also covers the nuances of atomic operations on different processors and helps you build your own locking and synchronization primitives.