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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: HypergraphZ – A Hypergraph Implementation in Zig

65 点作者 yamafaktory8 个月前

5 条评论

samatman8 个月前
I see that this is a second implementation, the first being in Rust: <a href="https:&#x2F;&#x2F;github.com&#x2F;yamafaktory&#x2F;hypergraph">https:&#x2F;&#x2F;github.com&#x2F;yamafaktory&#x2F;hypergraph</a><p>I&#x27;ve found that Zig is an excellent tool for implementing data-structure-oriented libraries. Comptime genericity is simple to understand and use, providing a C interface is very easy, and libraries take an allocator, so any memory-safety issues are the consumer&#x27;s problem. If you want to use it from a memory-safe language, well, all of those have C FFIs so far as I know, Rust very much included, so you can.<p>A hypergraph is clearly a data structure which demands a lot of cyclic references, no getting around that, so I&#x27;m curious: can you compare and contrast the experience of implementing this in Rust vs. Zig?
评论 #41513946 未加载
评论 #41515723 未加载
评论 #41516189 未加载
评论 #41513823 未加载
reaanb28 个月前
How does this compare to a relational database, where hyperedges are represented by tables and vertices by values?
评论 #41514077 未加载
bigtuna7118 个月前
Really cool! I would be interested in seeing a hypergraph isomorphism algorithm implemented in Zig.
redbell8 个月前
I don&#x27;t know why, but I feel <i>Zigergraph</i> would be a meaningful name :)
评论 #41518300 未加载
FjordWarden8 个月前
Do you think this can be useful for a computational algebra system?
评论 #41514884 未加载