A few notes on choosing between Go and D for a quick project

Russel Winder via Digitalmars-d digitalmars-d at puremagic.com
Sat Mar 14 11:01:44 PDT 2015

On Sat, 2015-03-14 at 17:22 +0000, Chris via Digitalmars-d wrote:
> Unfortunately, for speech and language processing (synthesis, 
> speech recognition etc) Python is too slow. Everybody uses Python 
> at first, but the serious code that is later put into real world 
> applications is usually written in C or C++. This is a fact. I 
> know people who developed speech analysis frameworks in Python 
> and are now thinking of rewriting it in C++ for commercial 
> purposes.

I can believe it is believed to be true, but this is based on metrics
for using only pure Python. I bet you can get good performance just with
judicious profiling and use of Cython or better still Numba.

"Commercial reasons" may well include "we are not prepared to ship
Python source code, so you will rewrite in C or C++ so we can ship a
binary executable" and be nothing to do with performance. I have had
this in the past.

> Python is good for protoyping, but if you need fast applications, 
> it is usually C/C++ (or D).

If you just use pure Python yes. But no-one does. it is always mixed
systems. Why rewrite the Python that is not performance critical in C, C
++, or D, there is no point.

Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150314/6fd6bff5/attachment-0001.sig>

More information about the Digitalmars-d mailing list