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. -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part