Our great sponsors
stricks | buffet | |
---|---|---|
8 | 12 | |
89 | 404 | |
- | - | |
0.0 | 7.8 | |
over 1 year ago | 8 months ago | |
C | C | |
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.
stricks
-
Buffet
> 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
buffet
-
The case against an alternative to C
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
Buffet
-
Hacker News top posts: Mar 8, 2022
Buffet – An All-inclusive Buffer for C\ (63 comments)
-
Buffet
(following a discussion from https://github.com/alcover/buffet/commit/eab9648ff19483f57fd...)
> if nobody's looking, we are go
https://github.com/alcover/buffet/blob/dee3eb65f37ca07ea3d27...
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
nbdkit
Odin - Odin Programming Language
ATS-Postiats - ATS2: Unleashing the Potentials of Types and Templates
jumprope-rs
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