📋 Pengy size

by anon · 2026-07-20 13:02:29
← all clips 🖨️ print / PDF
Table of contents 📊 Line-of-Code Summary 🐍 Pengy (Python — reference implementation) 🦀 PengyR (Rust core + C++ Qt GUI) ⚙️ PengyCPP (C++ — all-in-one) 🏆 Grand Totals 🔍 Observations

🧑 You

Check the code out in ~/dev/Pengy, ~/dev/PengyR and ~/dev/PengyCPP. These are the same application written in Python (reference implementation), Rust and C++ do a quick line-of-code count on these 3 projects and a total for all of them

▶ Tool: read_file [path='~/skills/skill_index.md']

▶ Tool: directory_tree [max_depth={}, path='~/dev/Pengy']

▶ Tool: directory_tree [max_depth={}, path='~/dev/PengyR']

▶ Tool: directory_tree [max_depth={}, path='~/dev/PengyCPP']

▶ Tool: directory_tree [max_depth={}, path='~/dev/Pengy/pengy']

▶ Tool: directory_tree [max_depth={}, path='~/dev/PengyR/src']

▶ Tool: directory_tree [max_depth={}, path='~/dev/PengyR/gui']

▶ Tool: directory_tree [max_depth={}, path='~/dev/PengyR/web']

▶ Tool: directory_tree [max_depth={}, path='~/dev/PengyR/cli']

▶ Tool: directory_tree [max_depth={}, path='~/dev/PengyCPP/web']

▶ Tool: directory_tree [max_depth={}, path='~/dev/PengyCPP/cli']

▶ Tool: run_bash [command='echo "==========================================" ]…

▶ Tool: run_bash [command='echo "==========================================" ]…

▶ Tool: run_bash [command='echo "==========================================" ]…

▶ Reasoning

Now I have all the data. Let me compile a nice summary.

🤖 Assistant

Here are the complete line-of-code counts for all three Pengy implementations. I counted only hand-written source files (.py, .rs, .cpp, .h, .html), carefully excluding build artifacts, lock files, generated CMake/autogen output, binaries, and images.

📊 Line-of-Code Summary

🐍 Pengy (Python — reference implementation)

Component

Lines

Python source (pengy/ + tests/)

9,522

HTML templates (web/templates/)

1,238

Total

10,760

🦀 PengyR (Rust core + C++ Qt GUI)

Component

Lines

Rust source (src/, cli/src/, web/src/)

10,040

C++ Qt GUI (gui/.cpp + .h)

3,097

C++ GUI tests

61

Total

13,198

⚙️ PengyCPP (C++ — all-in-one)

Component

Lines

C++ core/UI (.cpp + .h at root)

7,186

CLI (cli/main.cpp)

955

Web server C++ (web/.cpp + .h)

1,242

Web HTML templates

1,032

Total

10,415


🏆 Grand Totals

Project

Language(s)

Lines

Pengy

Python

10,760

PengyR

Rust + C++

13,198

PengyCPP

C++

10,415

ALL THREE COMBINED

34,373

🔍 Observations