TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: I made a library for dynamic stack strings in C

2 点作者 TobinCavanaugh11 个月前
I got sick of the manual memory management of building out strings for paths or debug info etc, and made this library to help with that. I also don't like using fixed size buffers, feels icky. Includes arena like functionality if you're using GCC.

1 comment

Gibbon111 个月前
I&#x27;ve been playing with this arena bump allocator.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;gilzoide&#x2F;c-allocators">https:&#x2F;&#x2F;github.com&#x2F;gilzoide&#x2F;c-allocators</a><p>I&#x27;ve been using it with an event driven code where after an event is fired off and returns the handler just hard resets the arena.<p>You could probably use something like that as well.<p>Either way I support not mixing manual memory management with business logic.