Live data from Hacker News

Nim: Scripting Ease in a Compiled Language

junglecoder.com

1–10 of 169 posts

Re: Nim: Scripting Ease in a Compiled Language

#2
I've been considering getting into Nim for a while now as something more lightweight/terse to write thin CLI utilities in. I'm glad to hear that it's performing well for this usecase. It's a very attractive alternative to Rust for it's simplicity and terseness.

I still haven't gotten around to picking it up though, these days I just use QuickJS for anything that needs to be reasonably portable and thin.

Maybe next side project...

Re: Nim: Scripting Ease in a Compiled Language

#3
Is there anyone using Nim either in side projects or in production that can comment on how they like it?

I keep hearing about Nim and it sounds interesting, but I'm not sure I have the mental capacity right now to do a deep dive into the language and build something with it. I'd like to at some point soon though.

Re: Nim: Scripting Ease in a Compiled Language

#4
post #3

Is there anyone using Nim either in side projects or in production that can comment on how they like it? I keep hearing about Nim and it sounds interesting, but I'm not sure I have the mental capacity right now to do a deep dive into the language and build something with it. I'd like to at some point soon though.

I've used Nim a bit for side projects (on and off, even back when it was called Nimrod). I found it really really powerful once I got past the initial bump.

It's a fairly small learning curve to be honest, especially if you're familiar with reading Python.

What I love about it is the small binaries.

Re: Nim: Scripting Ease in a Compiled Language

#5
post #3

Is there anyone using Nim either in side projects or in production that can comment on how they like it? I keep hearing about Nim and it sounds interesting, but I'm not sure I have the mental capacity right now to do a deep dive into the language and build something with it. I'd like to at some point soon though.

I used Nim for a few projects. My best description is that it's fun, but everything feels kinda off when writing stuff.

Re: Nim: Scripting Ease in a Compiled Language

#7
post #3

Is there anyone using Nim either in side projects or in production that can comment on how they like it? I keep hearing about Nim and it sounds interesting, but I'm not sure I have the mental capacity right now to do a deep dive into the language and build something with it. I'd like to at some point soon though.

I used it in production for a small yet fairly critical utility and it worked out very well.

Re: Nim: Scripting Ease in a Compiled Language

#8
post #4
post #3

Is there anyone using Nim either in side projects or in production that can comment on how they like it? I keep hearing about Nim and it sounds interesting, but I'm not sure I have the mental capacity right now to do a deep dive into the language and build something with it. I'd like to at some point soon though.

I've used Nim a bit for side projects (on and off, even back when it was called Nimrod). I found it really really powerful once I got past the initial bump. It's a fairly small learning curve to be honest, especially if you're familiar with reading Python. What I love about it is the small binaries.

Can the binaries be statically compiled similar to go?

Re: Nim: Scripting Ease in a Compiled Language

#9
post #3

Is there anyone using Nim either in side projects or in production that can comment on how they like it? I keep hearing about Nim and it sounds interesting, but I'm not sure I have the mental capacity right now to do a deep dive into the language and build something with it. I'd like to at some point soon though.

I've used Nim for most of my personal projects for the past ~2 years, and it's generally enjoyable. There are a lot of useful language features. C interop, generics, tagged unions (I always miss these in languages without them), traits (powerful duck typing), channels, generators. Metaprogramming via templates/macros if you want to get crazy. Lots of rope to hang yourself, so to speak.

I wouldn't choose to use it in production, mostly because of the developer experience. The documentation and tooling are both pretty bad, and the compiler errors can be arcane (especially when using generics, or when the error only surfaces during C compilation).

Re: Nim: Scripting Ease in a Compiled Language

#10
post #5
post #3

Is there anyone using Nim either in side projects or in production that can comment on how they like it? I keep hearing about Nim and it sounds interesting, but I'm not sure I have the mental capacity right now to do a deep dive into the language and build something with it. I'd like to at some point soon though.

I used Nim for a few projects. My best description is that it's fun, but everything feels kinda off when writing stuff.

Can you please elaborate? What about it feels off?
Post reply on HN