7 ms·
I would like to find more articles on C so feel free to share, thanks
by rand0m4r 10mo ago
I would like to find more articles on C so feel free to share, thanks
- tamnd 10mo agoHere is the link for you: https://github.com/little-book-of/c/blob/main/articles/zig-is-cool-c-is-cooler.md https://github.com/little-book-of/c/blob/main/articles/zig-i... I hope next month I will have more time to write deep dives into the internals of SQLite, PostgreSQL, Redis and maybe curl, all written in C.
- zobzu 10mo agothanks, i enjoyed reading it (though a bit lengthy). what gets me personally is what you describe at https://github.com/little-book-of/c/blob/main/articles/zig-is-cool-c-is-cooler.md#zigs-setup https://github.com/little-book-of/c/blob/main/articles/zig-i... - zig is made to feel easy and modern for people who don't know any better, and it does this well. But as soon as you actually need to do complex stuff, it gets in the way moreso than C and it's current environment/ecosystem will. And to be fair, as much as I enjoyed writing in C in my younger years - I only use C when I actually need C. And asm when I actually need asm. Most of my code now uses higher level languages - this puts zig into such a niche.. it feels like golang to me: the cool language that isn't really solving as much of a need as you'd think.
- tamnd 10mo agoI mean, if you embed Zig in a larger C++, Rust, or Python project, coordinating the build systems can be difficult. Zig prefers to manage the entire pipeline itself, so mixing it with other compilers and dependency managers can require workarounds. In my opinion, the only practical way to do this is by exposing C interfaces.
- tamnd 10mo agoAnd I want to clarify again, these are just personal notes written with some help from LLMs. They may contain mistakes, so please read them with curiosity, or feel free to skip them altogether.
- bnolsen 10mo agoI don't think zig is that much more complex than golang, with a (currently) crappier standard library. The bonus being you leave no performance on the table. I wonder if it would work with devops, where both c++ and rust fails.
- tamnd 10mo agoand my favorites: - https://daniel.haxx.se/blog/2025/04/07/writing-c-for-curl/ - https://www.sqlite.org/whyc.html
- rand0m4r 10mo agothanks again