3 ms·
yes, definitely for me nim has replaced python as my go to language even for small tasks. I find it even more productive than python thanks to the typing syste
by pietroppeter 4y ago
yes, definitely for me nim has replaced python as my go to language even for small tasks.
I find it even more productive than python thanks to the typing system. An often neglected highlight that I appreciate a lot is the fact that static typing + procedure overload has the additional benefit that names of functions tend to be very natural (you can reuse the name of function if the type signature is different). That along with UFCS (universal function call syntax), allows to create great apis in no times. Also template are a very easy way to boost productivity and allow to write great DSLs. See also an old but still relevant and very valid introduction of Nim for Python programmers [0]
It can work with numpy and even better there is a performant numpy replacement called arraymancer. Take into account that since you do not need to be afraid of loops, even working with standard sequences is very performant. See also the SciNim getting started book [1]
[0]: https://blog.zdsmith.com/posts/nim-for-python-programmers.html https://blog.zdsmith.com/posts/nim-for-python-programmers.ht...
[1]: https://scinim.github.io/getting-started/ https://scinim.github.io/getting-started/