<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Harshal Sawant: writing</title>
    <link>https://harshalsawant.com/posts</link>
    <atom:link href="https://harshalsawant.com/rss.xml" rel="self" type="application/rss+xml" />
    <description>Long-form notes on Solana programs and Anchor, Android scheduling, Kotlin architecture, Go services, Rust networking, NixOS hardening, OpenTelemetry tracing and Linux recovery.</description>
    <language>en</language>
    <lastBuildDate>Thu, 03 Dec 2026 00:00:00 GMT</lastBuildDate>
    <image>
      <url>https://harshalsawant.com/images/avatar.png</url>
      <title>Harshal Sawant: writing</title>
      <link>https://harshalsawant.com/posts</link>
    </image>
    <item>
      <title>A security checklist for Solana programs</title>
      <link>https://harshalsawant.com/posts/solana-program-security-checklist</link>
      <guid isPermaLink="true">https://harshalsawant.com/posts/solana-program-security-checklist</guid>
      <pubDate>Thu, 03 Dec 2026 00:00:00 GMT</pubDate>
      <description>Twelve bug classes that keep showing up in Solana audits, from missing signer and owner checks to arbitrary CPIs, account revival and overflow, each with the Anchor code that stops it.</description>
      <category>Solana</category>
      <category>Security</category>
      <category>Anchor</category>
    </item>
    <item>
      <title>How Solana transaction fees work</title>
      <link>https://harshalsawant.com/posts/solana-transaction-fees</link>
      <guid isPermaLink="true">https://harshalsawant.com/posts/solana-transaction-fees</guid>
      <pubDate>Sat, 28 Nov 2026 00:00:00 GMT</pubDate>
      <description>Base fee plus priority fee: how to calculate the priority fee from the compute unit price and limit, why only contested accounts get expensive, and why rent isn&apos;t a fee.</description>
      <category>Solana</category>
      <category>Blockchain</category>
      <category>Performance</category>
    </item>
    <item>
      <title>Measuring and reducing compute units in Solana programs</title>
      <link>https://harshalsawant.com/posts/solana-compute-units</link>
      <guid isPermaLink="true">https://harshalsawant.com/posts/solana-compute-units</guid>
      <pubDate>Tue, 24 Nov 2026 00:00:00 GMT</pubDate>
      <description>How the compute budget works, four ways to measure what an instruction costs, and the changes that cut it most: stored bumps, less logging, zero-copy accounts and fewer CPIs.</description>
      <category>Solana</category>
      <category>Performance</category>
      <category>Rust</category>
    </item>
    <item>
      <title>How AndroidTweaker 3 is structured</title>
      <link>https://harshalsawant.com/posts/androidtweaker-architecture</link>
      <guid isPermaLink="true">https://harshalsawant.com/posts/androidtweaker-architecture</guid>
      <pubDate>Sat, 21 Nov 2026 00:00:00 GMT</pubDate>
      <description>Rebuilding an Android tuning app around a pure Kotlin domain module, one gate for privileged work, and a shell engine you can read top to bottom.</description>
      <category>Android</category>
      <category>Kotlin</category>
    </item>
    <item>
      <title>Anchor account constraints: what each one checks</title>
      <link>https://harshalsawant.com/posts/anchor-account-constraints</link>
      <guid isPermaLink="true">https://harshalsawant.com/posts/anchor-account-constraints</guid>
      <pubDate>Thu, 19 Nov 2026 00:00:00 GMT</pubDate>
      <description>Anchor&apos;s account types and #[account(...)] constraints read as the if statements they generate: what each one checks, the attack it stops, and what it leaves to you.</description>
      <category>Anchor</category>
      <category>Solana</category>
      <category>Security</category>
    </item>
    <item>
      <title>Pinning Android threads with raw syscalls</title>
      <link>https://harshalsawant.com/posts/pinning-android-threads</link>
      <guid isPermaLink="true">https://harshalsawant.com/posts/pinning-android-threads</guid>
      <pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate>
      <description>How CoreTaskOptimizer finds Android&apos;s critical threads at boot and moves them onto the right CPU cores with sched_setaffinity, SCHED_FIFO and ioprio_set, and the five things I would change now.</description>
      <category>Android</category>
      <category>Performance</category>
      <category>C++</category>
      <category>Linux</category>
    </item>
    <item>
      <title>Program derived addresses on Solana</title>
      <link>https://harshalsawant.com/posts/solana-program-derived-addresses</link>
      <guid isPermaLink="true">https://harshalsawant.com/posts/solana-program-derived-addresses</guid>
      <pubDate>Fri, 13 Nov 2026 00:00:00 GMT</pubDate>
      <description>What a PDA is, how find_program_address and the bump work, how a program signs for an address with no private key, and the seed mistakes to avoid.</description>
      <category>Solana</category>
      <category>Anchor</category>
      <category>Rust</category>
    </item>
    <item>
      <title>Solana&apos;s account model, for systems programmers</title>
      <link>https://harshalsawant.com/posts/solana-account-model</link>
      <guid isPermaLink="true">https://harshalsawant.com/posts/solana-account-model</guid>
      <pubDate>Sun, 08 Nov 2026 00:00:00 GMT</pubDate>
      <description>Programs hold no state, every account has one owner, and every transaction declares what it touches up front. What that means for how you write a program.</description>
      <category>Solana</category>
      <category>Blockchain</category>
      <category>Rust</category>
    </item>
    <item>
      <title>Designing PaperLab&apos;s job pipeline</title>
      <link>https://harshalsawant.com/posts/paperlab-job-pipeline</link>
      <guid isPermaLink="true">https://harshalsawant.com/posts/paperlab-job-pipeline</guid>
      <pubDate>Sun, 25 Oct 2026 00:00:00 GMT</pubDate>
      <description>A Go server wrapping Poppler, Ghostscript, qpdf, Tesseract and LibreOffice for 41 PDF tools: per-job directories, engine detection, capped subprocess output and a private-network URL check.</description>
      <category>Go</category>
      <category>Security</category>
    </item>
    <item>
      <title>A chat server in 90 lines of Tokio</title>
      <link>https://harshalsawant.com/posts/termchat-tokio-broadcast</link>
      <guid isPermaLink="true">https://harshalsawant.com/posts/termchat-tokio-broadcast</guid>
      <pubDate>Sun, 26 Jul 2026 00:00:00 GMT</pubDate>
      <description>TermChat&apos;s server: one broadcast channel, one task per connection, and select! to read and write at once. Then the four bugs I&apos;d fix before anyone else ran it.</description>
      <category>Rust</category>
      <category>Networking</category>
    </item>
    <item>
      <title>Tracing a slow third-party call with OpenTelemetry</title>
      <link>https://harshalsawant.com/posts/distributed-tracing-se-playbook</link>
      <guid isPermaLink="true">https://harshalsawant.com/posts/distributed-tracing-se-playbook</guid>
      <pubDate>Sun, 28 Jun 2026 00:00:00 GMT</pubDate>
      <description>Follow one slow request across your service, a customer&apos;s network and a vendor API with OpenTelemetry, find the span that holds the time, and hand the customer one specific thing to check.</description>
      <category>Observability</category>
      <category>Networking</category>
      <category>Performance</category>
    </item>
    <item>
      <title>Installing Linux without a USB drive, using GRUB</title>
      <link>https://harshalsawant.com/posts/grub-iso-boot</link>
      <guid isPermaLink="true">https://harshalsawant.com/posts/grub-iso-boot</guid>
      <pubDate>Fri, 20 Feb 2026 00:00:00 GMT</pubDate>
      <description>Boot a Linux installer ISO from an internal disk through GRUB. The working CachyOS entry I used from Fedora, an Ubuntu entry to adapt, and the errors I hit on the way.</description>
      <category>Linux</category>
    </item>
    <item>
      <title>Recovering a lost Linux partition with TestDisk</title>
      <link>https://harshalsawant.com/posts/testdisk-recovery</link>
      <guid isPermaLink="true">https://harshalsawant.com/posts/testdisk-recovery</guid>
      <pubDate>Fri, 20 Feb 2026 00:00:00 GMT</pubDate>
      <description>Find a deleted partition with TestDisk on Debian or Ubuntu, check its files are readable, then either copy them off or write the partition table back.</description>
      <category>Linux</category>
    </item>
    <item>
      <title>Hardening a NixOS desktop with sysctl</title>
      <link>https://harshalsawant.com/posts/nixos-sysctl-hardening</link>
      <guid isPermaLink="true">https://harshalsawant.com/posts/nixos-sysctl-hardening</guid>
      <pubDate>Sat, 12 Apr 2025 00:00:00 GMT</pubDate>
      <description>The kernel settings my NixOS flake changes, what each one blocks, what it breaks, and the one line in my own config that undoes more than the rest put together.</description>
      <category>NixOS</category>
      <category>Linux</category>
      <category>Security</category>
    </item>
  </channel>
</rss>
