My Blogs#
Welcome to my blog section, where I share in-depth articles, technical insights, and perspectives on various topics in technology, software engineering, AI, and innovation. These are explorations of ideas, technical deep-dives, and experiences from my journey in the tech world.
Go 1.25 is Here! Go 1.25 was released on August 12, 2025, bringing some of the most exciting features we’ve seen in recent Go versions. After working with these features extensively, I can confidently say this release is a game-changer for concurrent programming, testing, and performance optimization.
Let’s dive into the major features with practical, real-world examples you can use right away.
1. testing/synctest: Revolutionary Concurrent Testing The new testing/synctest package finally solves one of Go’s biggest testing challenges: testing concurrent code with time-dependent behavior. Previously, testing concurrent code meant dealing with time.Sleep() calls and flaky tests. Not anymore.
...
The Token Ring Problem The Token Ring is a classic distributed mutual exclusion algorithm where nodes are arranged in a logical ring, and a single token circulates. Only the node holding the token can access the shared resource. It’s simple, fair, and starvation-free.
The Scenario Nodes arranged in a ring:
N nodes form a logical ring A single token passes around the ring Only token holder can enter critical section After using resource, pass token to next node Properties: Fair (FIFO order), no starvation, deadlock-free The challenge:
...
Sauce Series Current: Module 4: Africa & Middle East Module 3: Americas All Posts Module 5: Modern Fusion Africa and the Middle East don’t separate sauces from food.
...
The River Crossing Problem The River Crossing Problem, inspired by Allen Downey’s “The Little Book of Semaphores,” demonstrates constrained group formation and safety-critical synchronization. It models scenarios where groups must form under specific rules before proceeding - common in distributed systems and resource allocation.
The Scenario A river crossing with:
Two types of people: Hackers (H) and Employees (E) A boat that holds exactly 4 people Random arrivals on the riverbank Safety rules for boarding:
...
The Elegant Solution In the previous articles, we explored the deadlock problem and the waiter solution. Now we’ll see the most elegant solution: the Asymmetric Solution, also known as Resource Ordering.
The Key Insight: Deadlock requires circular wait. Break the circle, prevent the deadlock.
The Asymmetric Solution Explained Instead of all philosophers picking up forks in the same order (left then right), we make ONE philosopher do the opposite:
Philosophers 0-3: Pick up left fork first, then right fork Philosopher 4: Pick up right fork first, then left fork This simple change breaks the circular dependency and prevents deadlock!
...
The pastry kitchen operates under different physics than the savory line. Where savory cooking manipulates fats and proteins, pastry masters two molecular transformations: sugar crystallization and egg coagulation. Understanding these reactions transforms dessert sauces from mysterious to predictable, from temperamental to controllable.
Caramel Physics: The Difference Between Wet and Dry Methods Caramel is pure chemistry-sucrose molecules breaking apart under heat, recombining into hundreds of new compounds that create color, bitterness, and complexity.
...
Writing has always been about ideas, clarity, and connection. But the process of getting those ideas from your mind onto the page-especially when English isn’t your first language-can be challenging. Over the past year, I’ve developed a writing process that combines human creativity with AI assistance, and it’s fundamentally changed how I create content.
This isn’t about AI writing for me. It’s about AI helping me write better, faster, and more clearly. Let me show you how.
...
Breaking the Deadlock In the previous article, we saw how the naive implementation of the Dining Philosophers problem inevitably leads to deadlock. Now we’ll implement the Waiter Solution - a centralized coordinator that prevents deadlock by controlling resource access.
The Waiter Solution Concept The Idea: Add a waiter who controls access to the forks. No philosopher can pick up forks without the waiter’s permission. The waiter ensures that at most 4 philosophers can attempt to pick up forks simultaneously.
...
I was stuck on a database indexing problem for three days.
The problem: Queries were slow. I’d tried different index strategies. Nothing worked.
Then I went rock climbing.
Completely unrelated to the database problem.
Or so I thought.
At the climbing gym, I watched an instructor teach a beginner:
Instructor: “Don’t try to solve the whole wall at once. Look for the next handhold. Then the next one. Chain them together.”
...
The Gossiping Problem The Gossiping Problem is a classic problem in distributed systems and graph theory. N people each know a unique secret, and they share information through phone calls. On each call, both parties share all secrets they know. The goal: find the minimum number of calls needed for everyone to know all secrets.
The Scenario N people, N secrets:
Person i knows secret Si initially When persons i and j call each other, they share ALL secrets they know Goal: Everyone knows all N secrets Question: What’s the minimum number of calls? The Mathematical Result For n ≥ 4 people:
...