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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Go will be the server language of the future

4 点作者 sdomino超过 8 年前

1 comment

awinter-py超过 8 年前
I&#x27;ve spent the last 2 months on a from-scratch dev project with parts in C, C++, rust, go and python.<p>Comparing C to C++ gave me the most insight on what &amp; where golang is. Writing C code forces you to spend your time rewriting parts of C++ every time you try to do anything. The C++ typesystem has features that have penetrated the C++ compiler ecosystem (clang&#x2F;msvc&#x2F;g++ et al) because they matter to devs.<p>Go feels like C in this respect. The &#x27;empty interface approach&#x27; to polymorphism is the worst. Compare this to the 1970s approach to polymorphism in C, struct sockaddr_in. Go feels the same except there&#x27;s a greater carpal tunnel risk from typing braces and parens everywhere.<p>Operating generically on typed collections in go often means using the reflect package. go:generate is 1000x worse than the C preprocessor. Yikes.<p>the most impressive go project I&#x27;ve seen is grumpy, google&#x27;s in-house port of python to the golang runtime. It makes a serious case for the go garbage collection being best in class. The rest of the language isn&#x27;t there yet.