How cneuralnetwork/from-scratch-in-c works
Project Type and Purpose
• This is a monolithic, educational “scratch‐pad” C project—a library of small demos and implementations of algorithms and data structures you build from scratch.
• It is neither a client–server nor a web app, but a collection of standalone modules (Random utilities, Data Structures, Ciphers, OpenGL demos).
High‑Level Component Breakdown
• Four main modules (each lives in its own top‑level folder):
• Random – image/video utilities and small command‑line tools
• Data Structures – stacks, queues, linked lists, sorting routines
• Ciphers – implementations of classical substitution and transposition ciphers
• OpenGL – simple graphics algorithms using the OpenGL API
• External dependencies:
• stb_image.h / stb_image_write.h (in Random)
• OpenGL headers/libs (for the OpenGL module)
Relationships and Interactions
• All modules compile into separate executables or libraries; there are no direct runtime dependencies between modules.
• Random tools may link against stb_image; OpenGL demos link against the OpenGL runtime.
• The Data Structures folder can be treated as a reusable library that other modules (future ciphers, algorithms) could link against if needed.
Key Architectural Patterns and Principles
• Modularity: each folder is a self‑contained component
• Single responsibility: each C file implements one algorithm/concept
• Flat build process: no nested microservices, just a set of gcc commands or a simple Makefile to drive compilation