caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Joseph R. Kiniry" <kiniry@acm.org>
To: leary@nwlink.com
Cc: caml-list@inria.fr
Subject: [Caml-list] Re: Hitchhiker's Guide to Typing
Date: Fri, 08 Jun 2001 17:41:37 -0700	[thread overview]
Message-ID: <84460000.992047297@kind> (raw)
In-Reply-To: <20010608163211.B15375@jean>

I have my students/friends read Cardelli's "Typeful Programming", mentioned 
below, before teaching/introducing any language with typing.  It is the 
most readable summary of the topic that I know.

My HHGTTG entry for OCaml (or other languages with similarly strong type 
systems) would be "bad things don't unexpectedly happen when your run the 
program".  That seems to be good enough to interest the friends that I 
continue to convert.

Best,
Joe
--
Joseph R. Kiniry                    http://www.cs.caltech.edu/~kiniry/
California Institute of Technology        ID 78860581      ICQ 4344804


--On Friday, June 08, 2001 04:32:11 PM -0700 leary@nwlink.com wrote:

> On Fri, Jun 08, 2001 at 01:22:05PM -0700, Hao-yang Wang wrote:
>> I think by "type theory" you mean the type systems used in modern
>> programming languages. Luca Cardelli has written some nice
>> tutorial/survey on this topic.
>>
>> See <http://www.luca.demon.co.uk/Bibliography.html>. Look for the
>> articles "Typeful programming" and "Type systems".
>
> Excellent resources (particularly the "Typeful" doc).  My thanks to you.
> :)
>
> Seems to beg the questions tho': Is it not possible to learn and use OCaml
> without wading through 60 page docs on typing?  Will I have to read more
> of these papers to learn the object system?  Modules?
>
> I'm willing to read up on typing, since it seems pretty important to
> getting a good handle on FPLs/OCaml, and that's definitely what I'm after,
> but I wonder (in advance) if 60 pages can't be turned into far fewer.  I'd
> like some feedback on the notion that "if you can't explain it to a
> five-year-old, you don't really understand it" (or, rather, haven't given
> the simplest, most concise, most practically useful explanation).  By way
> of a couple examples, the HHGTTG entry for Earth is "mostly harmless".
> Investing can be distilled down to "buy low, sell high".  Not crashing a
> motorcycle is a matter of "look where you want to go, don't look at the
> ground".  No discussion of gyroscopic effects and psychology.  Of course,
> a working knowledge of typing will never be so simple, but contrast, for
> example, the "Type Systems" doc above; Table 34 is a good place to look.
> This is not what 99.99% of people looking to understand typing in OCaml
> are going to want.  If I didn't have a burning desire to learn OCaml/ML,
> and someone gave me just this document (and thanks for including the other
> one!) as a way of explaining the typing lingo, I'd give up and go back to
> what I was doing before, assuming that OCaml was every bit as obscure,
> difficult, and unrewarding as Unlambda:
>
> http://www.eleves.ens.fr:8080/home/madore/programs/unlambda/
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


  reply	other threads:[~2001-06-11 11:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-08 20:22 [Caml-list] " Hao-yang Wang
2001-06-08 23:32 ` leary
2001-06-09  0:41   ` Joseph R. Kiniry [this message]
2001-06-11 16:43   ` Brian Rogoff
2001-06-11 18:22     ` Jonathan Coupe
2001-06-11 21:05       ` [Caml-list] " Joseph R. Kiniry
2001-06-11 21:19       ` [Caml-list] " David Fox

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=84460000.992047297@kind \
    --to=kiniry@acm.org \
    --cc=caml-list@inria.fr \
    --cc=leary@nwlink.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;
as well as URLs for NNTP newsgroup(s).