<?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>Gporca on digitalitem: Claude skills library and product lab</title><link>https://digitalitem.online/en/tags/gporca/</link><description>Recent content in Gporca on digitalitem: Claude skills library and product lab</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 22 Oct 2026 07:40:00 +0000</lastBuildDate><atom:link href="https://digitalitem.online/en/tags/gporca/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Read an Unfamiliar Codebase: gporca as an Example</title><link>https://digitalitem.online/en/posts/reading-an-unfamiliar-codebase/</link><pubDate>Thu, 22 Oct 2026 07:40:00 +0000</pubDate><guid>https://digitalitem.online/en/posts/reading-an-unfamiliar-codebase/</guid><description>&lt;p&gt;Opening a 400K-line optimizer, the first question is usually &amp;ldquo;where do I start&amp;rdquo;. The answer isn&amp;rsquo;t line one — it&amp;rsquo;s &lt;strong&gt;one complete call path&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id="1-four-steps"&gt;1. Four steps&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Goal&lt;/th&gt;
&lt;th&gt;How&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Find the entry&lt;/td&gt;
&lt;td&gt;know where execution starts&lt;/td&gt;
&lt;td&gt;&lt;code&gt;main&lt;/code&gt; → init → handling one query&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. Read the data structures&lt;/td&gt;
&lt;td&gt;know where state lives&lt;/td&gt;
&lt;td&gt;structs, containers, memo/group objects&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Follow the control flow&lt;/td&gt;
&lt;td&gt;see one task complete&lt;/td&gt;
&lt;td&gt;breakpoints or logging on a minimal input&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4. Change one thing&lt;/td&gt;
&lt;td&gt;prove you understood&lt;/td&gt;
&lt;td&gt;flip a branch, check the output changes as expected&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Step 4 is the point&lt;/strong&gt;: reading without changing is usually an illusion of understanding.&lt;/p&gt;</description></item><item><title>gporca's Rule System: How to Read 119 Rules</title><link>https://digitalitem.online/en/posts/gporca-rules/</link><pubDate>Tue, 20 Oct 2026 13:10:00 +0000</pubDate><guid>https://digitalitem.online/en/posts/gporca-rules/</guid><description>&lt;p&gt;The previous post covered gporca&amp;rsquo;s DP cells. This one covers rules: &lt;code&gt;xforms/&lt;/code&gt; contains &lt;strong&gt;119 files, roughly 44K lines&lt;/strong&gt;. At first it looks like required reading — it isn&amp;rsquo;t. Rules are highly homogeneous; understanding three of them teaches you a whole class.&lt;/p&gt;
&lt;h2 id="1-there-are-only-three-kinds-of-rules"&gt;1. There are only three kinds of rules&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Kind&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;th&gt;Examples&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Transformation&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Produce equivalent logical expressions inside the same group&lt;/td&gt;
&lt;td&gt;Join commutativity, associativity, predicate pushdown&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Implementation&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Turn a logical expression into an executable physical operator&lt;/td&gt;
&lt;td&gt;HashJoin, IndexScan, Sort&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Enforcer&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Insert operators to satisfy parent requirements&lt;/td&gt;
&lt;td&gt;Sort (order), Motion (distribution)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Search works like this: transformations grow groups, implementations propose candidates, DP picks the cheapest per group.&lt;/p&gt;</description></item><item><title>Reading gporca (Part 3): The Key of a DP Cell — (Group, Required Properties, Stage)</title><link>https://digitalitem.online/en/posts/gporca-dp-context/</link><pubDate>Tue, 20 Oct 2026 06:50:00 +0000</pubDate><guid>https://digitalitem.online/en/posts/gporca-dp-context/</guid><description>The optimization problem isn&amp;#39;t &amp;#39;find one optimal plan per group&amp;#39; — it&amp;#39;s &amp;#39;per (group, required properties, stage)&amp;#39;. COptimizationContext is the coordinate of that cell.</description></item><item><title>Reading gporca (Part 2): The Reference-Count Gate That Turns Recursive Search into a Pausable Task Network</title><link>https://digitalitem.online/en/posts/gporca-scheduler-refcount/</link><pubDate>Tue, 20 Oct 2026 06:40:00 +0000</pubDate><guid>https://digitalitem.online/en/posts/gporca-scheduler-refcount/</guid><description>gporca&amp;#39;s scheduler uses one counter and a set of state machines to flatten the entire recursive search into suspendable, resumable, deduplicated tasks.</description></item><item><title>Reading gporca (Part 1): Only ~11K of Its 400K Lines Are Actually Framework</title><link>https://digitalitem.online/en/posts/gporca-framework/</link><pubDate>Tue, 20 Oct 2026 06:30:00 +0000</pubDate><guid>https://digitalitem.online/en/posts/gporca-framework/</guid><description>Slicing gporca by &amp;#39;is this a framework design decision&amp;#39;: what each of its four libraries really is, the six mechanisms worth reading, and a practical reading order.</description></item></channel></rss>