Best of RustJune 2024

  1. 1
    Article
    Avatar of medium_jsMedium·2y

    I spent 18 months rebuilding my algorithmic trading platform in Rust. I’m filled with regret.

    An experienced developer reflects on his 18-month journey rebuilding an algorithmic trading platform in Rust, expressing profound disappointment. Despite Rust's reputation for speed and safety, the author found its syntax and error handling to be horrendous, leading to significant frustration and regret. Additionally, the Rust community's unhelpful attitude compounded the difficulties. Ultimately, while Rust has its merits, the author suggests that languages like Go may offer a better balance of speed and ease of development.

  2. 2
    Article
    Avatar of lnLaravel News·2y

    SQLite Studio is a SQLite Database Explorer

    SQLite Studio is a lightweight, single-command database explorer for SQLite databases, which also supports connections to local SQLite databases, remote libSQL Servers, and PostgreSQL Servers. It features an intuitive interface with an overview of metadata, infinite scroll for rows view, and a custom query page. The backend is built with Rust while the frontend leverages TypeScript, React, Tailwind CSS, and Vite. SQLite Studio is open-source and available on GitHub.

  3. 3
    Article
    Avatar of fermyonFermyon·2y

    Announcing Spin 2.6

    Spin 2.6 introduces several enhancements, including experimentation with WebAssembly components, WASI 0.2.0, and registries. The update allows building WASI-HTTP components using the Rust Spin SDK without a Spin application’s manifest. Additionally, the release supports referencing components from OCI-compliant registries and introduces conformance tests for Spin applications across different runtime implementations. The update includes a breaking change related to Wasmtime 21 and plans to deprecate older Wasm modules with memory safety bugs. Contributors and community members are thanked for their efforts.

  4. 4
    Article
    Avatar of hnHacker News·2y

    A highly customizable changelog generator ⛰️

    git-cliff offers a highly customizable changelog generator by using regex-powered parsers and a configuration file to match desired formats. It supports generating changelog files for Git repositories following the conventional commits specification. Additionally, git-cliff can be integrated with Rust, Python, and Node.js projects both as a command-line tool and as a library for Rust projects.

  5. 5
    Article
    Avatar of lobstersLobsters·2y

    rust is not about memory safety

    The main focus of Rust is program correctness, not just memory safety. Segfaults are not a skill issue. Rust ensures program correctness by statically assuring that references are valid and eliminating the possibility of bugs at compile time.

  6. 6
    Article
    Avatar of omgubomg! ubuntu!·2y

    Linux System Monitor App ‘Mission Center’ is Now Even More Useful

    A new version of Mission Center, a system monitor for Linux, has been released. It includes new features such as a Services page, smoother graphs, and support for hot-plugging disks and network devices.

  7. 7
    Article
    Avatar of rustdevsRust Developers·2y

    Best Rust-based project you know?

    Inquiry about the best project developed using Rust as a programming language.

  8. 8
    Article
    Avatar of gcgitconnected·2y

    Learning Rust: Bare Threading

    This post explores threading and concurrency in Rust, focusing on the use of raw pipes in Linux to schedule work on a CPU and transfer closures between threads. The author provides examples of code that demonstrate how to create concurrency and use pipes, as well as an explanation of the sys_pipe2 system call.

  9. 9
    Article
    Avatar of hnHacker News·2y

    Homegrown rendering with Rust

    Embark Studios is developing a creative platform using Rust to enable user-generated content with advanced 3D rendering. Initially, they focused on gameplay and other essential features before diving into rendering, resulting in the creation of two renderers with modern features like ray tracing and real-time global illumination. They introduced an experimental renderer, 'kajiya,' which is open-sourced but still a work in progress. For production, they have a more robust renderer built on Vulkan API, which extends 'kajiya' features to support broader device compatibility and gameplay functionalities. The Rust-based `rust-gpu` project allows seamless GPU programming, highlighting the language's potential for future graphics and game development.

  10. 10
    Article
    Avatar of rusttrendsRust Trends·2y

    Stay Ahead in Rust: Best Channels, Podcasts, and Skill-Building Tools

    Discover the top YouTube channels and podcasts for learning Rust, learn how to optimize images using Rust, and find valuable exercises to improve your Rust programming skills.

  11. 11
    Article
    Avatar of hnHacker News·2y

    mattrighetti/envelope: A modern environment variables cli tool backed by SQLite

    envelope is a modern command-line tool for managing environment variables, utilizing an SQLite database to track different configurations. The tool supports various commands like adding, deleting, exporting, and importing environment variables. It is written in Rust, and offers features such as soft deletion and pretty format representation of .env files.

  12. 12
    Article
    Avatar of itnextITNEXT·2y

    Networking and Sockets: Syn and Accept queue

    The post delves into the intricacies of TCP connection management, focusing on the SYN and accept queues during the listen syscall. It explains how these queues handle incoming connections, the implications of their size limits, and how different operating systems manage these settings. Practical examples in Rust are provided to demonstrate how to configure and test the backlog parameters, and system-level commands are used to inspect queue behaviors. Understanding these concepts is essential for optimizing server performance and handling high traffic scenarios.

  13. 13
    Article
    Avatar of rustdevsRust Developers·2y

    Rust free resources

    A post sharing the best resources for learning Rust, with the possibility of collecting them in a GitHub repository.

  14. 14
    Article
    Avatar of rustdevsRust Developers·2y

    Rust + OpenAI API ?

    Learn about writing OpenAI API code and other AI integration code using Rust.

  15. 15
    Article
    Avatar of hnHacker News·2y

    I Open-Sourced KeyEcho: Fast-Responsive Keyboard Sounds with Every Keystroke Using Tauri

    KeyEcho is an open-source application that listens to your keyboard typing and plays pleasant sounds. It is built with Tauri and offers excellent performance compared to other similar applications like Mechvibes and Klack.

  16. 16
    Article
    Avatar of bitfieldconsultingBitfield Consulting·2y

    Rust error handling: Option & Result — Bitfield Consulting

    This post discusses Rust's error handling using Option and Result. It explains how to handle situations where there is no answer or when there are possible errors. The post also highlights the benefits of using dedicated types for error handling in Rust.

  17. 17
    Article
    Avatar of hnHacker News·2y

    louis030195/screen-pipe: Turn your screen into actions (using LLMs). Inspired by adept.ai, rewind.ai, Apple Shortcut. Rust + WASM.

    ScreenPipe is a tool that streams data from your screen and leverages Large Language Models (LLMs) to process text and images. Inspired by adept.ai, rewind.ai, and Apple Shortcut, the project uses Rust and WASM technologies. The current prototype can capture your screen and extract text using OCR, which can then be processed for tasks such as filling a CRM based on sales activities. Contributions are welcome, and the project is licensed under MIT.

  18. 18
    Video
    Avatar of bigboxswebigboxSWE·2y

    Toxic Programming Fans

    The post criticizes the toxic culture among fanboys of various programming tools, including TypeScript, Rust, and Neovim. It highlights the disruptive behavior of avid supporters who often undermine the benefits of multiple tools by being overly dogmatic. The writer expresses frustration with these communities and promotes brilliant.org as a helpful learning platform.

  19. 19
    Video
    Avatar of noboilerplateNo Boilerplate·2y

    Compiler-Driven Development in Rust

    Learn about compiler-driven development in Rust, how it works, and the benefits it brings. Discover how the Rust type system enables modeling and runtime behavior guarantees. Explore the use of the type State pattern and the power of the Rust compiler in ensuring code correctness.

  20. 20
    Article
    Avatar of medium_jsMedium·2y

    Powering Angular with Rust (Wasm)

    This post explains how to set up and start using Rust in an Angular application. It discusses the benefits of using WebAssembly for performance-intensive tasks and provides a step-by-step guide to creating a Rust library for an Angular app.

  21. 21
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Build and Deploy a Smart Contract With Rust and the Gear Protocol

    Learn how to build and deploy a smart contract using Rust and the Gear Protocol. Explore the role of Vara Network and Gear Protocol in making blockchain technology more user-friendly and secure for building and using decentralized apps. Understand the concept of message-based communication in Gear Protocol.

  22. 22
    Article
    Avatar of lobstersLobsters·2y

    Why I am not yet ready to switch to Zig from Rust

    The author loves programming in C and has spent a lot of time programming with it. They appreciate that C feels right and the connection it has with machine code. However, C is an unsafe language and has some limitations. The author was drawn to Rust because of its memory safety features, although they initially struggled with the borrow checker. They eventually found Rust productive to work with. The author also explored Zig, which feels like C but at a lower level than Rust. However, they found some issues with Zig, such as the use of comptime, encountering segmentation faults, and memory leaks. Additionally, there are currently no books available for learning Zig, and the ecosystem and industry investment are not as developed as they are for Rust.

  23. 23
    Article
    Avatar of rustRust·2y

    Types Team Update and Roadmap

    The Types Team is focused on improving Rust's type system, aiming for a sound, consistent, extensible, and fast implementation. Over the past year, they have made over 50 user-facing changes, welcomed new team members, and rotated leadership roles. Key efforts include working on the next-generation trait solver, stabilizing async functions in traits, addressing soundness issues, and planning future developments, including the use of Polonius and formalizing parts of the type system.

  24. 24
    Article
    Avatar of lobstersLobsters·2y

    virchau13/proxy-proxy-proxyer: A client and server for getting around restrictive proxies by going directly through them

    This post introduces a unique tool called 'proxy-proxy-proxyer' designed to bypass restrictive network proxies by routing HTTP requests through multiple layers of proxies. The author details their experience in developing the tool to overcome proxy restrictions at a coworking space, exploring multiple approaches before ultimately building a custom solution in Node.js and later refining it in Rust. Caution is advised due to its experimental nature and lack of proper security features.

  25. 25
    Article
    Avatar of gopenaiGoPenAI·2y

    Introducing Shelldon: A New Rust CLI Tool with GPT Features

    Shelldon is a new command-line tool written in Rust that integrates GPT features for executing shell commands, managing prompts, and interacting with multiple LLMs. It supports various AI providers like OpenAI, Anthropic, and Gemini, allowing users to choose their preferred model. Users can easily install Shelldon via Homebrew or build it from source. The tool simplifies tasks like analyzing Docker logs, troubleshooting Kubernetes, and generating scripts or configuration files, with custom prompt management for enhanced flexibility.