Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

This is great news. Nim (and the team working on it) deserves much support and praise.

It is a language that enables C/C++ programmers to be more productive and makes performant programming approachable for beginners as well.



sort by: page size:

I am a big fan of Nim. It's one of the few languages that gets me excited lately as it feels like you can do pretty much anything that you could do in C++ but in simplified code and shorter dev times.

Can't recommend this enough: Nim is a very low-friction language with performance in the C/C++ range, also offers introspection and metaprogramming with a very powerful macro system.

Can't recommend this enough: Nim is a very low-friction language with performance in the C/C++ range, also offers introspection and metaprogramming with a very powerful macro system.

Agreed. I like Nim for game programming. It is much productive than programming in C/C++.

nim truly deserves more love,it is my lang to pick up this year,safe c++ with python syntax,great combination to me,and it is also mature,cross platform,production ready.

This is cool! Nim has been catching my interest lately, especially for writing compiled, imperative code, so I'm keen on seeing people trying it out.

Nim is an interesting language. Main features:

- Type system: Strong and static typings.

- Support Generics (Unlike Go)

- Support Modules (Unlink C++)

- Multiple and optional GC.

- Metaprogramming support.

- Executed binary.

What excites me most is the efficiency as C.

I hope it'll get mature more this year. At least for the Javascript backend, so that i could write Nim for frontend (with bindings for popular JS frameworks like React, Vue,..) , too.


I'm currently trying to decide if Nim is my C replacement.

On the one hand, it isn't C++, and it has real type safety, and it interfaces with existing C libraries very easily.

On the other hand, it is rapidly getting very complicated, and seems almost eager to become another C++ in terms of sheer volume of language features.


As someone learning programming, should I try nim for my first compiled language, instead of C++? I know it's likely harder to find answers in the Internet, but at the same time it looks easier, coming from Python and JS.

If nim picks up pace in a few years and I already have a sense of it, it may be a good for prospects too.


I chose to learn nim coming from Python, because found C++ to be annoying and difficult. It feels like python but faster. I have compiled to to JS and integrated with complex C++ libraries. I like it so far. Metaprogramming is cool feature. Community is also really helpful.

Yes, and as far as I'm concerned Nim has one of the best C++ interop capabilities out of any language bar C++ itself.

Nim seems to be doing pretty well and it compiles to C. I've not really used it but it does look pretty good.

Nim is nice. I Don't Like It™ because it compiles to C, instead of a True™ compiler intermediate representation, but it's a solid language.

Very interesting. What I'm curious about is how this language is compiled, the implication seems to be that it gets translated to C/C++ which seems to overlap a lot with what we are doing with Nim :)

Glad to see Nim on HN again.

For those of you who haven't tried the language out, I highly recommend it. I have even been suggesting it to students who want to get out the mainstream language bubble (C++, JavaScript, Python, etc.) so that they can learn something different. They have really liked it!


I've been using Nim in side projects for the past year or so. I really love the language, to the point where its replaced Python/Node as my language for utilities. Some of the qualities I like:

1) Its really easy to get started with. The default runtime has a GC for memory management, and the typing system is pretty similar to other popular languages. You can pick up the syntax in a day, the basic semantics in a weekend, and the more advanced semantics in a month.

2) Its fast and reliable. If the code compiles, it probably works, and it's probably a tier faster than a scripting language. Maybe not as bulletproof as Rust, but the ease of use is worth it for me. It can even reach C speeds, but that does require some advanced knowledge. Again, the default runtime is probably fast enough.

3) Powerful language features. I know there are a lot of people out there happy using C. I'm glad that works for them, but features like case objects, generics, and closures are part of the abstraction tools that I use to get stuff done. Nim also boosts what might be the best macro system for a static typed language, which is very helpful for framework developers.


Actually quite some work went into making Nim integrate better with C++ code, C++ templates especially I guess.

Nim is very underrated. It's among the fastest, has a python-like syntax and can compile to C, JavaScript and other languages.

Love Nim !

Key points for me:

- familiar, easy to read syntax

- great performance

- standalone executables / ease of deployment

- easy interfacing with C and C++ code

I would love to see its community grow and see more available libs.

next

Legal | privacy