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.

Systems Languages: An Experience Report

19 pointsby henridfalmost 7 years ago

2 comments

eggyalmost 7 years ago
I like Zig as a C replacement for systems programming.<p><pre><code> [1] ziglang.org</code></pre>
c_or_goalmost 7 years ago
This is my experience also. Basically the only workable languages for serious systems programming are C and Go.<p>In many ways Go vastly improves on C but my Go programs are consistently between 1.5 and 5 times slower than equivalent C programs.<p>One way to see Go&#x27;s speed disadvantage is to solve problems on leetcode using both idiomatic C and idiomatic Go. Leetcode tells you the runtime of your solutions for large test sets.<p>I solved 50 random problems on leetcode in both languages, doing the best I could to avoid writing slow code, and Go is slower by a factor of 1.5 to 5, usually around a factor of 2.<p>I wish this wasn&#x27;t the case. I really prefer to use Go.
评论 #17313361 未加载