awesome-c
ccan
awesome-c | ccan | |
---|---|---|
19 | 13 | |
8,604 | 1,045 | |
- | - | |
5.4 | 3.4 | |
3 days ago | 2 months ago | |
C | ||
Creative Commons Attribution Share Alike 4.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
awesome-c
-
Learning C in 2023
https://github.com/oz123/awesome-c#learning-reference-and-tu...
-
I want to be better at programming
So, let’s go through an example. Since you’re used to using C, I’d suggest looking through the awesome-C repo. From there, you might decide you’re interested in graphics, so you check out OpenGL.
-
What can you actually do in C?
Awesome C - oz123
-
C Documentation
You can find a lot of resources at oz123 / awesome-c and this [https://www.linuxquestions.org/questions/programming-9/c-c-tutorials-825748/](C/C++ Tutorials thread).
-
Updated book to learn C
For example, you can use the C language with sds strings (see https://github.com/antirez/sds) if you want to have an easier time with string formatting and don't want to worry about using the famously unsafe string.h functions correctly. You'll still program in ISO C, but just not in the standard library. The same applies to pretty much all parts of the standard library, the only part unsurpassed is pretty much just printf and the math headers (math.h, fenv.h, tgmath.h, complex.h) imo, and the occasional call to exit. A good place to look for libraries if you want to go that route is the awesome-c collection: https://github.com/oz123/awesome-c
- Not to sound like a broken record but are there any good and interesting open source projects in C?
- Cool C projects
-
Ask HN: Modern C Libraries
There's an awesome C list of libraries and frameworks [1]. Pick one that suits your needs.
Time and again folks say such and such isn't suitable tool to do something. While some of those admonitions are true, if you're doing something to learn, feel free to ignore those and enjoy your learning. There're folks who learn assembly even today and learn a great deal of other things than assembly and have fun too.
As for C, it'd recommend most folks know the basics since many "modern" languages totally don't teach you those, and in fact hide the details from you that things feel like magic to you eventually if you keep using these high-level languages. This is okay as long as you can know the basics and map them back when needed.
[1]: https://github.com/oz123/awesome-c
- Recommend some non-standard libraries for the C programming language.
- Any website that lists all the available libraries for C?
ccan
-
Memory leak proof every C program
Hilarious!
But I remember the first time I saw such a program which never freed anything: jitterbug, the simple bug tracker which ran as a CGI script.
It indeed allows a very simple style!
Meanwhile, use ccan/tal (https://github.com/rustyrussell/ccan/blob/master/ccan/tal/_i...) and be happy :)
-
Popular Data Structure Libraries in C ?
There's CCAN, maintained by kernel hacker Rusty Russell: http://ccodearchive.net/
-
My review of the C standard library in practice
Please note that the above link has been claimed by squatters and isn’t the right link for CCAN anymore! The maintainer suggests [1] just using the GitHub repo [2] instead.
[1] https://lists.ozlabs.org/pipermail/ccan/2022-September/00141...
[2] https://github.com/rustyrussell/ccan/
-
[ROAST MY CODE] Implementing generic vector in C
This is a great learning exercise but not very useful because using void* creates practical problems that the compiler cant help you with. IMHO, for a nice vector in C look at https://github.com/rustyrussell/ccan/blob/master/ccan/darray/darray.h
- Common libraries and data structures for C
-
Toward a better list iterator for the Linux kernel
For more advanced intrusive lists in C, I've found that ccan's tlist2 (https://github.com/rustyrussell/ccan/blob/master/ccan/tlist2...) provides a decent model here.
Compared to the linux kernel's intrusive lists, it also tracks the offset of the list_node within the structure contained by the list, which eliminates another class of problems. It does still have the "using the iterator after the for loop is over" issue discussed in this article, but it also already tracks the types as Linus proposed doing in the article to resolve the issue.
-
Good C Source Code
ccan library https://github.com/rustyrussell/ccan I think it is used also in the linux kernel(?)
-
What are your favorite C resources? They can be either for learning or reference.
ccan (analagous to cpan, but for C rather than Perl.)
-
Dynamic link list
You could use a discriminated union in your list node. You could use a void pointer in your list node, allocate space as needed and memcpy the date into this space, or don't allocate and store pointers to the original data. You could use an intrusive list, like this.
-
The Byte Order Fiasco
The fallacy in the article is that anyone should code these functions. There's plenty of public domain libraries that do this correctly.
https://github.com/rustyrussell/ccan/blob/master/ccan/endian...
What are some alternatives?
kcgi - minimal CGI and FastCGI library for C/C++
SQLite - Official Git mirror of the SQLite source tree
single_file_libs - List of single-file C/C++ libraries.
STC - A modern, user friendly, generic, type-safe and fast C99 container library: String, Vector, Sorted and Unordered Map and Set, Deque, Forward List, Smart Pointers, Bitset and Random numbers.
awk - One true awk
stage0 - A set of minimal dependency bootstrap binaries
project-based-tutorials-in-c - A curated list of project-based tutorials in C
stb - stb single-file public domain libraries for C/C++
limine - Modern, advanced, portable, multiprotocol bootloader.
2048.wasm - 2048 written in C and compiled to WebAssembly
chibicc - A small C compiler