Posts for: #Programming

I Made a Lightweight C Alternative to std::unordered_map

I Made a Lightweight C Alternative to std::unordered_map

hashmap.h is a production-ready, macro-based C library that generates type-safe hashmaps for any data type, offering compile-time type checking, fast iteration, and robust memory management with zero dependencies. Unlike alternatives like stb_ds.h, it provides enhanced type safety, and superior debugging experience while maintaining C89 compatibility across all major compilers and architectures.

Read more

I Made a Better Dynamic Array than stb_ds.h

I Made a Better Dynamic Array than stb_ds.h

vector.h is a production-ready, macro-based C library that generates type-safe dynamic arrays for any data type, offering compile-time type checking, fast iteration, and robust memory management with zero dependencies. Unlike alternatives like stb_ds.h, it provides enhanced type safety, optimized performance, and superior debugging experience while maintaining C89 compatibility across all major compilers and architectures.

Read more

C as a Scripting Language

C as a Scripting Language

I am writing my own game engine, and like most game engines, mine needs a scripting language. VMs are slower than native code, consume more memory, and require tedious binding management between the scripting language and engine. More importantly, I prefer single-language codebases because they let me use the same editor, debugger, and development workflow throughout the entire project. My engine is written in C, so how can I use C as a scripting language?

Read more