MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Mathematica and F#

  • To: mathgroup at
  • Subject: [mg91629] Re: Mathematica and F#
  • From: Jon Harrop <jon at>
  • Date: Sat, 30 Aug 2008 01:50:26 -0400 (EDT)
  • References: <g93b2d$km1$> <g95k7v$53r$> <g962t3$c9c$>

rych wrote:
> Could someone please post a test program coded both in F# and
> Mathematica where F# outperforms Mathematica?

The ray tracer benchmark described here is one such program:

The hierarchical spherical bounding volumes used in this ray tracer are
comparable to a wide variety of hierarchical algorithms and data structures
commonly seen in scientific computing, e.g. the Fast Multipole Method used
in cosmology and molecular dynamics.

I have uploaded a Mathematica 6 implementation of this benchmark here:

The OCaml code is currently the most comparable to F# and is over two orders
of magnitude faster than the Mathematica. I'll upload some real F# ASAP...

Dr Jon D Harrop, Flying Frog Consultancy

  • Prev by Date: Re: Re: Mathematica and F#
  • Next by Date: Re: How to parse equations
  • Previous by thread: Re: Mathematica and F#
  • Next by thread: Re: Mathematica and F#