Skip to content

C programming

Writing C unit tests without a framework

Real C programmers write everything from scratch, reinvent wheels. I'm somewhat of a C programmer myself :)

So when I felt the need to add unit tests to my C matrix library, I didn't want to immediately reach for the nearest C unit testing framework. I wanted to see what it takes to build my own.

Writing a C matrix library

I'm toying with the idea to write a neural network library in C. Which is quite an undertaking.

To approach it in baby steps, I want to build some smaller building blocks first. Setting up a foundation of sorts.

Plotting histograms in the terminal

I was generating some random numbers the other day. And I really felt the urge to visualize them. Just to get an intuition, like, what's the shape of the distribution? Is it noisy or smooth?

When in Python, I would usually bust out pip install matplotlib for this kind of tech. But what are the options when you're in C?