$ show changkun/modern-cpp-tutorial
This repository is a bilingual (Chinese/English) modern C++ tutorial that teaches C++11 through C++26. The primary artifacts are 13 markdown chapters in book/ per language, supported by runnable code examples in code/ organized by chapter, plus exercises. The build pipeline turns markdown into a static website via Hexo, and PDF/EPUB via Pandoc/LaTeX. Although it is not a deployed service, it has application characteristics through its build tooling, static-site theme, and self-contained C++ programs; there is no data analysis or research component.
The LLM identified 4 files worth highlighting for reuse:
A self-contained header-only C++ thread pool built on std::thread, std::mutex, std::condition_variable, and std::packaged_task. Provides async task submission with future-based result retrieval. It is reusable in any C++ project needing a minimal, dependency-free thread pool.
A minimal template-based HTTP/HTTPS server built on Boost.Asio. Demonstrates RAII resource management, regex-based routing, and asynchronous I/O. The design is sufficiently self-contained to be extracted as a lightweight embedded server or as a teaching scaffold for network programming.
A Playwright-driven script that renders HTML/SVG cover templates into multiple PNG/JPEG assets including book covers, social cards, and favicons. It is parameterized for language and output paths, making it reusable for any project that needs consistent visual assets generated from a single template source.
Encapsulates chapter parsing, navigation, and content-enhancement logic for the Hexo-based documentation website. Could be reused to build a custom documentation theme with outline tracking, code copy buttons, and language switching.