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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Sds vs. GB: C string libs, copy or coincidence?

3 点作者 nephewtom5 天前
I was testing a bunch of different of C&#x2F;C++ libraries to manage strings, and found this coincidence:<p>sds (Simple Dynamic Strings from antirez, Redis creator): https:&#x2F;&#x2F;github.com&#x2F;antirez&#x2F;sds&#x2F;blob&#x2F;master&#x2F;README.md?plain=1#L33<p>gb (gb single file libs from gingerBill, Odin language creator): https:&#x2F;&#x2F;github.com&#x2F;gingerBill&#x2F;gb&#x2F;blob&#x2F;master&#x2F;gb_string.h#L71<p>Copy or coincidence?

4 条评论

jqpabc1234 天前
Object Pascal (Delphi, Free Pascal) offered this as a native part of the language over 2 decades ago.<p>But of course, we all know that real programmers don&#x27;t use Pascal and instead prefer to re-invent it with C syntax.
ecesena4 天前
I&#x27;d say copy, but don&#x27;t see any issue with that?<p>Looking at the git blame, antirez wrote that 12y ago, gingerBill 9y ago. Licenses look both permissible.
nephewtom5 天前
May be... inspiration...
pestatije4 天前
thats whats called a &quot;false dilemma&quot;