Readit News logoReadit News
Mathnerd314 · 2 years ago
> Why Nim

Does anyone else like Nim? I'm thinking about using it for a project.

khaledh · 2 years ago
Check out the discussion on my hobby kernel written in Nim: https://news.ycombinator.com/item?id=40962767

I tried to answer that question as best as I can after having implemented a few non trivial projects in Nim.

hetman · 2 years ago
The language has a lot going for it, however, its chosen scheme for identifier resolution undermines a lot of existing tooling people are used to using with other languages, which has kept a lot of people (including my self) away from seriously considering it.
michaelsbradley · 2 years ago
In practice its identifier resolution[1] has little impact on enjoyable and successful software development with Nim, even if it takes a little getting used to. nimgrep[2] is bundled with the compiler, but you may or may not make much use of it depending on your editor and development setup.

[1] https://nim-lang.org/docs/manual.html#lexical-analysis-ident...

[2] https://nim-lang.org/docs/nimgrep.html

khaledh · 2 years ago
When I first started using Nim I was a snake_case person, and I was also put off by camelCase as the preferred style. Fast-forward a few years and I got used to the camelCase and moved on, focusing on what I want to build instead of personal style preference.

The identifier case style issue almost never comes up in practice. My advice: if you really want to give Nim a chance, don't get hung up on this issue, just adopt the community convention and enjoy the language.

pietroppeter · 2 years ago
I have never heard any serious criticism about this feature for anyone actually trying the language.

When there was a proposal to remove it just for the sake of this kind of arguments I actually took time to think about it and I actually ended it liking it.

tines · 2 years ago
Can you elaborate more here? I don’t know anything about Nim.
ziotom78 · 2 years ago
I used Nim in several projects in the past. The language has much to love, but the tooling is awful. If you're fine coding using JOE/Nano/Pico, then I would say: go for it, you'll surely enjoy the experience! But if you are accustomed to IDEs to do refactoring/automatic formatting/test execution/logging/etc., it's better to look somewhere else. Even basic functionalities in the VSCode extension are buggy.
pietroppeter · 2 years ago
There has been good effort recently put in tooling https://forum.nim-lang.org/t/12083
PMunch · 2 years ago
Great language, would highly recommend at least trying it out.
danielEM · 2 years ago
I would give Nim a try only if there was a way to avoid indentation, curly braces rulez! ;-)
sa-code · 2 years ago
When mojo matures a bit I could recommend it over nim
Zamiel_Snawley · 2 years ago
As alluded to by the name, it is also purportedly constant time.
michaelsbradley · 2 years ago
Previous HN discussion, from about 2 weeks ago:

https://news.ycombinator.com/item?id=40887218