Ring-Buffer
A simple ring buffer (circular buffer) designed for embedded systems. (by AndersKaloer)
buffet
All-inclusive Buffer for C (by alcover)
Ring-Buffer | buffet | |
---|---|---|
1 | 12 | |
476 | 410 | |
- | - | |
5.6 | 2.5 | |
5 months ago | 6 months ago | |
C | C | |
MIT License | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
Ring-Buffer
Posts with mentions or reviews of Ring-Buffer.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-08.
-
Library for generic ringbuffer that can be filled via DMA?
I haven't found any that satisfies my requirements. The ones I found (e.g. this one) requires me to write my own code to update internal state if I use e.g. a DMA transfer from UART to fill it.
buffet
Posts with mentions or reviews of buffet.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-08.
-
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.
https://github.com/alcover/buffet
-
Proposal for a full-fledged C String
Dynamic allocation, SSO, views, refcounting, etc.. are spread on various implementations.
C++ separates string and string_view. And they're not fully compatible. (Ex. you can't concat cross-type !?).
Rust has str, &str, String Box, ... ?
In the spirit of "a slice of a string is still a string", why not pack it all into a single type ? And offer security in the process.
Here's the scheme : https://github.com/alcover/buffet/raw/main/assets/schema.png
Here's the code : https://github.com/alcover/buffet
-
One String to Rule Them All
Buffet
- Buffet - polymorphic C buffer in 16 bytes with SSO, views, refcount
- Buffet – An All-inclusive Buffer for C
-
Hacker News top posts: Mar 8, 2022
Buffet – An All-inclusive Buffer for C\ (63 comments)
- Buffet
-
Langage C : un type polymorphe de buffer avec SSO, Views, refcount, en seulement 16 octets
Buffet
What are some alternatives?
When comparing Ring-Buffer and buffet you can also consider the following projects:
lfbb - A Lock Free Bipartite Buffer Library written in standard C11
asciiMol - Curses based ASCII molecule viewer for terminals.