3 ms·
+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 (stude
by quangio 7y 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)
- everdev 7y agoAre there any Nim benchmarks vs. Go, Crystal, Python, Rust, etc.?
- maow83jejj 7y agoYou 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://github.com/drujensen/fib https://gist.github.com/sdwfrost/7c660322c6c33961297a826df4cbc30d https://gist.github.com/sdwfrost/7c660322c6c33961297a826df4c... https://github.com/kostya/benchmarks 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.
- 0xdeadbeefbabe 7y agoIsn't the stdlib problem made less of a problem by the easy FFI to C? (it wasn't easy last time I tried btw)
- jp_sc 7y agoAs far as I understanf, you can call numpy from nim using a lightweight wrapper.
- narimiran 7y ago* vs many languages: https://github.com/kostya/benchmarks https://github.com/kostya/benchmarks * vs many languages: https://github.com/frol/completely-unscientific-benchmarks https://github.com/frol/completely-unscientific-benchmarks * vs Julia and Python: https://github.com/SimonDanisch/julia-challenge/issues/1 https://github.com/SimonDanisch/julia-challenge/issues/1 * web frameworks vs many: https://github.com/the-benchmarker/web-frameworks https://github.com/the-benchmarker/web-frameworks