How mature is the standard library? How abundant are third party libraries?
Ask HN: Does anyone use Nim language in production?
1–10 of 86 posts
Re: Ask HN: Does anyone use Nim language in production?
#2Re: Ask HN: Does anyone use Nim language in production?
#3> How has your experience been compared to your previous tech?
Previous to using Nim I was primarily using Python. This was a few years ago now, but recently I was working on a project in Python and found myself yearning for Nim. There were multiple reasons for this, but what stuck with me was how much I missed static typing. The Python project used type hints which I found rather awkward to use (of course the fact that we didn't enforce their use didn't help, but it felt like such a half-baked solution). Dependencies very often required multiple guesses and searches through stack overflow to get working. And the resulting program was slow.
As far as I'm concerned, Nim is Python done right. It produces fast dependency-free binaries and has a strong type system with support for generics.
Of course, that isn't to say that Nim is a perfect language (but then what is). For example, JetBrains has done a brilliant job with PyCharm. Nim could use a good IDE like PyCharm and with its strong typing it has the potential to work even better.
> How mature is the standard library?
To be honest the standard library does need some work. In the next release we do plan on making some breaking changes, but we always lean on the side of keeping compatibility even though Nim is still pre-1.0. Of course, sometimes this is not possible.
> How abundant are third party libraries?
Not as abundant as I would like. Great news is that you can help change that :)
The Nimble package manager is still relatively new, but you can get a pretty good idea of the third party libraries available by looking at the package list repo[1].
Hope that helps. Please feel free to AMA, I'd love to introduce you to our community.
1 - https://github.com/nim-lang/packages/blob/master/packages.js...
Re: Ask HN: Does anyone use Nim language in production?
#4Judging by the upvotes there is a lot of interest in hearing answers to this question and yet there are few comments so far. I will share my thoughts but keep in mind that I am (extremely) biased as I am one of the core Nim devs. > How has your experience been compared to your previous tech? Previous to using Nim I was primarily using Python. This was a few years ago now, but recently I was working on a project in Py…
What would you say are the advantages of Nim over a language like Go? I see a lot of similar "value add" statements.
Re: Ask HN: Does anyone use Nim language in production?
#5Having used Python, Go, C, Perl, Java, Nim is a breeze to code in. Occasionally the compiler glitches and you have to delete nimcache. Very rarely it fails to compile something and you have to rewrite few lines differently. Not an issue. Build frequently to avoid any surprise.
> How mature is the standard library?
Not that much: it lacks examples and helper procedures that you would expect, yet I still feel more productive with Nim than other languages.
> How abundant are third party libraries?
Look at the packages. Most of the basic stuff it's there. For small and medium projects it's usually not an issue, occasionally I have to wrap functions from a C library.
If you are looking for big, fancy libraries like Pandas and Sklearn, they are just not there. Use Nim for tool and services instead.
Re: Ask HN: Does anyone use Nim language in production?
#6Re: Ask HN: Does anyone use Nim language in production?
#7I'm now using it extensively for a confidential computing and block chain project, which is quite exciting.
Re: Ask HN: Does anyone use Nim language in production?
#8Judging by the upvotes there is a lot of interest in hearing answers to this question and yet there are few comments so far. I will share my thoughts but keep in mind that I am (extremely) biased as I am one of the core Nim devs. > How has your experience been compared to your previous tech? Previous to using Nim I was primarily using Python. This was a few years ago now, but recently I was working on a project in Py…
Thanks for being honest with everything, I found this to be a very balanced answer. What would you say are the advantages of Nim over a language like Go? I see a lot of similar "value add" statements.
> What would you say are the advantages of Nim over a language like Go? I see a lot of similar "value add" statements.
In all fairness I haven't given Go a proper try. But my main problems with it, based on what I've seen of it, are the following:
* Lack of generics
* Lack of exceptions
* I prefer the Python-like syntax of Nim
* Metaprogramming in Nim is fun and powerful
* Lack of (official) package manager
Re: Ask HN: Does anyone use Nim language in production?
#9I've just started writing a few scripts I'd normally use Python for (no production) and have been impressed with the speed and binary sizes. Nim in Action (book) is really good and what is missing to get the beginner started. I'd like to see a PyCharm like IDE for Nim as well, but Vim seems to work well.
Re: Ask HN: Does anyone use Nim language in production?
#10I've just started writing a few scripts I'd normally use Python for (no production) and have been impressed with the speed and binary sizes. Nim in Action (book) is really good and what is missing to get the beginner started. I'd like to see a PyCharm like IDE for Nim as well, but Vim seems to work well.
Spin up VS Code and install the Nim plugin. Still not PyCharm, but damn close for my usage!