|
|
Up |
|
|
  |
Author: Charles DoustCharles Doust Date: Aug 7, 2008 08:27
Hello !
Before I start explaining my problems to, a possibly, unsuspecting
audience ;-), I was wondering, is there anyone here who tried and
succeded in connecting fortran and python, in a back in
fortran/frontend (gui) in python, sort a way.
I'm forced to learn python because of some other needs, and i noticed
that every once in a while, whenever someone mentiones python's
ability to work well with other languages, fortran comes into view.
So I was wondering, is the above mentioned, possible, or even more
important, is it worth the trouble to try to do something like that
with that combination ?
Charlie
|
| |
|
| | 24 Comments |
|
  |
Author: JayBeeJayBee Date: Aug 7, 2008 09:08
On 2008-08-07, Charles Doust no_mail_here.com> wrote:
> Hello !
>
> Before I start explaining my problems to, a possibly, unsuspecting
> audience ;-), I was wondering, is there anyone here who tried and
> succeded in connecting fortran and python, in a back in
> fortran/frontend (gui) in python, sort a way.
>
> I'm forced to learn python because of some other needs, and i noticed
> that every once in a while, whenever someone mentiones python's
> ability to work well with other languages, fortran comes into view.
> So I was wondering, is the above mentioned, possible, or even more
> important, is it worth the trouble to try to do something like that
> with that combination ?
--
JayBee
|
| |
|
| | no comments |
|
  |
Author: Ron FordRon Ford Date: Aug 7, 2008 21:02
On Thu, 07 Aug 2008 17:27:09 +0200, Charles Doust posted:
> Hello !
>
> Before I start explaining my problems to, a possibly, unsuspecting
> audience ;-), I was wondering, is there anyone here who tried and
> succeded in connecting fortran and python, in a back in
> fortran/frontend (gui) in python, sort a way.
>
> I'm forced to learn python because of some other needs, and i noticed
> that every once in a while, whenever someone mentiones python's
> ability to work well with other languages, fortran comes into view.
> So I was wondering, is the above mentioned, possible, or even more
> important, is it worth the trouble to try to do something like that
> with that combination ?
>
>
> Charlie
Charlie,
|
| Show full article (1.08Kb) |
| no comments |
|
  |
Author: Charles DoustCharles Doust Date: Aug 8, 2008 04:55
On Thu, 7 Aug 2008 22:02:35 -0600, Ron Ford
wrote:
>Charlie,
Hello Ron, thanks for answering.
>
>I think you'll find that more fortran fellas are using ruby as a front end.
>The idea is fundamentally similar.
>
>I'd be curious to see a python caller get information from one of fortran's
>intrinsics. Python seems to come in the same package that ubuntu does.
I did notice that ruby and python always come together in a
conversation, yes. However, I got the feeling that more people are
using python, for some reason (google, old c.l.f. archives ...)
Could you give some examples of possible troublesome areas in
connecting python to fortran, or some distinct advantages of ruby ?
|
| Show full article (1.23Kb) |
| no comments |
|
  |
Author: Paul van DelstPaul van Delst Date: Aug 8, 2008 07:00
Charles Doust wrote:
> On Thu, 7 Aug 2008 22:02:35 -0600, Ron Ford
> wrote:
>
>> Charlie,
>
> Hello Ron, thanks for answering.
>> I think you'll find that more fortran fellas are using ruby as a front end.
>> The idea is fundamentally similar.
>>
>> I'd be curious to see a python caller get information from one of fortran's
>> intrinsics. Python seems to come in the same package that ubuntu does.
>
> I did notice that ruby and python always come together in a
> conversation, yes. However, I got the feeling that more people are
> using python, for some reason (google, old c.l.f. archives ...)
> Could you give some examples of possible troublesome areas in
> connecting python to fortran, or some distinct advantages of ruby ?
|
| Show full article (2.95Kb) |
| no comments |
|
  |
