As part of my work at Anthropic, I open sourced two Rust crates that fill a gap in the RPC ecosystem: buffa, a pure-Rust Protocol Buffers implementation with first-class editions support and zero-copy message views, and connect-rust, a Towe...
My daily laptop has 8GB of RAM. Not a lot by modern standards, but enough — until I open DBeaver. DBeaver at idle: ~400MB. Add a browser, a terminal, maybe a local Docker container running Postgres, and half my RAM is gone before I've writt...
I wanted to participate in the current AI era, but not just as a user of tools. I wanted to build something. And I thought — what better way to see how Rust as a language can evolve in this space than to build a library for it? That's how m...
It started with a freelance project. I was writing a backend service in Rust and needed to validate international phone numbers. Like any Rust developer, I headed to crates.io and pulled the most popular library for the job. Then, I opened...
Smart contracts have long been the primary method for developing applications in Web3. However, the underlying technology hasn't changed much over the years. The EVM (Ethereum Virtual Machine) has long been the default option for smart cont...
Rust for Network Programming: Building Robust and Blazing-Fast Network Apps Ever felt like your network applications are a bit… sluggish? Or perhaps you’ve wrestled with the terrifying world of memory safety bugs that seem to creep out of n...
This article is heavily inspired by an excellent Easy guide to JSON input validation in Rust web services article. It shows how to build a RESTful service using Warp and it's been very helpful. This article will explain how to automate requ...
The original version of this post can be found on my developer blog at https://seanchen1991.github.io/posts/lru-cache/. Note: This post assumes familiarity with traits in Rust. If you aren’t familiar with them, I’d recommend reading more ab...
This article is an experiment with Rust with its subsequent compilation in WASM. It was interesting to try these technologies on something more difficult than calculating factorial, so the choice fell on the well-known 2048 game. Game The o...
Continuing my journey with Rust, I recently completed a suggested exercise from "The Book": Using a hash map and vectors, create a text interface to allow a user to add employee names to a department in a company. For example, “Add Sally to...
Are you learning Rust and looking for ways to get some hands-on practice with concrete examples? A good approach might be to try and integrate Rust with external systems. Why not try to use it with Redis? It is a powerful, versatile databas...
Cover image created by me using Ferris the Crab, the Rust logo, and the FastAPI logo. After investigating a few more options, I've finally decided on a framework to use. Here's how I got there, step by step. rweb As planned, I started with...
In this tutorial, I will be teaching you how to fetch a Web API asynchronously in Rust. This tutorial is for developers who know the basics of Rust, have Rust installed, and want to learn about asynchronous programming in Rust. If you don't...
[Photo by Kelly Sikkema on Unsplash, modified (cropped)] This article follows up on a discussion. Please share your experience there, I'd gladly hear about it! Introduction Some months ago I was surveying a little the state of GUI in Rust....
It was great fun solving last year's Advent of Code using Rust. The problems were all approachable and got me thinking about new algorithms to solve them. A small part of the resulting code ended up in a "utils" crate to be accessible from...
💎 DEV Diamond Sponsors Thank you to our Diamond Sponsors for supporting the DEV Community Google AI is the official AI Model and Platform Partner of DEV Neon is the official database partner of DEV Algolia is the official search partner of...
I suppose the majority of beginner programmers aspire to create something amazing and popular, and perhaps, become famous and wealthy at some point. However, when they begin, the "black screen" of a terminal doesn't seem like the next Faceb...
A blog post titled, "Diving into Go by Building a CLI Application" has been making it's rounds of the internet. It uses a small XKCD downloader as the subject. I thought was small and self contained enough, that it'd be interesting to see t...
In this article, I would like to share some of my thoughts about a problem I encountered, my process of solving it, and possibly start a discussion about the validity of the proposed approach. I certainly would like to hear any comments and...
Scott Posted on Jan 7, 2021 • Edited on Jan 8, 2021 Hello! I am learning Yew for writing SPA's in Rust! I found some of the concepts difficult to understand at first and decided to take notes (simplifying the concepts for my stupid brain).....