News for hackers. Stuff that matters.
Re:A Programming Language Underdog by narimiran on Saturday September 22, 2018 @08:19AM (#18045712)
A year ago I've started experimenting with Nim as a "faster Python" — put some declarations, change some keywords and you're ready to go — your "compiled Python" is now ~30x faster.

Recently I've used Nim for the first time for an official project at my job (at university). Instead of doing a simulation with Python+Numpy, I've decided to do it with Nim, and just plot the results with matplotlib. The whole experience was very pleasant.

Speaking of interoperability with Python, there is a great Nim library called Nimpy [0], which makes possible to use Nim as a more pleasant Cython — you can keep writing Python, and just use Nim for the intensive/slow stuff.

[0] https://github.com/yglukhov/nimpy

Re:A Programming Language Underdog by blt on Saturday September 22, 2018 @11:54AM (#18046467)
Did you use language interop for matplotlib, or saving/loading data files?
Re:A Programming Language Underdog by narimiran on Saturday September 22, 2018 @01:35PM (#18046953)
I saved the data in .csv and then used that, because not only did I need/want to just plot the results, but I also wanted to explore and further analyse the data in a Jupyter Notebook.