Author: BeliavskyBeliavsky Date: Aug 8, 2008 08:06
On Aug 8, 10:00 am, Paul van Delst noaa.gov> wrote:
>> I don't have an option here of switching to ruby for this, but I would
>> still like to know a little more about ruby as well. They seem like
>> very similar languages to each other, btw. For now all I could notice
>> is that I like python's syntax more :-) (no brackets, never could get
>> used to brackets :-)
>
> Functionally, I think they [Python and Ruby] are the same dog, different leg. You just have to look at all
> the various apps that have been written in both to see that whatever it is you want to do
> you can do in either of them.
The Numpy module for Python has the array functionality of Fortran
(operations on arrays and array sections), and Scipy http://www.scipy.org/
is an accompanying library for scientific computing. A project where
program speed is not a major consideration may be done in Python
entirely. Does Ruby have comparable modules?
|
| |
| no comments |
|
  |
Author: rusi_pathanrusi_pathan Date: Aug 8, 2008 08:51
On Aug 8, 10:00 am, Paul van Delst noaa.gov> wrote:
> Charles Doust wrote:
>> On Thu, 7 Aug 2008 22:02:35 -0600, Ron Ford
>> wrote:
>
>>> Charlie,
>
>> Hello Ron, thanks for answering.
>>> I think you'll find that more fortran fellas are using ruby as a front end.
>>> The idea is fundamentally similar.
>
>>> I'd be curious to see a python caller get information from one of fortran's
>>> intrinsics. Python seems to come in the same package that ubuntu does.
>
>> I did notice that ruby and python always come together in a
>> conversation, yes. However, I got the feeling that more people are
>> using python, for some reason (google, old c.l.f. archives ...)
>> Could you give some examples of possible troublesome areas in
>> connecting python to fortran, or some distinct advantages of ruby ?
> ...
|
| Show full article (3.70Kb) |
| no comments |
|
  |
Author: Charles DoustCharles Doust Date: Aug 8, 2008 09:17
On Fri, 8 Aug 2008 08:51:04 -0700 (PDT), rusi_pathan
gmail.com> wrote:
>
>I am also looking to properly learn either Python or Ruby.
>Syntactically I like Ruby but the scientific community seems to be
>bending towards Python with projects like f2py, Numpy/Scipy/Sage,
>Matplotlib/Mayavi/Paraview, Cubit etc. Moreover python bindings are
>also being made available for many useful libraries such as MPI, Petsc
>and so on.
>
>Though unlike Fortran, whenever I try to write python I just dont feel
>in control and everything seems pretty loose. I am also not sure if I
>should be learning python specially when Fortran compilers supporting
>features of 2003 standard are being made available.
I was thinking of maybe learning both parallel, if ruby indeed
possesed some significant advantages, but as it turned out, python
(for now) covers my needs in full.
I've looked at ruby these last few days...
|
| Show full article (2.45Kb) |
| no comments |
|
  |
Author: Fly AwayFly Away Date: Aug 8, 2008 09:22
> Though unlike Fortran, whenever I try to write python I just dont feel
> in control and everything seems pretty loose. \
What kind of control do you mean comparing Fortran with Python?
>I am also not sure if I
> should be learning python specially when Fortran compilers supporting
> features of 2003 standard are being made available.
It is hard to see what particular features of F2003 give it advantage
over Python. I am not arguing that Python is "better", but the reasons
people might want to use one instead of another have nothing to do
with what new F2003 brings.
Perhaps, you should first be certain about what your goals are and
then decide on what would be the most suitable tool to achieve them.
Cheers,
Victor.
|
| |
| no comments |
|
  |
|
|
  |
Author: rusi_pathanrusi_pathan Date: Aug 8, 2008 09:56
>> Though unlike Fortran, whenever I try to write python I just dont feel
>> in control and everything seems pretty loose. \
>
> What kind of control do you mean comparing Fortran with Python?
>
>>I am also not sure if I
>> should be learning python specially when Fortran compilers supporting
>> features of 2003 standard are being made available.
>
> It is hard to see what particular features of F2003 give it advantage
> over Python. I am not arguing that Python is "better", but the reasons
> people might want to use one instead of another have nothing to do
> with what new F2003 brings.
> Perhaps, you should first be certain about what your goals are and
> then decide on what would be the most suitable tool to achieve them.
> Cheers,
> Victor.
The fact the Fortran 03 has C interoperability and true object
oriented capabilities. Python users have easy access to lots of ...
|
| Show full article (1.00Kb) |
| no comments |
|
RELATED THREADS |
  |
|
|
|
|
|