Skip to content

Instantly share code, notes, and snippets.

View tclem's full-sized avatar
💭
Parsing and analyzing all of the source code.

Timothy Clem tclem

💭
Parsing and analyzing all of the source code.
View GitHub Profile
@tclem
tclem / this-question-fully-write-a-full-report.md
Created May 4, 2026 20:46
Could the v3 diff surface use TanStack Virtual? — a structural analysis (re: github/github-app#4382)

Could v3 use TanStack Virtual? — a structural analysis

Question. PR #4382 — Rewrite the diff surface (v3): O(1) hot paths regardless of diff size replaced an imperative renderer (RowRenderer) and a hand-rolled transform-scroll layer (useTransformScroll) for the v2 surface that was built on @tanstack/react-virtual. Is it really not possible to make TanStack Virtual (tanstack.com/virtual) work for this surface?

Short answer. It is possible in the trivial sense that you can compile a TanStack Virtual–backed diff surface that scrolls. It is not possible to do so without giving up at least three of the eight architectural laws that v3 was deliberately built to satisfy. v2 itself is the existence proof: it was a TanStack Virtual surface, and it is exactly the surface v3 was written to replace.

This report walks through the conflict point by point, with citations, and then maps out the (small) parts of

<!DOCTYPE html>
<html>
<head>
<title>Histogram</title>
<script type="text/javascript" src="../../d3.js"></script>
<script type="text/javascript" src="../../d3.layout.js"></script>
<script type="text/javascript" src="pseudoMathStats.js"></script>
<script type="text/javascript" src="lhc.js"></script>
<style type="text/css">
//hello world
//hello world
@tclem
tclem / file1.txt
Created April 16, 2011 00:17
add a file
this is a file
@tclem
tclem / libgit2sharp.cs
Created March 28, 2011 16:18
API design thoughts for libgit2sharp
using (var repo = new Repository("path\to\repo.git"))
{
// Object lookup
var obj = repo.Lookup("sha");
var commit = repo.Lookup<Commit>("sha");
var tree = repo.Lookup<Tree>("sha");
var tag = repo.Lookup<Tag>("sha");
// Rev walking
foreach (var c in repo.Commits.Walk("sha")) { }
using System.Diagnostics;
using System.Threading;
namespace ErlanCompetition
{
internal class Program
{
#region private
private static void Main()