Blog
Notes on building software: Go backends, web architecture, audio DSP, and how things work under the hood.
-
Building a Simple Recommendation System in Python Using Cosine Similarity
Recommendation systems are the backbone of modern web platforms. You've definitely heard people refer to "the algorithm" of platforms like Youtube, X/Twitter, Instagram, Amazon, Netflix, etc. But how do they work? How can you build one?
-
Breaking ECDLP with a Quantum Computer: Resource Estimates from Google's Latest Research
Encryption keeps the entire internet safe for things like online banking, social media, etc. Cryptocurrencies allow conducting financial transactions online, all thanks to that same encryption, which is virtually impossible to crack. Maybe not for long.
-
Using Database Vector Search to get Better Results from LLMs and RAG than with Traditional Search
Vector databases allow searching structured content with fuzzy queries instead of needing exact matches or even similar strings. This works great for Retrieval Augmented Generation because LLMs can use natural language to search databases.
-
Copying Strings In C
In computer memory, strings are actually just arrays of characters. This means copying them isn't as simple as assigning the contents of one variable to another. All elements of the char array need to be copied into another block of memory.
-
Using Bitwise Operations to Create a Byte Array Representation of a Black and White Image
A black and white bitmap image needs a full byte to represent a single pixel. I wrote a simple C program that compacts 8 pixels down into a single byte using bitwise operations. Displaying the data as strings makes some cool simplistic ASCII art.
→Newsletter
Subscribe for Updates!
Enter your email address to hear about new posts and projects. No spam, and I'll never share your email.
Thanks for subscribing!