Our great sponsors
|over 1 year ago||8 months ago|
|GNU General Public License v3.0 only||GNU General Public License v3.0 only|
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.
> I was thinking about Simple Dynamic Strings but I like this better.
Oh! here's my chance to plug https://github.com/alcover/stricks ! It follows the same principle as SDS (i.e user-facing type is char*) but is much faster (see bench) and frankly nicer to read through.
Not as feature complete, though.
Speeding past Redis/SDS strings
Mine is also variable (see https://github.com/alcover/stricks/blob/main/src/stx.c). Maybe they switch more often that necessary ?
The threads were very interesting. I got back to work and it's time to talk speed ! https://github.com/alcover/stricks#speed
Show HN: Stricks, managed C strings library
2 projects | news.ycombinator.com | 25 Mar 2021
The case against an alternative to C
9 projects | news.ycombinator.com | 8 Aug 2022
Made this C lib for exactly the reasons you mention. I love C but got mad at the constant bounds errors and copying.
One String to Rule Them All
2 projects | reddit.com/r/programming | 6 Jul 2022
Buffet2 projects | reddit.com/r/programming | 6 Jul 2022
Hacker News top posts: Mar 8, 2022
4 projects | reddit.com/r/hackerdigest | 8 Mar 2022
Buffet – An All-inclusive Buffer for C\ (63 comments)
(following a discussion from https://github.com/alcover/buffet/commit/eab9648ff19483f57fd...)
> if nobody's looking, we are go
And otherwise, when is it freed?
The refcount mechanism looks wrong to me: either the ownership of internal data is shared between instances (it seems it is not the case), either the owner is well defined and does not need a refcount.
It appears that the refcount is used to avoid freeing the owner data if Buffet views are still alive. But using the views after freeing the referenced data is incorrect usage anyway, so it looks like defensive programming, trading a use-after-free for a leak.
What are some alternatives?
asciiMol - Curses based ASCII molecule viewer for linux terminals.
SDS - Simple Dynamic Strings library for C
swift - The Swift Programming Language
librope - UTF-8 rope library for C
EmeraldC - The Ultimate C Preprocessor
Odin - Odin Programming Language
ATS-Postiats - ATS2: Unleashing the Potentials of Types and Templates
Jai-Community-Library - Tutorials and Cheatsheet for Jai, written by its community
jpeg-sandbox - Interactively edit individual DCT blocks in any JPEG image in the browser.
utf8 - utf8 C library by Jeff Bezanson