4 ms·
It would be interesting to compare it to Nim, which is also a very convenient and very performant language.
by badjeans 6y ago
It would be interesting to compare it to Nim, which is also a very convenient and very performant language.
- quixoticelixer- 6y agoYou could probably do some tests yourself. Also as far as scientific computing goes Nim lacks a lot of libraries.
- j-james 6y agoThere's a tracking issue for this: https://github.com/nim-lang/needed-libraries/issues/77 https://github.com/nim-lang/needed-libraries/issues/77
- sk2020 6y agohttps://github.com/kostya/benchmarks https://github.com/kostya/benchmarks There are a few tests which have Julia and Nim implementations. It would be nice if the benchmarks game maintainer would include some more languages, like Nim, Crystal, and Zig. This doesn’t have Nim, but is another interesting one. https://modelingguru.nasa.gov/docs/DOC-2783 https://modelingguru.nasa.gov/docs/DOC-2783
- deleted 6y ago[deleted]
- dnautics 6y agothe benchmarks game maintainer is incredibly unprofessional, and looks bad for the debian team.
- igouy 6y agoIt would be nice if someone else would take the source code freely provided by the benchmarksgame project, include whatever languages interested them, measured the programs and published their own measurements.
- sk2020 6y agoI’m sure somebody has, but how would you find them? There is a network effect here. I wouldn’t mind spending the $10/month to host, but nobody would look at it. Google is basically worthless for finding anything outside of popular sites.
- igouy 6y agoYou would find them because they constantly did the work to promote the data in forums that were likely to have some interest. If they did nothing to be findable they probably wouldn't be.
- sk2020 6y agoSo to be more precise, maybe one should say, “I wish someone would fork this project, include additional languages, and pay for better Google ranking and then pay some media company to spam HN, Medium, et al for a few months.”
- 7thaccount 6y agoNim has no REPL iirc, so that is a deal breaker for most interactive work IMO. There are some data science libraries coming out (maybe arraymancer), but nothing I know of in the numerical computing arena. Nim can compile to C or C++, so I assume FFI is easy, but it's still a lot of work if you aren't familiar with C. Python has all of that handled for you with certain distributions.
- badjeans 6y agoIt does have a REPL called inim. It seems OK, but I'm not sure how it compares to python/julia if you're a REPL power user.
- ziotom78 6y agoIt's much rougher IMO. It has no autocompletion yet [0], and you cannot copy-and-paste code in it like IPython and Julia's REPL, as it does not respect the original indentation. (Tried to copy-and-paste the first example in Nim's webpage [1] and it failed because it inserted indentation at wrong places.) For the record, IPython has the `%paste` command, and Julia's REPL automatically detects when code is being pasted (this would however be less relevant, since Julia's language is not indent-based). I am not sure if it supports plotting libraries à la matplotlib, however. If it has this capability, it might be still interesting in its present state. [0] https://github.com/inim-repl/INim/issues/14 https://github.com/inim-repl/INim/issues/14 [1] https://nim-lang.org/ https://nim-lang.org/
- cb321 6y agoA plotting library: https://github.com/Vindaar/ggplotnim https://github.com/Vindaar/ggplotnim
- ziotom78 6y agoThanks for the link! Do you know if "inim" supports it (like IPython with matplotlib)? I believe this is the important point when comparing the REPL experience in Nim vs Python/Julia.