Projects
Huffman Coding Compression
This is an implementation of compression and decompression using Huffman codes. I really like how Go’s file reading/writing APIs feel, and I think that I’m finally getting a natural feel of how to take advantage of packages, receivers, and interfaces in Go. Read a bit more about this project in my blog post.
Stock Data Generator
This was inspired by an interview question from a friend’s team: given a stream of stock data, design a system to query the max price in a recent time range. I thought it would be fun to build a simple version of this and visualize it. The Go backend simulates stock data with geometric brownian motion and serves it to the frontend through SSE. The frontend uses a sliding-window max algorithm to track the min and max prices in real time, with ChartGPU for visualization.
Mock Log System
I started this project mainly as a way to get more familiar with Kafka, but it also ended up being an exploration into HTTP and database best practices. The project is a simplified version of a log-tracking system like Humio. Logs are produced to a Kafka topic, distributed across multiple consumers, and are stored in TimescaleDB. A frontend then provides a simple interface for querying logs and viewing summary statistics, through a raw C++ HTTP server.
Monkey Interpreter
I wrote this project following Thorsten Ball’s book Writing an Interpreter in Go. It’s a interpreter for a simple language called Monkey, but includes all of the components of an interpreter, including lexing, parsing, and evaluation.