From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: Maurizio Colucci <maurizio.colucci@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Re: Reading 16 bit floats from stream?
Date: Tue, 17 Oct 2006 16:32:16 +0200 [thread overview]
Message-ID: <1161095536.18038.35.camel@localhost.localdomain> (raw)
In-Reply-To: <e919163f0610170702r2abe6e49ne97cbed9c1b77faa@mail.gmail.com>
Am Dienstag, den 17.10.2006, 16:02 +0200 schrieb Maurizio Colucci:
> BTW, I am a bit surprised the standard library does not offer a way to
> do that. A simple task can become frustrating.
I must say that I do not see the point. Although O'Caml is for
high-level tasks it is unavoidable that you must sometimes look at the
details and understand what's going on under the hood. This is more a
matter of the programmer's general knowledge, and not about how good or
bad a certain library is (which includes what _other_ people consider as
important).
Just to scare you. Before release 3.08 there was no Int32.float_of_bits
in O'Caml, and one had to program such a function with bit shifting
primitives. See how ugly this is (look for the now commented-out
function fp8_of_fp4):
https://gps.dynxs.de/svn/lib-ocamlnet2/trunk/code/src/rpc/rtypes.ml
Gerd
--
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany
gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de
Phone: +49-6151-153855 Fax: +49-6151-997714
------------------------------------------------------------
prev parent reply other threads:[~2006-10-17 14:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <e919163f0610160833t6b04489ev46a2c4dd28860729@mail.gmail.com>
2006-10-16 15:44 ` Maurizio Colucci
2006-10-16 16:03 ` Maurizio Colucci
2006-10-16 16:27 ` [Caml-list] " Gerd Stolpmann
2006-10-16 17:06 ` Maurizio Colucci
2006-10-16 17:23 ` Tom
2006-10-16 20:19 ` Martin Jambon
2006-10-16 20:35 ` Tom
2006-10-16 23:25 ` Jacques Garrigue
2006-10-17 14:02 ` Maurizio Colucci
2006-10-17 14:32 ` Gerd Stolpmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1161095536.18038.35.camel@localhost.localdomain \
--to=info@gerd-stolpmann.de \
--cc=caml-list@yquem.inria.fr \
--cc=maurizio.colucci@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox