Re: A question on Newton's Method
- From: Jon Harrop <usenet@xxxxxxxxxxxxxx>
- Date: Sat, 02 Apr 2005 22:37:02 +0100
beliavsky@xxxxxxx wrote:
> 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?
The OCaml compilers are written mostly in OCaml. ML compilers and
interpreters are typically written in themselves as much as possible, as
compiler and interpreter writing is a strong point of the ML family of
languages. If g95 had been written in ML it would have taken far less time
to develop, it would be far smaller and more robust and it would be far
faster.
> 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.
What happens if you allocate an array and then return it as the result of a
function?
> I see Fortran mentioned much more than OCaml on this newsgroup.
Absolutely, but that doesn't make it suitable for a new programmer wanting
to study numerical analysis.
--
Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com
.
- Follow-Ups:
- Re: A question on Newton's Method
- From: beliavsky
- Re: A question on Newton's Method
- References:
- A question on Newton's Method
- From: David M
- Re: A question on Newton's Method
- From: Jon Harrop
- Re: A question on Newton's Method
- From: beliavsky
- Re: A question on Newton's Method
- From: Jon Harrop
- Re: A question on Newton's Method
- From: beliavsky
- Re: A question on Newton's Method
- From: Jon Harrop
- Re: A question on Newton's Method
- From: beliavsky
- A question on Newton's Method
- Prev by Date: Re: A question on Newton's Method
- Next by Date: Re: A question on Newton's Method
- Previous by thread: Re: A question on Newton's Method
- Next by thread: Re: A question on Newton's Method
- Index(es):
Relevant Pages
|