On Dec 7, 2007 9:18 AM, Barry Smith <bsmith at mcs.anl.gov> wrote: > > > > I'm on Matt's side. Have you ever considered C++ for implementing > > PETSc internals? > > Python?
Portability here is a tricky concept. Python is portable in the sense that it rnus jsut about everywhere. However, there is another sense in which it is much like interoperability. Python has a complete C backend, so in theory you can easily interface with C code. However, Python objects do not play well with C++ objects (which has given us a lot of grief in the PyLith project). If everyone agrees that all OO is done by Python, and any interface to C/C++ must go through the Python C bindings for objects, than this might work. We should have done this in PyLith. Matt > On Dec 7, 2007, at 7:28 AM, Lisandro Dalcin wrote: > > > On 12/7/07, Matthew Knepley <knepley at gmail.com> wrote: > >> On Dec 6, 2007 9:00 PM, Barry Smith <bsmith at mcs.anl.gov> wrote: > >>> I am very nervous about mixing a catastrophic error handling > >>> system > >>> WITH an exception system. I'd like to go back to the model: > >>> "once seterrq() is called ANYWHERE there is no possibility of > >>> continuing the program. > >> > >> I guess I have the opposite opinion. I think it is inevitable that > >> PETSc > >> is rewritten at some point in the future. At that point, we would > >> replace > >> the current, imperfect exception system with a better one. This way > >> we > >> can preserve a good design. If we go the other way, all that code > >> will > >> have to be rethought instead of just rewritten. > >> > > > > I'm on Matt's side. Have you ever considered C++ for implementing > > PETSc internals? > > > > -- > > Lisandro Dalc?n > > --------------- > > Centro Internacional de M?todos Computacionales en Ingenier?a (CIMEC) > > Instituto de Desarrollo Tecnol?gico para la Industria Qu?mica (INTEC) > > Consejo Nacional de Investigaciones Cient?ficas y T?cnicas (CONICET) > > PTLC - G?emes 3450, (3000) Santa Fe, Argentina > > Tel/Fax: +54-(0)342-451.1594 > > > > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener