View Posts
-
Tidy Up and Ship Out, Open Source Your Internal Projects Safely. Introducing oss-porter!
You've got this awesome project you built internally. It started small, maybe lived in a giant monorepo, or perhaps its own repo that also accumulated some... internal peculiarities. Now, the time has come: you want to share it with the world! Open source it! 🎉
That initial excitement often hits a speed bump: how do you actually get just that project out without exposing the entire monorepo, confidential history, accidental secrets, or internal configurations? And maybe even trickier: once it's out, how do ...
-
Taming the Beast with RockSolid: Simplifying RocksDB with My New Rust Crate!
It's about time that I did this, all these years of cobbling together and duplicating this code and now I've formalized it into a crate!
So, if you've been following my coding adventures, you know I'm a big fan of Rust. And like many developers, I often find myself needing a fast, reliable local database. Enter RocksDB – it's powerful, battle-tested (used by giants like Meta!), and integrates nicely with Rust thanks to the
rocksdbcrate.But... here's the thing. While RocksDB is great, using it directly ofte...
-
Taming Mixed Lists: Introducing natlex_sort for Hybrid Rust Sorting
Precursor Post
Ever found yourself trying to sort a list of strings in Rust, only to realize that no single standard sorting method does exactly what you need? Maybe you have a mix of fixed-length identifiers like ULIDs alongside human-readable filenames with numbers?// Desired Sort Order? [ "id-00000000000000000000000001", // Fixed length, zero-padded "id-00000000000000000000000002", "report_2.csv", // Variable length, numbers "report_10.csv" ]Standard lexicographical sort (
slice... -
Building Bulwark: An In-Memory Indexing Adventure
Sometimes, you just need things to be fast. Like, really fast. That was the core idea simmering in my head that eventually led to "Bulwark," an internal project I've been pouring time into lately. Inspired by CQEngine (a fantastic Java library tackling similar problems), I wanted something similar but built with Rust's strengths in performance and safety.
We often rely on databases – powerful, persistent, feature-rich workhorses. But what happens when your dataset comfortably fits in your server's RAM, and ...
-
Shaving Milliseconds from RPCs: xSMB, My High Performance Internal Messaging Backbone
In the world of microservices and distributed systems, how our internal components talk to each other is a huge factor in overall performance. We often rely on standards like REST over HTTP or tools like gRPC. These are fantastic for many things, especially external APIs and broad interoperability. But what happens when you're deep inside your own infrastructure, connecting services you control, and every bit of latency or overhead feels like friction you wish wasn't there?This is a common challenge, and i...
-
I Built A Distributed Real-Time Monitoring and Alerting Platform in 2017
I used to work on Datacenter Monitoring circa 2015. I automated the heck out of my job. One of the last projects I delivered there was a Distributed Real Time Monitoring and Alerting Platform, written in Java. I will build it once again with the help of AI in Rust.
It was an incredibly complex system with 5 different roles, technically 4 layers. I spent around 6 months building the system and was incredibly proud of it. It worked like a charm, very fast, high performance, exceeded my wildest dreams, when ...
-
Rust Crates, Error Handling: Thiserror vs Anyhow
I wondered what's the difference and when to use them
Thiserror and Anyhow are both extremely popular and useful error handling crates in Rust, but they serve fundamentally different purposes, primarily based on whether you are writing a library or an application (binary).
Breaking it Down
thiserror- For Defining Specific Error Types (Libraries)- Purpose: To easily create custom, specific error types (usually enums) for your library. It helps you define what errors your library can produce.
- Mechanism: Uses ...
-
C5Store for Rust
C5Store for Rust
C5Store is a Rust library providing a unified store for configuration and secrets. It aims to be a single point of access for your application's configuration needs, consolidating values from various sources (like YAML files), handling secrets securely via built-in decryption, and allowing dynamic loading through providers.
The core idea is to simplify configuration management in complex applications by offering a hierarchical, type-aware, and extensible configuration layer.
Key Features
... -
I Created A Database that uses CASPaxos as the Consensus Layer but exposes Redis
Uh yeah, so it took <1 day to do it. The second day, I added recovery. A node can go offline, as long as there is a quorum the cluster will chug along, when it comes back online then it can recover from its peers.
A lot of what I did was above my level of coding, clearly I used alchemy to do this. It's not a joke. I implemented all of Redis' data structures and can send commands to do exactly what Redis does to this database. The recovery mechanism is just one of those things that made sense.
I have more feat...
-
Project Star-Spangled Phoenix #3: Development Video
Roast of The Republic is the official name of this marvelous creation.
Information
Roast of the Republic: Power Play is a casual online multiplayer card game focusing on strategic American political dominance. Players deploy cards on a shared board establishing territorial control, tactical upgrades and disruptive actions all in a bid to obtain the most influence.
Key features
- Wacky caricatures of historical political figures from US history
- Uniquely Patriotic American Music
- Capture the board with Contribut...