Interesting article and discussion about Python's standard library

Russel Winder russel at winder.org.uk
Sun May 19 11:48:44 UTC 2019


On Sat, 2019-05-18 at 23:33 -0400, Andrei Alexandrescu via Digitalmars-d
wrote:
> https://news.ycombinator.com/item?id=19948642

I'd say Amber Brown is right, the Python standard library needs stripping back
quite a lot and stuff moved to PyPI. Or pip-able using Git,Mercurial, Breezy,
etc. directly so as to access packages not in PyPI.

Go and Rust have both gone with the small standard library and strong support
for bringing in dependencies. Go only uses DVCS mechanisms, shunning a central
repository of packages. For me this is wrong. Rust has gone with support for a
central repository and DVCS. I find this the right route.

D has a central library but no support for DVCS for getting dependencies in
Dub. This should be fixed. 

I failed to do anything about it at the D hack day, but what I think is needed
is a library separate from Dub (or perhaps split off from Dub that Dub then
uses) for accessing the central D library. This will then allow Meson, SCons,
etc. to better support working with the central D repository and used DVCS to
access packages. This should then make adding DVCS support relatively
straightforward.

With this in place Phobos can then be stripped back to only that that is
absolutely needed.

Rust is a really good model here. Python, Go, and D should follow suit.
  
-- 
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/20190519/8e892962/attachment.sig>


More information about the Digitalmars-d mailing list