Cetra's Thoughts

A tale of two lengths
Adventures in memory profiling a rust-based cache
rust 2025-05-11
They say there are 2 hard problems in computer science, and I've hit all 3 of them.... This is a blog post about a memory problem we were hitting in production with a service written in rust, and the tools used to resolve it. The Problem Object Storage, …
Creating your own custom derive macro
Harnessing the power of `syn` and `quote` to create custom rust macros
rust divedb 2023-07-23
One of the things I tackled early on with when creating DiveDB was trying to import a lot of metrics from dive logs. At regular intervals, normally every 10 seconds, a dive computer will record metrics about the dive, such as depth, tank pressure, water t…
Synchronizing state with Websockets and JSON Patch
A simple and extendable, almost realtime, state-sharing method for frontend and backend
rust 2023-01-29
At formlogic, we are using rust for a number of components within our tech stack, including: internal and external web applications, coordinating and logging machining workflows, parsing an industrial domain specific language (G-Code), and more. One of th…
Publishing Rust types to a TypeScript frontend
Common libraries and projects used to share types from a Rust web backend to a TypeScript frontend
rust typescript 2022-09-13
When building in a strongly-typed language such as rust it's a shame to have to throw this strictness away, especially when dealing with the wild west of frontend stacks. The bigger the project is, the more you want to keep things cohesive. This cohesion …
Implementing a Job queue with SQLx and Postgres
An example of async postgres in rust
rust tmq sqlx 2020-06-26
SQLx is a new async SQL Toolkit for rust that is closer to standard SQL than a more opinionated ORM like Diesel. I wanted to give it a bit of a test run and see how easy it would be to convert usage from tokio-postgres. So as the next saga in the jobq se…
Page 1 of 4 Next