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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ziglang – robust, optimal, and maintainable programming language

44 点作者 rodmena大约 6 年前

7 条评论

littlestymaar大约 6 年前
&gt; Performance and Safety: Choose Two<p>How does Zig manages its memory ? I couldn&#x27;t find any info on a garbage collector, so I assume the memory isn&#x27;t dynamically-managed.<p>If it&#x27;s statically managed, how is it done ? I it using some kind of region-based checking, like Rust with its borrow-checker ? Or is it 100% in the hands of the programmer ? (In which case, the «safety» argument is a bit strange).
评论 #19854275 未加载
评论 #19854276 未加载
rodmena大约 6 年前
Zig has a number of useful constructs such as sum types, compile-time introspection, improved error handling and no preprocessor!
dang大约 6 年前
It&#x27;s great that people are interested in this, but the topic itself has had significant attention in the past year, which is the criterion we use for dupes (<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;newsfaq.html" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;newsfaq.html</a>).<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19811183" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19811183</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19610199" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19610199</a><p><a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=Zig%20points%3E30&amp;sort=byDate&amp;dateRange=all&amp;type=story&amp;storyText=false&amp;prefix&amp;page=0" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=Zig%20points%3E30&amp;sort=byDate&amp;...</a>
networkimprov大约 6 年前
Interested to hear what folks see as the major markets for Zig...<p>EDIT: By <i>markets</i> I meant application categories, e.g. OS kernel, firmware, embedded, etc.<p>I&#x27;d already gathered that its closest competitors are C and Rust.
评论 #19853943 未加载
评论 #19854027 未加载
评论 #19854047 未加载
matthewbauer大约 6 年前
What does Zig offer over something like Rust?
评论 #19854311 未加载
voldacar大约 6 年前
Zig truly is a better C, glad to see it getting so much attention around these parts
brianpgordon大约 6 年前
What do you mean by &quot;optimal?&quot; You mean runtime performance?
评论 #19853964 未加载