Hacker GitHub

← All repos

alcover/buffet

View on GitHub ↗ ★ 414 C

All-inclusive Buffer for C

8 mentions on Hacker News by 3 people: 2 stories, 6 comments · first 2022-03-08 · latest 2022-12-03

Mentions per year 8 mentions · busiest year 2022 (8)
20082026
  1. …parent is blocked until no views are left on it. I made a C String lib using CoW. It works well: https://github.com/alcover/buffet
    comment by alcover · 2022-12-03 · in Show HN: A nice C string API
  2. …comfy stuff like let s = "string.." s += "handled" The runtime Buffer type is already operational ( https://github.com/alcover/buffet )
    comment by alcover · 2022-11-28 · in Everything I wish I knew when learning C
  3. …You can have both your models in a single type. That's what my buffer lib achieves : SSO + slicing. https://github.com/alcover/buffet
    comment by alcover · 2022-08-27 · in Ushering out strlcpy()
  4. …exactly the reasons you mention. I love C but got mad at the constant bounds errors and copying. https://github.com/alcover/buffet
    comment by alcover · 2022-08-09 · in The case against a C alternative
  5. ▲ 12
    Proposal for a full-fledged C String
    story by alcover · 2022-07-07 · 12 comments
  6. …does nothing as well so it becomes just a leak. I seem to have solved this with a `wantfree` flag. https://github.com/alcover/buffet/commit/ade05630aafdf5c940e...
    comment by alcover · 2022-03-09 · in Buffet – An All-inclusive Buffer for C
  7. (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…
  8. ▲ 206
    Buffet – An All-inclusive Buffer for C
    story by Nakili · 2022-03-08 · 76 comments