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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Nim in prod: 100k+ WebSockets on a small VM, lots of CPU and RAM to spare

11 点作者 Guzba大约 2 年前

1 comment

eindiran大约 2 年前
I haven&#x27;t used Nim in prod, but I messed around with it quite a bit a few years ago and it really hits a sweet spot in terms of language size (features, not ecosystem) and expressiveness. At its best, it really does feel like a tidier version of Python with static types.<p>A small thing in Nim that I regularly miss in Python: `discard` is incredibly useful while reading code and telegraphs the writer&#x27;s intentions to the reader much more clearly. Oh, and the simple null-coalescing operator. I haven&#x27;t written enough to see the macro system or FFI used to their fullest, but both features seem well designed. Definitely one of the more interesting recent languages in my opinion.