#1
  1. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    154

    Fortran & Python


    I've recently started learning Fortran (77) and I really enjoy this language. However, this version does not contain many library files, such as a socket library. I'm trying to figure out a way to add this kind of support for my future applications. Would it at all be possible to create a Fortran version of a socket class from the Python socket modules?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    394
    Rep Power
    51
    Hi!

    This is not really a direct answer to your question, but have a look at these:
    Pyfort: http://pyfortran.sourceforge.net/
    f2py: http://cens.ioc.ee/projects/f2py2e/

    PS: Fortran 77 was my first programming language

    Regards, mawe
  4. #3
  5. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    154
    I've looked at both of those so far, in fact I even downloaded them. I recently noticed that with Pyfort, you can convert Python to Fortran, and Fortran to Python. The problem is that if I converted the socket module from Python to Fortran, I still have _ssl.pyd and _socket.pyd to worry about. I don't think Fortran would be able to use them when it needs them to use the sockets. Anyways, when I get some time (I'm working on a project with a friend), I'll check out how Pyfort would handle that situation, handling the needed Python pyd files. Thanks anyways.

IMN logo majestic logo threadwatch logo seochat tools logo