From: Basile STARYNKEVITCH <basile@starynkevitch.net>
To: Fabrice Marchant <fabrice.marchant@orange.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] A C to OCaml helper ?
Date: Wed, 12 Mar 2008 22:03:51 +0100 [thread overview]
Message-ID: <47D84537.2060100@starynkevitch.net> (raw)
In-Reply-To: <20080312204217.3f5087e3@orange.fr>
Fabrice Marchant wrote:
> Please does it exist some tool that could do at least the very mechanical first parts of the translation of a C source to OCaml ?
Why do you want to do that?
You could call most of your C routines from Ocaml.
And most importantly, the main interest of ocaml is the way of thinking
it. When mastered, it is a language much more expressive & much more
fun. And no mechanical translation would give you that....
If it is a homework, better to start thinking & coding in Ocaml, than to
translate blindly C into Ocaml.
And a blind translation won't learn anything about Ocaml or functional
programming.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***
next prev parent reply other threads:[~2008-03-12 21:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-12 19:42 Fabrice Marchant
2008-03-12 20:51 ` [Caml-list] " Richard Jones
2008-03-12 21:03 ` Basile STARYNKEVITCH [this message]
2008-03-12 21:09 ` Fabrice Marchant
2008-03-13 6:41 ` Basile STARYNKEVITCH
2008-03-17 19:07 ` Kuba Ober
2008-03-17 20:33 ` Sylvain Le Gall
2008-03-13 1:56 ` [Caml-list] " Christopher L Conway
2008-03-13 3:14 ` Jon Harrop
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=47D84537.2060100@starynkevitch.net \
--to=basile@starynkevitch.net \
--cc=caml-list@inria.fr \
--cc=fabrice.marchant@orange.fr \
/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