TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Assorted thoughts on Zig and Rust (2020)

12 pointsby ducaalealmost 3 years ago

3 comments

celeritasceleryalmost 3 years ago
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_kimonoalmost 3 years ago
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).
childintimealmost 3 years ago
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>