How programmers transition between languages

Russel Winder russel at winder.org.uk
Tue Jan 30 10:38:31 UTC 2018


On Mon, 2018-01-29 at 17:18 +0000, Mafi via Digitalmars-d wrote:
> 
[…]
> What would you say are the most important differences between dub 
> and Cargo? What does Cargo do better than dub (or worse for that 
> matter)? Superficially, they seem to be designed quite similarly.

The single most important thing is that Cargo stores source on a per
person basis and compiles for each project separately. Dub stores
source and compilation products on a per person basis. So, for me, Dub
does the wrong thing with compilation of dependencies, and Cargo does
it right. Why? Compiler choice and compiler option choice is a per
project thing, not a centralised thing.

Cargo allows for download from the central repository and from any
arbitrary Git or Mercurial repository. Dub only seems to get from the
central repository.

The Cargo repository is just nicer than the Dub repository.

Cargo uses TOML project specifications, Dub uses JSON or SDL. Cargo
wins, Dub doesn't.

The Cargo per project compilation product structure is nicer that Dubs.

It is certainly true that Dub and Cargo have the same aims and goal,
it's just that Cargo does it better on essentially all fronts as far as
the project build and builder are concerned.

-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20180130/33f8505b/attachment.sig>


More information about the Digitalmars-d mailing list