<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Agastya Patri</title><link>https://agastyapatri.com/</link><description>Recent content on Agastya Patri</description><generator>Hugo</generator><language>en-US</language><copyright>Agastya Patri</copyright><lastBuildDate>Sun, 25 Oct 2026 16:01:02 +0530</lastBuildDate><atom:link href="https://agastyapatri.com/index.xml" rel="self" type="application/rss+xml"/><item><title>On the design of a tensor library in C++</title><link>https://agastyapatri.com/posts/carbon_1__design/</link><pubDate>Sun, 25 Oct 2026 16:01:02 +0530</pubDate><guid>https://agastyapatri.com/posts/carbon_1__design/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;&lt;strong&gt;Toolchain used for every capture:&lt;/strong&gt; clang 22.1.8, GCC 16.2.1, libstdc++ 16,Fedora 44, x86-64. Library built with &lt;code&gt;-std=c++20 -DCARBON_USE_BLAS&lt;/code&gt; against OpenBLAS, the same way &lt;code&gt;CMakeLists.txt&lt;/code&gt; builds it.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="introduction"&gt;Introduction &lt;a class="anchor" href="#introduction" aria-label="Link to this section"&gt;§&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;C++ templates are blueprints used by the compiler to generate classes when they are instantiated with a specific type. Class templates usually take the form of a single header file because the compiler needs to see the full implementation to generate concrete code at the point of use: the template&amp;rsquo;s definition is visible and a concrete type is known at compile time.&lt;/p&gt;</description></item><item><title>carbon</title><link>https://agastyapatri.com/projects/carbon/</link><pubDate>Sun, 25 Oct 2026 00:00:00 +0000</pubDate><guid>https://agastyapatri.com/projects/carbon/</guid><description/></item><item><title>microgpt-c</title><link>https://agastyapatri.com/posts/microgpt-c/</link><pubDate>Mon, 13 Apr 2026 19:45:50 +0530</pubDate><guid>https://agastyapatri.com/posts/microgpt-c/</guid><description>&lt;p&gt;&lt;a href="https://karpathy.github.io/2026/02/12/microgpt/"&gt;microgpt, by Andrej Karpathy&lt;/a&gt; is a 200 line python implementation of GPT-2. It is trained on a set of names, and attempts to train a model to generate new ones. Following this, I wanted to try porting it to C as an exercise in learning the language. &lt;strong&gt;This post will lay out my approach to implementing an autodifferentiation engine with nothing but the C standard library&lt;/strong&gt;. It&amp;rsquo;s recommended that one reads the original post, along with &lt;a href="https://growingswe.com/blog/microgpt"&gt;growingswe&amp;rsquo;s visual explainer&lt;/a&gt; for more background on GPT-2 itself.&lt;/p&gt;</description></item><item><title>microgpt-c</title><link>https://agastyapatri.com/projects/microgpt-c/</link><pubDate>Mon, 13 Apr 2026 00:00:00 +0000</pubDate><guid>https://agastyapatri.com/projects/microgpt-c/</guid><description/></item></channel></rss>