Moore Systems

RSS Feed

Rust State Machines

Thursday, July 10, 2025 at UTC
The typestate pattern in Rust is an interesting way of representing state machine statically. But it has drawbacks for dynamic and nested state machine uses. A method with tagged transitions is described to resolve these issues and ensure state machines are only used properly.

Lexical Vectors

Monday, July 29, 2024 at UTC
It's not obvious that lexical ordering for any data structure can be preserved in its serialized format. This article presents a serializtion format which allows lexical ordering to compose and be preserved.

Solving the Cubic Equation

Monday, December 25, 2023 at UTC
I had trouble using online sources to try to find all 3 roots to cubic equations so I made a very detailed breakdown of how to actually calculate them. And to do so I made some fun interactive graphs to help me determine which formulae were valid.

English as an API

Friday, August 18, 2023 at UTC
This is a demonstration of an offline Large Language Model (LLM) being used to turn natural language into a method to control a simple fictional API. Methods to make the unreliable output of an LLM more reliable in a system context.

Air Quality Monitoring with RocksDB

Wednesday, August 2, 2023 at UTC
This is a detailed discussion of an indoor air-monitoring setup using a Raspberry Pi to log air quality and carbon dioxide in a RocksDB key-value store database. Also included is a discussion of data structure limitations with SQL and how to format data for use in RocksDB for typical database operations.