stclib/STC
View on GitHub ↗ ★ 2,005 C
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.
11 mentions on Hacker News by 9 people: 3 stories, 8 comments · first 2022-03-26 · latest 2025-08-17
20082026
-
…assumed GCC https://github.com/P-p-H-d/mlib/blob/4b9c213831624486814a483... STC: assumed -fopenmp https://github.com/stclib/STC/blob/de7313a58f748d9a6da751eb9... CC: assumed clang https://github.com/JacksonAllan/CC/blob/main/tests/run_unit_…
comment by fuhsnn · 2025-08-17 · in Comparison of different C libraries providing generic containers capabilities -
▲ 5
STC 5.0 – A comprehensive STL-like template library in Cstory by operamind · 2025-01-15 · 0 comments
-
▲ 2
C Smart Template Containersstory by jcbhmr · 2024-10-30 · 0 comments
-
I went down a rabbithole and wow. Found a comment from the author of https://github.com/stclib/STC apparently and then came across this example: https://stackoverflow.com/a/76887723 int coro_a(struct a* g) { cco_routine (g) {…
comment by r1chardnl · 2024-10-08 · in Show HN: Compiling C in the browser using WebAssembly -
…true, I've seen a bunch of libraries implement SSO in C: https://nullprogram.com/blog/2016/10/07/ https://github.com/stclib/STC/blob/master/include/stc/cstr.h https://github.com/mystborn/sso_string/blob/master/include/s...
comment by camel-cdr · 2023-07-09 · in The Development of the C Language (1993) -
…promising, though I haven't spent much time looking at it so I can't comment on it's memory safety: https://github.com/tylov/STC
comment by rychco · 2023-04-07 · in C Strings and my slow descent to madness -
▲ 29
STC – Smart Template Containers for Cstory by signa11 · 2023-03-12 · 9 comments
-
…small and has many bad parts. You can use something like STC [1] to even the playing field. [1] https://github.com/tylov/STC
comment by camel-cdr · 2023-02-19 · in Lessons learnt while trying to modernize some C code (2022) -
…[1] https://numpy.org/devdocs/reference/random/bit_generators/sf... [2] https://github.com/tylov/STC/blob/master/docs/crandom_api.md [3] https://arxiv.org/abs/1704.00358 [4] https://espadrine.github.io/blog/posts/shishua-the-faste
comment by camel-cdr · 2023-02-17 · in A Brief History of Random Numbers -
Maybe not it, but STC ( https://github.com/tylov/STC ) and CTL ( https://github.com/glouw/ctl ) both use this define method for creating data structures and linking up compare functions for them.
comment by KapKap55 · 2022-05-24 · in Modern programming languages require generics -
And this one may be even "better" :) https://github.com/tylov/STC
comment by florianist · 2022-03-26 · in Uthash – C macros for hash tables and more