Mathematics, fortran an zope
Hei, Qeustion 1: Say I had som program (written in for instance fortran), that did som advanced calculations (like for instance calculating the resistance of a ship hull in water); Would I then be able to use zope to make som web interface to this fortran program? Question 2: I know it is possible to do mathematics with python. But is it also easy to combine zope with more specialized math programs like for instance Matlab? Thanks! and best wishes Børge Kjeldstad
On Sun, Jun 08 2003 (13:18:31 +0200), Børge Kjeldstad wrote:
Question 2: I know it is possible to do mathematics with python. But is it also easy to combine zope with more specialized math programs like for instance Matlab?
http://www.google.com/search?q=python+Matlab Cheers, -- Toni Andjelkovic <toni@soth.at>
On Sun, 8 Jun 2003, [iso-8859-1] B�rge Kjeldstad wrote:
Qeustion 1: Say I had som program (written in for instance fortran), that did som advanced calculations (like for instance calculating the resistance of a ship hull in water);
Would I then be able to use zope to make som web interface to this fortran program?
Question 2: I know it is possible to do mathematics with python. But is it also easy to combine zope with more specialized math programs like for instance Matlab?
In principle, yes, you can write such a program. In several of the systems I've done, I use a Zope front-end and simply invoke the external program through an External Method or Product or through some sort of RPC mechanism (for example, Zope's XMLRPC). The problem with all these approaches has to do with response time. If the external system responds quickly and if the web's forms based interaction is adequate, then it's a good match. It the program takes a long time to run or if it is highly interactive, then some other approach is needed.
Dennis Allison <allison@sumeru.stanford.edu> writes:
On Sun, 8 Jun 2003, [iso-8859-1] Børge Kjeldstad wrote:
Qeustion 1: Say I had som program (written in for instance fortran), that did som advanced calculations (like for instance calculating the resistance of a ship hull in water);
Would I then be able to use zope to make som web interface to this fortran program?
Question 2: I know it is possible to do mathematics with python. But is it also easy to combine zope with more specialized math programs like for instance Matlab?
There has been some work to integrate Zope with R (an opensource statistical analysis programming language which is quite sophisticated). See: http://software.biostat.washington.edu/statsoft/snake/RSessionDA for an approach which treats R as a dynamic database adaptor. best, -tony -- A.J. Rossini / rossini@u.washington.edu / rossini@scharp.org Biomedical/Health Informatics and Biostatistics, University of Washington. Biostatistics, HVTN/SCHARP, Fred Hutchinson Cancer Research Center. FHCRC: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email CONFIDENTIALITY NOTICE: This e-mail message and any attachments may be confidential and privileged. If you received this message in error, please destroy it and notify the sender. Thank you.
On Sunday 08 June 2003 04:18 am, Børge Kjeldstad wrote:
Say I had som program (written in for instance fortran), that did som advanced calculations (like for instance calculating the resistance of a ship hull in water);
Would I then be able to use zope to make som web interface to this fortran program?
Sure, you just need to be able to call said program from python. Writing a library wrapper is possible, but you could also just set your program up to run from the command line and call with os.system() (or, more likely, os.popen2()), in Python (this is not platform independent, but you may not care -- it is often very expedient). The python in question is a module in your Zope's "Extensions" directory, called by a Zope "External Method". Once you have that set up, scripts in Zope will be able to call your code through the web. As for your other question, this is equally applicable regardless of the language. Some languages may give you additional alternatives, but this approach should always be possible. Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
participants (5)
-
Børge Kjeldstad -
Dennis Allison -
rossini@blindglobe.net -
Terry Hancock -
Toni Andjelkovic