惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
T
Tailwind CSS Blog
罗磊的独立博客
B
Blog
博客园_首页
A
About on SuperTechFans
有赞技术团队
有赞技术团队
V
V2EX
U
Unit 42
I
InfoQ
IT之家
IT之家
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
The Cloudflare Blog
H
Help Net Security

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Reviving glyph-v8: From a Forgotten Prototype to STRIDE -...
contour · 2026-05-25 · via DEV Community

Executive Summary

STRIDE is a field‑aware integer coder that revives the abandoned glyph‑v8 prototype and turns it into a practical, measurable, deterministic compression primitive for binary protocols.
It profiles integer fields, builds per‑field models, selects optimal codecs, and outperforms general compressors like zstd on integer‑heavy data.


What I Built

STRIDE — Structured Integer Decoder/Encoder.

A field‑aware integer coder for binary protocols. Not a general compressor.
A primitive that does one thing extremely well: exploit the fact that integer fields in Protobuf, MessagePack, and Thrift are not random — they have highly skewed, predictable distributions.

zstd doesn’t know field boundaries.
STRIDE does.

Built on top of the revived glyph‑v8 prototype.


Demo

• GitHub: https://github.com/yasha1971-coder/glyph-v8 (github.com in Bing)
• Replit demo: https://replit.com/@yasha1971/Glyph-Search (replit.com in Bing)

Initial profiling on a Protobuf corpus shows:
60–70% of fields are integer‑type (timestamps, IDs, counters, enums).
Full benchmark results vs zstd will be added before June 7.


STRIDE Architecture (Why It Works)

┌──────────────────────────────────────────────┐
│ STRIDE │
│ Structured Integer Decoder / Encoder │
└──────────────────────────────────────────────┘

    ┌──────────────────────────────┐
    │ 1. Profiling Layer           │
    │------------------------------│
    │ • Parse corpus               │
    │ • Detect integer fields      │
    │ • Build per-field histograms │
    │ • Estimate entropy           │
    └──────────────────────────────┘
                 │
                 ▼
    ┌──────────────────────────────┐
    │ 2. Model Builder             │
    │------------------------------│
    │ • Choose best codec per field│
    │   (Delta, Rice, Elias, Dict) │
    │ • Produce compact model.json │
    └──────────────────────────────┘
                 │
                 ▼
    ┌──────────────────────────────┐
    │ 3. Encoder                   │
    │------------------------------│
    │ • Apply field-aware coding   │
    │ • Attach model header        │
    │ • Output compressed stream   │
    └──────────────────────────────┘
                 │
                 ▼
    ┌──────────────────────────────┐
    │ 4. Decoder                   │
    │------------------------------│
    │ • Load model                 │
    │ • Decode deterministically   │
    │ • Reconstruct original data  │
    └──────────────────────────────┘

Enter fullscreen mode Exit fullscreen mode


Before / After — The Revival Story

┌──────────────────────────────┐ ┌────────────────────────────────┐
│ BEFORE │ │ AFTER │
├──────────────────────────────┤ ├────────────────────────────────┤
│ • glyph-v8 abandoned │ │ • STRIDE implemented │
│ • no docs, no roadmap │ │ • profiling + encoding layers │
│ • no demo │ │ • Replit demo + GitHub release │
│ • no architecture │ │ • full architecture + context │
│ • code sitting on OVH │ │ • revived project with purpose │
└──────────────────────────────┘ └────────────────────────────────┘


Why STRIDE Matters

Binary protocols like Protobuf, Thrift, and MessagePack move billions of messages per day.
Most of these messages contain highly structured integer fields:

• timestamps
• counters
• IDs
• status codes
• enums

General compressors treat them as random bytes.
STRIDE treats them as predictable distributions.

This is where the compression gains come from.


STRIDE vs zstd — Conceptual Comparison

┌──────────────────────────────┬──────────────────────────────┬──────────────────────────────┐
│ Feature │ zstd │ STRIDE │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│ Field awareness │ No │ Yes │
│ Integer distribution model │ No │ Per-field adaptive │
│ Timestamp delta modeling │ No │ Yes │
│ Status code compression │ No │ Dictionary / RLE │
│ Schema-aware │ No │ Yes │
│ Deterministic decode │ Yes │ Yes │
│ Expected compression ratio │ 3–4× │ 6–8× (integer-heavy data) │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘


STRIDE Pipeline

STRIDE Pipeline

  1. Load Protobuf corpus
  2. Extract integer fields
  3. Build histograms
  4. Compute entropy
  5. Select codec per field
  6. Generate model.json
  7. Encode data
  8. Decode deterministically
  9. Benchmark vs zstd

Technical Highlights

• One‑pass profiling of integer fields
• Entropy estimation per field
• Adaptive codec selection (Delta, Rice, Elias, Dictionary)
• Compact model header
• Deterministic decode (no ML, no heuristics)
• Schema‑aware compression for Protobuf
• Benchmark pipeline with SHA256 verification


My Experience with GitHub Copilot

Copilot Contributions

✓ Reconstructed project context

✓ Designed STRIDE architecture

✓ Implemented integer field profiler

✓ Structured benchmark pipeline

✓ Helped write documentation

✓ Assisted in preparing the submission

Copilot didn’t just autocomplete code — it helped rebuild a forgotten project into a structured system.


What’s Next

STRIDE is the third primitive in a family:

• ACEAPEX — parallel LZ77 decode, 9,903 MB/s, merged into lzbench
• GLYPH — deterministic byte‑exact retrieval, 6,888× faster than grep
• STRIDE — field‑aware integer coding for binary protocols

Roadmap:

• Add full benchmark suite (STRIDE vs zstd vs LZ4)
• Add streaming encoder
• Add MessagePack and Thrift adapters
• Add visualization of field distributions
• Publish STRIDE as a standalone Python package


Conclusion

This challenge gave me the push to revive glyph‑v8 and transform it into STRIDE — a practical, measurable, deterministic compression primitive for structured integer data.

Thanks to GitHub, MLH, and Copilot for making this revival possible.