<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Posts on Void *Pablogs</title><link>https://pablogs.dev/posts/</link><description>Recent content in Posts on Void *Pablogs</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 24 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://pablogs.dev/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>Hello, Array: malloc, free and Manual Bookkeeping</title><link>https://pablogs.dev/posts/post-01-hello-array/</link><pubDate>Sun, 24 May 2026 00:00:00 +0000</pubDate><guid>https://pablogs.dev/posts/post-01-hello-array/</guid><description>&lt;p&gt;&lt;em&gt;Post 1 of the Dynamic Arrays in C series · &lt;a href="https://github.com/ansuzgs/dynamic-arrays-c/blob/main/src/post_01.c"&gt;Full source code on GitHub&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;h2 id="the-problem-no-one-starts-with"&gt;The Problem No One Starts With&lt;/h2&gt;
&lt;p&gt;You have five integers. You put them in an array:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-c" data-lang="c"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Done. C gives you a contiguous chunk of 20 bytes on the stack, indexed from 0 to 4, and life is good.&lt;/p&gt;
&lt;p&gt;Now your user wants to add a sixth integer. What do you do?&lt;/p&gt;
&lt;p&gt;You can&amp;rsquo;t resize a stack array. Its size was baked into the binary at compile time — the compiler saw &lt;code&gt;5&lt;/code&gt;, calculated 20 bytes, and that&amp;rsquo;s the space your function&amp;rsquo;s stack frame has. There&amp;rsquo;s no negotiation. You could declare &lt;code&gt;int numbers[1000]&lt;/code&gt; and hope it&amp;rsquo;s big enough, but hope is not a memory management strategy.&lt;/p&gt;</description></item><item><title>What malloc() does not want you to know</title><link>https://pablogs.dev/posts/post-01-no-malloc/</link><pubDate>Sun, 24 May 2026 00:00:00 +0000</pubDate><guid>https://pablogs.dev/posts/post-01-no-malloc/</guid><description>&lt;p&gt;&lt;em&gt;Post 1 of 13 — Series: Memory Allocation and Garbage Collection from Scratch&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Every time you write &lt;code&gt;malloc(128)&lt;/code&gt;, something apparently magical happens: the runtime hands you a pointer to 128 bytes of memory nobody else is using. You didn&amp;rsquo;t ask the operating system for permission. You didn&amp;rsquo;t specify &lt;em&gt;where&lt;/em&gt; those bytes should live. They simply appeared. And when you call &lt;code&gt;free()&lt;/code&gt;, they vanish back into the void.&lt;/p&gt;
&lt;p&gt;The magic is a lie.&lt;/p&gt;</description></item><item><title>Hello World: Pointers, Memory, and Low-Level C</title><link>https://pablogs.dev/posts/hello-world/</link><pubDate>Fri, 22 May 2026 00:00:00 +0000</pubDate><guid>https://pablogs.dev/posts/hello-world/</guid><description>&lt;p&gt;Every C project starts with a &lt;code&gt;printf(&amp;quot;Hello, World!\n&amp;quot;);&lt;/code&gt;, and this blog is no exception. Welcome to &lt;strong&gt;pablogs.dev&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve been wanting to create a personal space for a while now to document my projects, organize my thoughts, and most importantly, share what I learn about systems programming and low-level C. Often, when coding in higher-level languages, we take the underlying magic for granted: how memory is allocated, how resources are cleaned up, or how data structures grow.&lt;/p&gt;</description></item></channel></rss>