Week 41 - 2025
This has been a pretty weak and disappointing week in terms of productivity.
But. But…
It was kinda wholesome because I got to take care of my beloved little one. It was actually the first time we got sick and we panicked. Took a day off from work and spent the entire day with the fam.
Again. But…
It did not stop me from utilizing the time available for learning.
Reading Mastering Go took a backseat because having learnt about Garbage collection in Go, made me curious about how the stack and heap are implemented and how does the things actually work.
One thing led to another and bam… I bought Fundamentals of Os by Hussein Nasser
So what I learnt from that is that the process gets allocated a memory space is allocated to it. It contains the stack, heap, Data Segment (where the global variables are stored) and Code area (where the compiled machine code lives).

The stack is a contiguous blocks of memory. This where the local variables for a function is stored and stack is popped when the local function returns. So this doesn’t need garbage collection.
So you must have guessed by now that the garbage collection is solely for the heap. So what is heap you ask? Well is a virtual memory layout that appears like continuous block of memory to the program. The data would be stored in the actual physical memory that the virtual memory is mapped to.
The stack and heap would grow towards each other as illustrated in the image above.
When a the process gets allocated a memory in heap, the OS kinda takes note of it so that the other processes cannot access it. Else the data would get corrupt. Right ?
Now as a good citizen in the OS, the process needs to return the memory to the OS. Now this where garbage collection comes into the picture.
Apart from this the only other productive thing I did was to update my site for SEO. I’m still working my way into it, but I learnt that adding a sitemap to the google search console would get the page indexed for search. So I’m hoping I’m going in the right direction.
I did not actually create a sitemap but I read somewhere the RSS feed xml file would double as a sitemap. So I created the (RSS feed)[/rss.xml] route for my site. Add it to your feed if you are keen on hearing more from me.
And then I added a few cosmetic changes to my site.
That’s all from me this week.
Looking forward towards a more productive week. I will have to try and add a few blogs to my site this week.
Thank you very much for reading if you have made it this far 💛.