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.

What's Zig got that C, Rust and Go don't have? [video]

33 pointsby kristoff_itover 1 year ago

2 comments

kristoff_itover 1 year ago
I wouldn’t normally post video content featuring myself but this video was particularly well received.<p>Since it was published, people pointed out two mistakes I made:<p>1. Go has been able for a while now to export dynamic libraries. My knowledge was from before that time and I also got confused, thinking that you could not export C ABI functions at all, while in fact you can. That said, having a runtime still makes Go not a viable C replacement in the most direct sense of the expression.<p>2. Zig used to only support pointer arithmetic by converting the pointer to an int, applying the operation, and then converting it back to a pointer. Since a few months ago, `[*]T` (and related) started supporting arithmetic. That’s a pointer type that you don’t touch directly often, as you normally would use a slice (ptr + len).
kaba0over 1 year ago
Why is Go included in the comparison, and not, say JS, OCaml, Haskell? It makes zero sense, and I swear that’s some marketing tactic for that language to sell itself.
评论 #38360411 未加载
评论 #38361367 未加载
评论 #38362430 未加载
评论 #38363821 未加载