Re: A question on Newton's Method



Jon Harrop wrote:
> Even the compiler is written in an inappropriate
> language. <sigh>

G95 is written in C, as are most operating systems, compilers, and
interpreters I know of. What is OCaml written in, and why does it make
a difference?

<snip>

> I am not familiar with this. Looking at the Fortran source code from
the
> book you were advertising, it contains explicit deallocations.
Presumably
> omitting these would cause a memory leak?

One of the features Fortran 95 added to F90 was "automatic deallocation
of allocatable arrays at exit of scoping unit", as mentioned at
http://www.nsc.liu.se/~boein/f77to90/f95.html . Maybe the book was
being careful to present code that works with both F90 and F95
compilers.

<snip>

> This is well known stuff, not personal belief. Fortran is still based
on an
> archaic theoretical foundation, other languages aren't. Unless you
are
> forced to use old code, I see no reason to use Fortran. I certainly
see no
> reason for a new programmer to bother learning it. Does Fortran 95
have a
> single feature worth learning that isn't implemented in modern
languages?
>
> Also, we haven't touched on the lack of support for Fortran 95. Doing
a
> Google search for "fortran 95" gives 85k pages compared to 508k for
ocaml
> and 79M for Java. Searching for "fortran 2003" gives <4k pages. LOL.

There are about 10 Fortran 95 compilers, available for all major
platforms used in scientific computing, with links at
http://www.dmoz.org/Computers/Programming/Languages/Fortran/Compilers/
.. Numerous tutorials can be found online. Searching Amazon.com books
for "fortran 95" produces 24 hits, doing so for "ocaml" produces none
(is there a better search string?). I see Fortran mentioned much more
than OCaml on this newsgroup.

.



Relevant Pages

  • Re: what is the most suitable Linux platform for Programmers and software developers
    ... C, C++, Perl, Python, Lisp, and a bunch of other languages are supported ... There are FORTRAN compilers, but FORTRAN ... Look at the Linux ...
    (comp.os.linux.misc)
  • RE: numerical libraries on integrity
    ... am sure that it should be as the Fortran or C compilers will ... not work correctly (probably, other languages). ... am sure that it should be as the linkage of .OBJs of Fortran or C ... If you have received the email in error, please notify TransGrid ...
    (comp.os.vms)
  • Re: Clearly, it is too late to fix c99 - C is dead
    ... > support pre-Standard constructs, and it is why languages that look like C ... I think the statement "Fortran has failed" is wrong. ... Already some F95 compilers have added some ...
    (comp.lang.c)
  • Re: Mainframe vs. Supercomputer
    ... Suitable languages for writing compilers in ... system vendor compilers) portability ... better than Fortran 66, unless you favoured BCPL. ...
    (comp.arch)
  • Re: Language popularity on Ubuntu
    ... languages and found the results very surprising: ... more popular than OCaml, for example. ... Some people install compilers to install and run programs ...
    (comp.lang.functional)