caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: rixed@happyleptic.org
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Good book about ML compilation ?
Date: Thu, 20 Aug 2009 22:47:26 +0100	[thread overview]
Message-ID: <20090820214726.GA2015@annexia.org> (raw)
In-Reply-To: <20090820184052.GA28533@happyleptic.org>

On Thu, Aug 20, 2009 at 08:40:52PM +0200, rixed@happyleptic.org wrote:
> Hello !
> 
> Suppose I want to learn how ML is compiled, and especialy how OCaml is
> compiled, it's various internal lambda representations and the like.
> Would this book :
> 
> http://www.amazon.com/Modern-Compiler-Implementation-Andrew-Appel/dp/0521607647/
> 
> be a good one ?

I read this book last year.  It's mainly directed towards writing a
compiler for imperative languages.  I didn't find it to be anything
particularly special, but I guess it's OK if you want to know the
basics of writing things like garbage collectors.

For functional programming specifically, you might try Simon
Peyton-Jones's book "The Implementation of Functional Programming
Languages".  This used to be available free here, but as I write the
website is down:

http://research.microsoft.com/en-us/um/people/simonpj/papers/slpj-book-1987/

I have a local copy of it if you don't locate one.

> It's hard to tell what this book's worth from the customer advices ; it's
> especialy hard to tell if it fits well to OCaml or not.

Best way to find out how OCaml is implemented is to read
the source.

Rich.

-- 
Richard Jones
Red Hat


  reply	other threads:[~2009-08-20 21:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-20 18:40 rixed
2009-08-20 21:47 ` Richard Jones [this message]
2009-08-21 15:00   ` [Caml-list] " rixed
2009-08-20 22:02 ` Jon Harrop
2009-08-21 15:09   ` rixed

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=20090820214726.GA2015@annexia.org \
    --to=rich@annexia.org \
    --cc=caml-list@inria.fr \
    --cc=rixed@happyleptic.org \
    /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;
as well as URLs for NNTP newsgroup(s).