Submission timeline
2007–2026One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.
First comments on top threads
HN comment orderI think the library is great, and don't have a whole lot to say about it, but wanted to mention one tangentially related thing: The README on this repo is awesome. Opening up with advantages and disadvantages? Awesome. Plenty of code examples covering all of the major use cases? Awesome. Quick overview of the internals? AWESOME! Quick two line note about how to use the library in your project? Awesome. I'm tempted to rant about how I wish documentation was…
I'm surprised this is aliased to char*, not const char*. The benefit of the aliasing is convenience, but the main risk is absent-mindedly passing it to a libc function that modifies the string without updating the SDS metadata. Const would result in a compiler warning while letting the intended use cases (e.g., the printf example) work fine.
Hi, author here. May make sense to make SDS in perspective given a few comments I'm reading here. 1. Yep, more than "strings" SDS may be consider a library for dynamic buffers, especially from people coming from C++ or higher level languages. However I think that for C, it makes sense to provide a very low level thing like that. 2. In practice, if you see how SDS is used (extensively) inside Redis, it normally models things where you would…
The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.
- Breakout years
- 3
- Total points
- 438
- Total comments
- 257
100+ points or 50+ comments
reference only — not used in Hall rules or ranking
reference only — not used in Hall rules or ranking
Every submission
| Date | Title as submitted | By | Points | Comments |
|---|---|---|---|---|
| 2014-02-06 | Simple Dynamic Strings library for CFirst breakout · Best thread | antirez | 214 | 127 |
| 2017-01-03 | Simple Dynamic Strings | Anilm3 | 1 | 0 |
| 2018-10-03 | Simple Dynamic Strings library for C | striking | 2 | 0 |
| 2019-12-03 | Simple Dynamic Strings library for C, compatible with null-terminated strings | pcr910303 | 107 | 83 |
| 2021-06-22 | Simple Dynamic Strings library for CHall induction | scapbi | 3 | 0 |
| 2025-08-25 | SDS: Simple Dynamic Strings library for CLatest 20+ point return | klaussilveira | 111 | 47 |
