3 ms·
Although I find Rust very appealing I still see C++ as the better option, mostly because I fear that Rust would lack good suppport libraries (e.g. for talk
by weinzierl 11y ago
Although I find Rust very appealing I still see C++ as the better option, mostly
because I fear that Rust would lack good suppport libraries (e.g. for talking to
DBs, generating/parsing data formats such as JSON or for generating cryprographic
hashes) and that I would end up implementing many of those myself. As of today,
many Rust wrapper libraries (e.g. for BerkeleyDB) seem to be written by a single
author, which makes me wonder about their stability and maturity even more.
Rust is in its very beginning[1]. Only time can tell if it will have a rich set of support libraries that are stable and mature.It has one big advantage over C and C++ in this regard.
It has a central repository for all the support libraries.
I always found it difficult to assess the
stability and maturity of libraries for C or C++ found on the internet.
Of course there are the standards, like libpng or zlib, and you know they must be good because so many projects use them. For more exotic tasks you are on your own.
With a central repository, you can at least estimate the popularity of a certain library. crates.io shows a download count for example. Also many other popular languages have one
Java Maven
Perl CPAN
TeX CTAN
PHP PECL, PEAR
Python PyPI
Ruby RubyGems
R CRAN
Node.js npm
Lua LuaRocks
Haskell Hackage
[1] I know that Graydon started it over 5 years ago, but from user standpoint Rust is more a child of 2015.
[2] https://crates.io/ https://crates.io/
- dman 11y agoPackage managers have their own problems. Unless they are curated well they lead to many libraries that all claim to do the same thing. I wont name any specific examples, but using some of the above takes a fair amount of judgement in how rock solid the package is.
- weinzierl 11y agoI, for my part, think I'm still better off with a central repository with problems than without one. For Java there are commercial curated Maven repositories and I'm not aware of anything like that for C/C++. So Cargo can be an enabler for Rust in big corp.
- nitrogen 11y agoThe closest thing for C and C++ is probably Debian's apt repositories and the like from other distros. Just search for any package starting with lib-, then look for the ones with the most results in apt-cache rdepends.
- andrewchambers 11y agoI think a better design would be a p2p system with crates.io being a tracker and official seeder.
- threeseed 11y agoIt's a nice approach in theory. Not so great in practice. Whether we like it or not most developers are hired by a company. And for most medium to large companies there is no way they are going to let a P2P system go through their firewall. Many don't even allow developers to access official repositories which is why products like Nexus (repository proxy) exist.
- andrewchambers 11y agoThe standard clients don't need to seed by default. Provided there are organizations willing to seed, they could share the costs between themselves.
- khc 11y agoThat is a problem with or without package managers. Maybe package managers should start doing PageRank style sorting and return results in the order of how popular they are?
- spdionis 11y agoJust for the sake of nitpicking: For PHP PEAR is dead. Packagist is the de facto central repository for packages.