Managed C strings library
Simple Dynamic Strings library for C
> in-band signalling as C's standard strings
Neat analogy !
> reference count ... copies ... only then is StringB copied
You're right I should - and will - use this. But note it won't cover cases where the user modifies/copies the string from outside the API. The lib won't be aware.
> your idea is conceptually brilliant!
Oh I wish the neg offset header was my invention ! Alas it was at least used in Microsoft' BSTR and later by the famous antirez/sds (https://github.com/antirez/sds)
> no nested macros
I hear you. I thought it made them more readable.
> is all that's going on
I also (maybe naively) pretend to make mem faults occur less/at all.
Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.
Speeding past Redis/SDS strings
5 projects | reddit.com/r/programming | 23 Jun 2021
11 projects | news.ycombinator.com | 7 Mar 2022
Langage C : ma librairie de strings met Redis en soins intensifs
1 project | reddit.com/r/france | 29 Jun 2021
Les strings en C : pénibles et risqués. Alors j'ai écrit cette librairie.
1 project | reddit.com/r/france | 12 Mar 2021
Strings in C - what about now, Reddit ?
1 project | reddit.com/r/programming | 11 Mar 2021