4 ms·
I think it needs a "killer library". The core language is pretty easy to learn if you've used Python, but there aren't a ton of third party libraries, and the o
by ac29 7y ago
I think it needs a "killer library". The core language is pretty easy to learn if you've used Python, but there aren't a ton of third party libraries, and the ones that do exist seem to be incomplete, poorly documented, buggy, abandoned, or some combination thereof.
- gameswithgo 7y agomaking clones of the top 50 python libraries would make it attractive. familiar syntax! way more speed!
- staticassertion 7y agoThis would be super compelling.
- Random_ernest 7y agoMany of the top 50 python libraries are wrapping a lot of code that is actually c, c++ or fortran. So I doubt that there is a lot of performance to be gained. Numpy is a good examples for that.
- gameswithgo 7y agoI have applied for a job at a company where they were switching from Python to Rust, because even though they were using Numpy, there was a lot of overhead in setting the data up to send to Numpy.
- airstrike 7y agoIt's not those libraries' performances, but allowing people to port their own code with less friction for a presumed gain in performance.
- sergiotapia 7y agoHow would one find these "top 50 python libraries" list?
- shimst3r 7y agoI’d suggest based on PyPI download numbers, see https://hugovk.github.io/top-pypi-packages/ https://hugovk.github.io/top-pypi-packages/
- greggirwin 7y agohttps://libraries.io/ https://libraries.io/ ?
- blackrock 7y agoI got annoyed when it didn’t have a decent standard library to handle command line flags and arguments. The examples given so far, are mediocre. parseopt is incredibly cumbersome. docopt is an incredibly poor design, that I can’t believe anyone thought this was a good idea. And failing to have such basic libraries, I realized, this language has a long way to go. I contemplated building my own library to handle such a need, but why, this doesn’t solve my problem of building something. And if it’s missing such basic libraries, then what else is it missing? The odds were too great, and too risky for me to commit my time to it.
- pathsjs 7y agoThere are many libraries for that, but I suggest cligen. It is the simplest command line parser I have found across all programming languages.
- s_gourichon 7y agoWhat if the Nim maintainers made some kind of continuous popularity measurement to let good libraries bubble up? Opens other problems I know, but may fix such scenario and accelerate Nim adoption?
- pathsjs 7y agoThere was an attempt a few months ago, but it was a little weird. But if you just want to find libraries relevant for your task (e.g. parsing the command line), there is https://nimble.directory https://nimble.directory where all Nim libraries are listed
- deleted 7y ago[deleted]
- alehander42 7y agoyou can try cligen and then argparse https://github.com/iffy/nim-argparse https://github.com/iffy/nim-argparse
- 7y ago
- beagle3 7y agoI'll place my chips on mratism (Arraymancer, Weave, Laser) being the killer librarian. But it will take a decade or two to unseat Python.