A browser-based visualizer for the Least Recently Used (LRU) Cache algorithm, built with C++, compiled to WebAssembly using Emscripten, and integrated with a responsive HTML/CSS/JavaScript frontend.
- ✅ Real-time simulation of
putandgetoperations - ✅ Visual feedback for cache state and eviction
- ✅ WebAssembly-powered performance using native C++ logic
- ✅ Clear UI with input validation and cache reset option
The LRU cache is implemented in C++ using:
std::listfor usage orderstd::unordered_mapfor O(1) access- Exposed to JavaScript via
emscripten::bind
Frontend uses:
createLRUModule()to load WebAssembly- DOM manipulation to render cache state
- Alert popups for
get()results - Green boxes to represent cache entries (MRU → LRU)
🎥 ## 📽️ Demo Video
- C++ — core cache logic
- Emscripten — compiles C++ to WebAssembly
- WebAssembly (WASM) — high-performance browser execution
- HTML/CSS/JS — frontend interface
- VS Code — development environment
Sai Chethana Vesireddy
Focused on systems programming, WebAssembly integration, and building interactive visual tools for education and clarity.
- Star the repo 🌟
- Fork it 🔱
- Share your feedback 💬
















