zimingttkx

c++20 from-scratch implementations: LRU/LFU/ARC cache, red-black tree, memory pool, GC and more. Header-only, zero deps.

42
4
100% credibility
Found Mar 26, 2026 at 42 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
C++
AI Summary

A header-only C++20 library implementing thread-safe cache strategies like LRU, LFU, and ARC from scratch, with tests and plans for additional system components.

How It Works

1
🔍 Discover the toolbox

You stumble upon this free collection of smart storage tools built from scratch for C++ programs while looking for ways to make apps remember data faster.

2
📖 Explore the options

You read about different clever ways to store and quickly grab the most important or recently used pieces of information, like special memory keepers.

3
Pick a memory keeper

You choose one like the recent-use keeper because it automatically prioritizes the data you touch most often, keeping everything speedy.

4
📁 Add it to your work

You simply place the ready-to-use files into your own project folder, no fuss needed.

5
🧪 Give it a quick test

You follow the easy examples to store some sample data and fetch it back, watching it handle limits perfectly.

6
See the speed magic

Your program now grabs data lightning-fast without slowing down, even as it fills up.

Fast storage achieved

Congratulations, your app now has reliable, efficient memory that works smoothly every time, ready for more features ahead.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 42 to 42 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is cpp-from-scratch?

This C++20 GitHub repo delivers from-scratch implementations of low-level system components like LRU, LFU, and ARC caches, with plans for red-black trees, memory pools, and garbage collectors. Header-only and zero deps, it lets you drop in thread-safe caches with O(1) puts and gets via a simple API: create a cache with capacity, put keys/values, and fetch with optional returns. Perfect for devs exploring beginning C++20 GitHub projects or needing lightweight C++20 features without bloat.

Why is it gaining traction?

Stands out with pure C++20 from-scratch builds—no external libs, just stdlib—making it dead simple to integrate into any C++20 project. Thread-safe caches handle real-world concurrency out of the box, and the K-LFU variant fights cache aging better than basic LRU. Devs dig it for cpp from scratch learning, showcasing C++20 GitHub tricks like modules in a zero-deps package.

Who should use this?

Systems programmers building embedded tools or high-perf servers who want dep-free caches. C++20 enthusiasts studying from-scratch implementations of LRU/LFU/ARC or red-black trees. Students hunting C++20 PDF GitHub resources for hands-on low-level data structures.

Verdict

Grab it if you're prototyping C++20 caches or learning internals—solid tests pass cleanly, header-only shines. But at 42 stars and 1.0% credibility, it's early; stick to caches until roadmap fills out.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.