In this article, I want to share some of my experience from implementing a small discrete-event simulation library. The code is available on github, and the (limited at the moment) documentation on docs.rs. Note that this implementation is...
The other day I wanted to grab some information about my disk performance in real-time. I saw the really useful command iostat and got curious. How does this tool can know how many megabytes per seconds my disks is using, etc. So I dug into...
[ Photo by Adetunji Paul on Unsplash ] In this installment we will create a minimalist CRUD API server using Rocket. Actually, we will just sketch one up, and prepare the foundations for more to come. The code for this tutorial can be found...
Porting patterns from Object Oriented concepts in Rust do not always work, but there are certain cases they not only work but sometimes they are easier to follow when compared with the original OOP implementation. Here I am going to demonst...
This article was first published on techpilot.dev TL;DR: There's an example repo here for those who want to skip the story mode Rust piqued my interest when I found out it consistently ranked first in the StackOverflow's annual developer su...
At Charlie foxtrot we aim to stay relevant and keep up with new and exciting tech. So how do we do that? We experiment! This time we wanted to capitalize on our in-house competence in Flutter and Rust. Our Flutter expert, Jonathan, had read...
HTTP mocking libraries allow you to simulate HTTP responses so you can easier test code that depends on third-party APIs. This article shows how you can use httpmock to do this in Rust. Why HTTP-Mocking? At some point, every developer had t...
Alright! We have the core of the gopher client done, now to add some extras. The big thing was that as I traveled around the gopherholes, there was no way for me keep track of where I was or to save someone's gopherhole so I could come back...
Alright! After a few days of playing with the Gopher protocol, I have the core of it working and added a whole bunch of things that I wanted as I was going around gopherholes. Gopherholes are people's gopher directories/servers, maybe First...
AWS Lambda extensions were recently announced. An extension is a long running process, executed alongside your Lambda function, helping with use cases like: capturing telemetry; doing work outside the invocation path, like refreshing config...
Photo by Jean-Philippe Delberghe on Unsplash, modified(cropped) In this series we are going to explore how to make a Rust server using Rocket The code for this tutorial can be found in this repository: github.com/davidedelpapa/rocket-tut gi...
💎 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 don't think it's possible to publish a new framework without demonstrating the classic todo app with it. Definitely frowned upon. Maybe even illegal (check your local laws). Fermenting AssemblyLift to the point that it could run the "hell...
TL;DR: The ? operator returns early from a function if the operation it was called on was not successful. It returns the error. Ever seen a line of Rust code with a rising inflection, with an inquisitive tone? That line is questioning its e...
I’ve written extensively about the Either datatype this year. It’s an excellent way to model errors without resorting to exceptions. Kotlin has been thus far my go-to language to show this concept. However, I’ve been playing a lot with Rust...
Hi all, you can create a Rust-Client for SirixDB and make a huge contribution during Hacktoberfest. We can split the task into many smaller tasks, of course. We need your help, bringing the project forward :-) It's an evolutionary, accumula...
Recently I came across lalrpop, a lexer-parser-generator in Rust. I had previously used flex-bison pair in C for the same, and after taking a look at lalrpop, I felt that it can be of same use in Rust. For a starter project I made a simple...
A concurrent program is one which multitasks (or appears to be), that is two or more tasks run in overlapping time spans. These tasks are executed by threads, the smallest executable unit of a process. Under the hood, is not exactly multita...
I began looking into WebAssembly as a means to process pixels from a video feed. That experience was very fun and rewarding. I wanted another Rust and WebAssembly challenge, so I built Gobblet, a two player game played on a 4x4 board with 1...
If you've been following this series, the post about Ownership probably gave you the impression that Rust is a no-brainer and C++ should never be used in production. Smart pointers may change your mind. In modern terms, Smart pointers are p...