DEV Community

Harkeerat Singh
Harkeerat Singh

Posted on

GSoC'26: Week 3

Week 3 of my Google Summer of Code 2026 coding period at CircuitVerse lasted from June 8th to June 14th. This was a productive week! Let's break down exactly what went down! 👇


🏗️ Mastering Subcircuits with Topological Sorting

My primary goal this week was to implement subcircuit support in the canonical.ts file, which I successfully implemented!

For example, if Circuit B uses Circuit A as a nested subcircuit component, Circuit A must be processed and loaded before Circuit B.

To handle these nested dependencies deterministically, I introduced two key system updates:

1️⃣ Kahn’s Algorithm for Topological Sorting
I implemented Kahn’s Algorithm to evaluate the structural dependency graph. It calculates the incoming degrees of each circuit layout, processing zero-dependency blocks first to construct a perfectly ordered, linear topological array.

If you want to know more about the Khan's Algorithm, you can explore https://www.geeksforgeeks.org/dsa/topological-sorting-indegree-based-solution/

2️⃣ Circular Dependency Detection
What happens if a user accidentally makes Circuit A depend on Circuit B, while Circuit B simultaneously loops back to depend on Circuit A? Khan's algorithm made it very easy to detect these cycles!

I had studied and experimented with topological graph sort algorithms during college, which made writing code for this week fun and interesting!


The canonical.ts can now generate deterministic canonical JSON for any valid layout. I could not be happier with the progress!


📺 Demo Day

This week I had my first Demo Day! 💡

This was a live session where all CircuitVerse GSoC contributors stepped up to present their feature updates. I ran a live demo on the console by running the canonical.ts file, which generated the deterministic JSON successfully!

It was incredibly rewarding to receive positive feedback from the team, and equally amazing to witness the progress being made by the other contributors.

You can see the JSON in the image:


🏀 Off-Duty: The Craziest Finals Games in NBA History!

If you've been reading my updates, you know I’ve been completely locked into the 2026 NBA Finals matchup between the Knicks and the Spurs. This past week brought us three more games, and calling them "entertaining" is a massive understatement!🍿

The headline story of the week has to be Game 4. The Knicks were down by a mind-boggling 29 points in the first half. What followed was absolute cinema. They launched a historic second-half comeback to scratch all the way back and win it 107-106, marking the largest comeback victory in NBA Finals history! 🤯

With yet another signature double-digit comeback under their belts in Game 5, Jalen Brunson dropped a masterclass 45 points to lead the Knicks to a 94-90 victory, ending a legendary 53-year championship drought to win the title 4-1!


The momentum is real, and I'm incredibly excited to keep pushing forward. Catch you next week! ⚡💻


Top comments (0)