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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Nim 1.2

358 点作者 narimiran大约 5 年前

18 条评论

intrepidhero大约 5 年前
I've been doing the nim track on exercism.io (no affiliation, just a user) for the last two weeks. The mentors on the track have been fantastic. If you're looking for a "solve a problem and get some external feedback" approach to learning the language it's pretty good.
评论 #22772164 未加载
评论 #22772626 未加载
评论 #22772699 未加载
iimblack大约 5 年前
Dup is very interesting to me. Does that mean that in Nim all functions will be impure by default, and that it's considered idiomatic to modify the input? I guess it's nice that they're trying to make behavior consistent. It just seems like the opposite of the recent directions I've seen other languages take.
评论 #22772277 未加载
评论 #22772655 未加载
sergiotapia大约 5 年前
If you would like to see some simple to parse Nim code and get a feel for what a &quot;1 month of experience during weekends&quot; Nim looks like, check out my project:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;sergiotapia&#x2F;torrentinim" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sergiotapia&#x2F;torrentinim</a><p>Nim is a very interesting language, with a lot of upsides. It just needs that killer framework to get the ball rolling and allow devs to solve business needs quickly. Once that&#x27;s done I think Nim will grow a lot! Tiny binaries, static binaries, fast, low memory usage, macros, compiles to C.
评论 #22771220 未加载
评论 #22771516 未加载
评论 #22772680 未加载
nepeckman大约 5 年前
The collect macro is awesome, and way more idiomatic Nim than list comprehensions. Nim continues to hit the sweet spot between performance and developer ergonomics.
DeathArrow大约 5 年前
Nim might be great. But how can a great language get traction if nobody big is behind it?<p>Java and Python are being pushed by Silicon Valley and universities, Go is being pushed by Google, Kotlin is being pushed by Google, C# is backed by Microsoft and some big companies.<p>Who can help Nim, or Crystal, or Rust or other new language?<p>I look at many of them from time to time, see interesting developments, see exciting things but I refuse to learn the languages, their ecosystem and frameworks from the fear I have I will lose lots of valuable time since I might not be able to earn my living using them.
评论 #22779351 未加载
评论 #22792505 未加载
评论 #22781490 未加载
dom96大约 5 年前
By far my favourite feature of this release, dark mode in docs: <a href="https:&#x2F;&#x2F;nim-lang.org&#x2F;docs&#x2F;lib.html" rel="nofollow">https:&#x2F;&#x2F;nim-lang.org&#x2F;docs&#x2F;lib.html</a>
评论 #22772001 未加载
评论 #22775184 未加载
评论 #22772668 未加载
评论 #22772468 未加载
alberth大约 5 年前
I really with more people used NIM for web development. It really seems like the best of all worlds (e.g. perf, developer ergonomics, productivity, etc).
评论 #22771863 未加载
评论 #22771507 未加载
评论 #22771479 未加载
评论 #22771711 未加载
评论 #22771899 未加载
jakear大约 5 年前
&gt; If you were relying on some edge case and&#x2F;or buggy behaviour which is now fixed, try if --useVersion:1.0 gives you back the results you expect to see. If that doesn’t work and you need the old behaviour, please open an issue in our bug tracker and we will try to make it work in future bugfix releases<p>So useVersion doesn&#x27;t simply checkout the old codebase, but they still promise to maintain all prior version&#x27;s bugs? Seems like a losing battle to me... why not just tell people relying on version 1.0 behaviour to use version 1.0 and create tooling to make sure switching between versions is easy (a. la. nvm)?
评论 #22772420 未加载
hartator大约 5 年前
Very bullish on Nim. It&#x27;s Python with C-level performance.
rishav_sharan大约 5 年前
I am currently working on a tiny game in nim using Raylib. I had some initial friction with Nim, but i like using the language now. You&#x27;ll do well to stop trying to use Nim as an oops language and just use it as a better C. The language syntax is clean, and the std lib has all that I need.<p>One bit which I still hate is simply how imports work in Nim. My project pretty much has a header like file containing function and variable signatures which can be called from other files.<p>For someone used to modern languages, it just feels so archaic.<p>But overall it is still a fantastic language and I am excited to try the ARC gc
评论 #22777268 未加载
wmock大约 5 年前
As someone who&#x27;s heard of Nim, can someone who&#x27;s used it tell me a little bit more about its benefits and how it compares to other common languages like JavaScript, Python, etc?
评论 #22774209 未加载
iffycan大约 5 年前
Among other great additions, I like the addition of compilesettings [1], which will give programs more visibility into how they were compiled.<p>[1] <a href="https:&#x2F;&#x2F;nim-lang.org&#x2F;docs&#x2F;compilesettings.html" rel="nofollow">https:&#x2F;&#x2F;nim-lang.org&#x2F;docs&#x2F;compilesettings.html</a>
dzonga大约 5 年前
hope they nim developers, port a lot of python data science tools e.g pandas, numpy etc so they can increase adoption in the language. Julia is supposed to fill that space, but feel strongly nim is better positioned
评论 #22776346 未加载
评论 #22776594 未加载
totalperspectiv大约 5 年前
Very excited to see gc:arc make it into stable.
评论 #22771117 未加载
war1025大约 5 年前
Irrelevant, but I spent the entire day reading this headline as NVim, i.e. Neovim.<p>These comments make a lot more sense now.
predators372大约 5 年前
Oooo, wow collect looks so much cleaner. I can&#x27;t wait to get home and play with it!
评论 #22773495 未加载
rattray大约 5 年前
Does Nim have an ORM or querybuilder as good as SQLAlchemy yet?
评论 #22776102 未加载
flywind大约 5 年前
Nice!