[mercury-users] Question
RMJ
radse1 at yahoo.com
Fri Oct 13 02:32:39 AEST 2006
Thank you for the information, Ralph. I already installed Mercury and can see that it has all, more or less, what I shall need.
The first step in my original plan was to build a special Prolog compiler but with Mercury it's already done for me. So, many thanks to Mercury's team for that and many thanks to you, Ralph, for the copy of the special unboxed, full-precision float array. I'll use it for the 32 bit machines.
Best Regards,
Rod
Ralph Becket <rafe at csse.unimelb.edu.au> wrote: Hi Rod,
RMJ, Wednesday, 11 October 2006:
> Being totally new to Mercury (although I have a long experience with
> Prolog, C/C++ and many others) I wonder if Mercury is a good choice,
> in performance & flexibility, to program some experimental neural
> networks and observing their convergence?
Anthony Lee Senyard did a PhD here at Melbourne a few years ago on just
this topic and used Mercury for his work. He would be a good person to
talk to if you want to track him down.
On 64 bit architectures there is no performance penalty for floating
point performance in Mercury.
On 32 bit architectures there is, because Mercury's float type is
equivalent to a C double, which occupies two machine words and hence
every stored float value has to be boxed (i.e., stored on the heap).
However, you can build the Mercury compiler with
MR_USE_SINGLE_PREC_FLOAT, which makes Mercury's float type equivalent to
a C float, and therefore doesn't need to be boxed. The trade off here
is loss of precision for increased performance.
For Anthony I implemented a special unboxed, full-precision float array
type which sped his programs up substantially. I'd be happy to let you
have a copy.
In a nutshell: Mercury is an excellent language for building robust
software, its performance is very good, but it has not been highly
optimized for floating point intensive applications. (Of course, that
could change if enough users make the request...)
-- Ralph
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20061012/cda9dea1/attachment.html>
More information about the users
mailing list