Re: I need advise on what program to use.



"Phlip" <phlip_cpp@xxxxxxxxx> wrote in message
news:lmsbe.1187$Ne7.354@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Matthieu Villeneuve wrote:
>
> > That is what I had understood. But again, why use two different
> > languages? Why not use one that is convenient to use, and that has
> > compilers producing high-performance code?
>
> Because there ain't no such thing.

I've used OCaml and Common Lisp, both much more convenient to use
than C++, and both capable of generating code whose performance is
quite close to that of C++ programs.

OCaml is statically typed, without declarations (the compiler inferes
types of variables and functions), and claimed "as fast as C++",
which was true in my experience. I gave it up because of its lack of
flexibility.

Common Lisp seems to have the best of both worlds, i.e. both
dynamic and static typing, allowing one to very precisely declare
types where it helps getting fast code. Being at the same time "fast"
(although that depends on implementations rather than on languages)
and the most convenient language I know, it makes me wonder why one
would want to use C++ or Java and such (except in situations that
explicitely require one of those languages).


--
Matthieu Villeneuve


.