Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #16294

Re: suitability of python

From Stefan Behnel <stefan_ml@behnel.de>
Subject Re: suitability of python
Date 2011-11-27 17:54 +0000
References <1322137895.4211.3.camel@roddur>
Newsgroups comp.lang.python
Message-ID <mailman.3077.1322416501.27778.python-list@python.org> (permalink)

Show all headers | View raw


Rudra Banerjee, 24.11.2011 12:31:
> I am a newbie in python and basically i use python for postprocessing
> like plotting, data manipulation etc.
> Based on ease of programming on python I am wondering if I can consider
> it for the main development as well. My jobs (written on fortran) runs
> for weeks and quite CPU intensive. How python works on these type of
> heavy computation?

You already got a lot of answers that pointed you to the scientific 
computing tools that are available for Python. The reason why they exist is 
because (and nowadays also "why") Python is so extremely popular in that 
field: it's an easy to learn and use language and the standard 
implementation (often referred to as CPython) makes it really easy to 
interface with external code (C/C++/Fortran/etc.) in a very efficient way.

In addition to looking at NumPy/SciPy and/or Sage (depending on the kind of 
computations you are involved with), you should also look at fwrap and 
Cython. They will allow you to easily wrap your existing Fortran code for 
Python, and to quickly write very fast glue code for the two language 
environments. Thus, you can keep your existing code as it is, and use and 
control it from Python, using all the nice tools that Python provides for 
quickly writing anything from distributed code and test suites to graphical 
user interfaces for visualising your data. Since you specifically asked 
about plotting, don't miss out on matplotlib.

Stefan

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

suitability of python Rudra Banerjee <bnrj.rudra@gmail.com> - 2011-11-24 18:01 +0530
  Re: suitability of python Laurent Claessens <moky.math@gmail.com> - 2011-11-24 13:46 +0100
  Re: suitability of python Dave Angel <d@davea.name> - 2011-11-24 08:08 -0500
  Re: suitability of python Terry Reedy <tjreedy@udel.edu> - 2011-11-24 19:51 -0500
    Re: suitability of python 88888 Dihedral <dihedral88888@googlemail.com> - 2011-11-24 19:27 -0800
    Re: suitability of python 88888 Dihedral <dihedral88888@googlemail.com> - 2011-11-24 19:27 -0800
    Re: suitability of python alex23 <wuwei23@gmail.com> - 2011-11-24 19:37 -0800
  Re: suitability of python Alan Meyer <ameyer2@yahoo.com> - 2011-11-24 23:06 -0500
  Re: suitability of python Grant Edwards <invalid@invalid.invalid> - 2011-11-27 17:19 +0000
  Re: suitability of python Stefan Behnel <stefan_ml@behnel.de> - 2011-11-27 17:54 +0000

csiph-web