Re: Fortranspeak & Javaspeak




<David.Paterson@xxxxxxxx> wrote
I'm a Fortran77 programmer (computational fluid dynamics etc.) and am
trying to work with a Java programmer who is writing a front end.

Neither of us understand a word the other one says. I don't understand
him when he talks about class, instance, method, referencing, casting,
event, constructor, accessor, bytecode, overriding, registering etc.

He doesn't understand me when I talk about subroutine, common, real,
logical etc. He doesn't even know what a "program" is.

Is there a translation guide between Fortranspeak and Javaspeak?

I've figured out that "method" means "subroutine"; I program his
"class" using "named common"; his "referencing" is like an "equivalence
statement". Take it from there.


As a Fortran 77 programmer that has had to learn GUIspeak (or more
accurately Object Oriented Design terminology), I fully understand your
problems. My advice is not to try and understand each others worlds, just
agree on a neutral interface that you are both comfortable with. In my
programs I always interface Fortran libraries into Java or Delphi GUIs
through an API, which is basically just a collection of procedures
(middleware) that load and retrieve data from the Fortran code (getters and
setters in OOspeak) and invoke processes (run subroutines). Keep the API
procedure calls very basic (no data structures except 1D arrays, always pass
array lengths, unpack strings to null terminated character arrays etc) to
minimise inter-language issues. Do this and you will never have to know what
an overloaded method of a typecase instace is and they wont have to get
their head around equavalenced COMMON real data.

The API is a bit more work and processing overhead than you would ideallly
want, but it is worth it to keep apart radically different elements of a
mixed-language program/application/applet.

Paul Holden



.



Relevant Pages

  • Re: Starting to doubt fortran
    ... For "numerical code" the difference between C and Fortran is only ... Fortran pointers have a much richer ... with embedded assignments as a prime example of a write only language ... programmer dealing in the pointer/array minefield. ...
    (comp.lang.fortran)
  • Re: which language?
    ... Of course other languages can and are used for scientific computing. ... Many engineering and physics calculations use arrays as their ... Fortran compilers have implemented ... programmer to avoid overspecifying the order of operations. ...
    (comp.programming)
  • Re: VB6 How to find calling routine
    ... There were no computers in the ... recently been developed by IBM I purchased a "Teach Yorself Fortran" ... decided" on a possible career as a Fortran programmer when, ... computing was to learn to write machine code, which got me as close to ...
    (comp.lang.basic.visual.misc)
  • Re: Cracking DES with C++ is faster than Java?
    ... >> Fortran). ... > cycle counts. ... programmer for $5.00 an hour, computer time cost over $1000 per machine ... > dozen lines of my code to compile. ...
    (comp.lang.cpp)
  • Re: Cracking DES with C++ is faster than Java?
    ... >> Fortran). ... > cycle counts. ... programmer for $5.00 an hour, computer time cost over $1000 per machine ... > dozen lines of my code to compile. ...
    (sci.crypt)