[BangPypers] When *not* to use Python

Dhananjay Nene dhananjay.nene at gmail.com
Mon Oct 25 04:03:11 CEST 2010

On Wed, Oct 20, 2010 at 4:57 PM, Noufal Ibrahim <noufal at gmail.com> wrote:

> Assuming that most of the people here are mostly python enthusiasts or
> learners, I'm wondering when you would *not* use Python. Let's not
> conflate this with Open Source/Closed Source etc.
Python is the language which has (what in business terms is coined as) the
right of first refusal.

ie. evaluate something whether it really makes sense in python, and if not
in python then start exploring what else.

The primary reasons which may encourage me to use a language other than
python are :

a. Need for raw CPU power. Yes there are a few of such use cases. When
purely CPU driven and when you really really need the CPU badly (which is
probably less than 5% cases) python performance is really poor.
b. Need for high amounts of multithreading even while being largely CPU

Yes - both situations can be handled by escaping to C from python, but I
would much rather handle these in Java (or languages based on JVM) rather
than C unless I am in a very constrained hardware situation.

On a separate note I do believe as we start heading towards the 32 core
situation (say in 5 yrs time) - there better exist a better solution than
the GIL :)

> --
> ~noufal
> http://nibrahim.net.in
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers

blog: http://blog.dhananjaynene.com
twitter: http://twitter.com/dnene

More information about the BangPypers mailing list