From: William James Date: 2009-01-12T10:34:22+09:00 Subject: Re: functional programming Brian Candler wrote: > M. Edward (Ed) Borasky wrote: > >> For example, OCaml generates code which is > >> reputedly only half the speed of the equivalent C code. > > > > Did you mean "twice the speed?" Is OCaml faster or slower than C? > > And why? > > I did mean half the speed, i.e. OCaml is slower. > > OCaml is a high-level language, but code written in OCaml still > manages to achieve ~50% of the speed of hand-written C. Given that C > can be considered portable machine code, this is a pretty impressive > achievement. Don't take Ed seriously. You will find that he never posts any Ruby code that he has written. And he has already been taught that OCaml can be as fast as C: http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/e2138 1fb5b6a47f6