Hacker News new | ask | show | jobs
by quangio 2619 days ago
+1 Nim is a really nice and simple language. Extremely easy FFI and Python-like. For me, using Nim and Julia to write small "scripts" for my data science (student) works (processing 10Gb-20Gb of data) makes me feel quite productive compared to something like Go (too `ugly` for me), Python (too slow)
1 comments

Are there any Nim benchmarks vs. Go, Crystal, Python, Rust, etc.?
You can find them although they tend to be out of date and/or piecemeal. I think they're still useful.

For example:

https://github.com/drujensen/fib

https://gist.github.com/sdwfrost/7c660322c6c33961297a826df4c...

https://github.com/kostya/benchmarks

My general sense is that Nim is most competitive as an alternative to Python and/or things like Julia, in that it's as expressive and easy to understand as those, but has performance closer to C or Rust than something like Python. Julia is similar to Nim but I think Nim seems cleaner in its implementation overall, and targets much more general use scenarios.

I've been really impressed by Nim. There are some little things that have irritated me, like case insensitivity, but I wish it got more traction in the community. Right now the only thing that it doesn't seem to have going for it is library support. For the numerical applications I do I'd prefer it over everything else, except everything else has huge resource bases, so something that's already packaged in those languages would have to be done from scratch in Nim, which isn't feasible.

Isn't the stdlib problem made less of a problem by the easy FFI to C? (it wasn't easy last time I tried btw)
As far as I understanf, you can call numpy from nim using a lightweight wrapper.