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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Assorted thoughts on Zig and Rust (2020)

12 点作者 ducaale将近 3 年前

3 条评论

celeritascelery将近 3 年前
It is really interesting to see the trade offs. I have never read something before from someone who was familiar with both languages.<p>The comptime reflection in zig seems particularly powerful. Proc macros are just so difficult to write that I often just introduce a bunch of code duplication instead. As const rust gets better and better, I wonder if you could eventually add something like comptime to rust.
评论 #32453499 未加载
mustache_kimono将近 3 年前
I&#x27;ll paraphrase something I once heard, -- &quot;There are two types of Rust programmers: 1) Functional programmers who want to go fast&#x2F;er, and 2) those that want to type check their assembly.&quot; This is an article for type 2).
childintime将近 3 年前
It&#x27;s a really good review &#x2F; set of thoughts, mostly still representing the current understanding of Rust and Zig.<p>Currently the page 404&#x27;s, this (still) does work:<p><pre><code> https:&#x2F;&#x2F;webcache.googleusercontent.com&#x2F;search?q=cache:_Xrwm0yymL4J:https:&#x2F;&#x2F;scattered-thoughts.net&#x2F;writing&#x2F;assorted-thoughts-on-zig-and-rust&#x2F;</code></pre>