[Shootout-list] Directions of various benchmarks

José Bollo jose.bollo@tele2.fr
Wed, 18 May 2005 10:28:25 +0200


Le mercredi 18 Mai 2005 09:52, Jon Harrop a écrit :
> On Wednesday 18 May 2005 08:21, José Bollo wrote:
> > Le mercredi 18 Mai 2005 09:08, Pascal Obry a écrit :
> > > For what it's worth, Ada too:
> > >
> > >     function compute_it_fast (x , y : in float)  return float;
> > >     pragma Import (C, compute_it_fast);
> >
> > okay ada >= eiffel for that reliability ;-)
>
> If you're allowed to use camlidl to generate C bindings for OCaml then
> you'll probably have an IDL description like:
>
>   float compute_it_fast(float x, float y);
>
> with an OCaml implementation like:
>
>   external compute_it_fast : float -> float -> float = "%compute_it_fas=
t"
>
> and a call from the OCaml like:
>
>   compute_it_fast 1.3 2.4
>
> However, this is a very complicated subject in the context of OCaml and,
> consequently, I think this should be avoided by the shootout.

at opposite it must stay to show the problems with ocaml 8-|