Saturday, March 14, 2026

Pi-sort

On "Pi Day" (3.14), something new with pi digits: "sorting pi"

Pi number has unlimited number of digits, that can be calculated by using optimized mathematical algorithms. Google calculated billions of Pi digits, and made them available online here:

Pi digits have a very interesting property that all digits are uniformly represented, it is almost perfectly pseudo-random, but is always the same: great for comparing other algorithms that need random data, in this case sort algoritms.

GET

Response:
```json
{
  "content": "3141592653"
}    

I did download 1 million of those digits,
and then converted them to an array of 5-digit numbers, total 200000 of them. 

Then I used 10 different sort algorithms to sort those numbers derived from Pi, and measure time.
And I did the test in many programming languages. 

Then created this visualization to showcase differences between algorithms and prog. languages.

One very unusual feature of this test is that code in target prog. languages is auto code-generated by custom tool from common meta-language source (new language that I named DataScript).

Another unusual feature of the test is that all test running is done in Docker containers, based on language optimized images, and controlled by a custom docker-runner tool. 

The visuals provide a few different visualizations options, including primary "pie charts",
in both log and linear view. Faster pi-sort algorithm or language gets bigger "slice of pie"



Pi Sorting Performance

i Note: Faster algorithms get more pie. Slice angle is proportional to speed.

Algorithm
Digits: - Values: -

© 2026 DataScript Performance Dashboard

AI tool: "PI" (coding) agent



"PI Agent" for "PI day"  (3/14)

The "PI" (coding) agent is so much more than just another amazing coding agent! - YouTube
Maximilian Schwarzmüller


badlogic/pi-mono: AI agent toolkit: coding agent CLI, unified LLM API, TUI & web UI libraries, Slack bot, vLLM pods @GitHub


mariozechner/pi-coding-agent - npm

pi.dev domain graciously donated by exe.dev

Pi is a minimal terminal coding harness. Adapt pi to your workflows, not the other way around, without having to fork and modify pi internals. Extend it with TypeScript Extensions, Skills, Prompt Templates, and Themes. Put your extensions, skills, prompt templates, and themes in Pi Packages and share them with others via npm or git.

Pi ships with powerful defaults but skips features like sub agents and plan mode. Instead, you can ask pi to build what you want or install a third party pi package that matches your workflow.

Pi runs in four modes: interactive, print or JSON, RPC for process integration, and an SDK for embedding in your own apps. See openclaw/openclaw for a real-world SDK integration.

Visual Terraform: inframap

 cycloidio/inframap: Read your tfstate or HCL to generate a graph specific for each provider, showing only the resources that are most important/relevant. @GitHub

Go, MIT license


Terraform Visual

hieven/terraform-visual: Terraform Visual is an interactive way of visualizing your Terraform plan @GitHub

TS, MIT


Blast Radius @GitHub

28mm/blast-radius: Interactive visualizations of Terraform dependency graphs using d3.js



Inkdrop is a CLI tool that creates interactive diagrams to visualize your Terraform.