python vs d

w0rp via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 24 15:41:40 PDT 2014


On Thursday, 24 April 2014 at 06:38:42 UTC, Suliman wrote:
> Does anybody make tests of speed most common algorithm in D and 
> Python. I am trying to understand which project better to start 
> in Python and which in D.

I think I split my decision based on the tools available. So I'd 
probably write a website in Django instead of vibe.d because I 
would save a lot of time. I'd probably write D instead of Python 
in a lot of cases.

More than just for speed, I've come to appreciate type 
information and what I call "statically checked duck typing," 
which is how ranges work and so on. In D I can write code such 
that I can know very early on that it has a good chance of 
actually working. In Python, I often find out about problems too 
late, and I have to rely on tests with good code coverage to make 
sure that very basic code works at all.


More information about the Digitalmars-d mailing list