Latest videos about C Programming
Code a Reinforcement Learning Library in C from Scratch (Full Course)
- The video provides a deep dive into building a custom reinforcement learning (RL) library from scratch in C, without relying on external machine learning frameworks. - Key components developed include an autograd engine for automatic differentiation and an implementation of the policy gradient REINFORCE algorithm. - To test the custom library, a complete Snake game environment is coded, allowing an AI agent to be trained to navigate the grid. - The tutorial covers the fundamental concepts of RL, including agent-environment interaction, reward feedback, and the importance of an autograd engine for neural network training. - The speaker acknowledges the complexity and potential for instability with the REINFORCE algorithm, noting that it can still learn effectively with sufficient training time, as demonstrated by the eventual positive rewards in the Snake game.
Low-Level Graphics in C – Pixel Manipulation and Frame Buffers
- This C programming course focuses on direct pixel manipulation and graphics using the SDL3 library, moving beyond traditional text-based terminal tutorials. - The course teaches how to bypass modern operating system restrictions to create and manage a low-level frame buffer, giving direct control over pixels, similar to the MS-DOS era. - It highlights the challenges of platform-specific graphics programming in C and introduces SDL3 as a cross-platform solution for handling graphics, input, and audio. - The tutorial demonstrates setting up an SDL3 window, renderer, and texture, and then manipulating a frame buffer array to display dynamic graphics, such as a "Doom fire" effect. - The instructor emphasizes the difference between CPU-based software rendering (as taught) and GPU-accelerated rendering, while still highlighting the foundational importance and power of direct pixel control in C.