caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Viet Le <vietlq85@gmail.com>
To: Chet Murthy <murthy.chet@gmail.com>
Cc: OCaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] a question about GADTs
Date: Sun, 17 Jun 2018 07:39:22 +0100	[thread overview]
Message-ID: <CAG_8+G7PGqtaGZqsprh+YXx5vejaLrncsFQE5BD3sTCZd0Unsg@mail.gmail.com> (raw)
In-Reply-To: <CA++P_gedkSopHL3zD+dPRqGLmxvCykMWRU6tFMRk-x3_vOsnhw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]

What is PL? I would appreciate more descriptive language.

I can see that Janestreet claim huge benefits from GADTs (check their blog).

I also came across a blog about writing GraphQL server using OCaml & GADT.
Worth checking out.

String/print formatting used to rely on unsafe Obj.magic. For a few years
OCaml string/print formatting is using GADT that provide compile time
safety. Lookup format6, and OCaml GADT for string/print formatting. That’s
the most real-world usage.

Viet

On Sun, 17 Jun 2018 at 04:44, Chet Murthy <murthy.chet@gmail.com> wrote:

> I'm curious: is there any real-world use of GADTs, other than in PL
> itself?  I mean, writing interpreters, compilers, and such?  Any non-PL use?
>
> Again, not trying to start a flame-war -- just *curious*.
>
> --
Kind regards,
Viet

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

[-- Attachment #2: Type: text/html, Size: 1507 bytes --]

  reply	other threads:[~2018-06-17  6:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-15 14:34 Alan Schmitt
2018-06-15 15:21 ` Markus Mottl
2018-06-15 16:34   ` Alan Schmitt
2018-06-17  3:43 ` Chet Murthy
2018-06-17  6:39   ` Viet Le [this message]
2018-06-17  6:41     ` Julia Lawall
2018-06-17  9:50     ` Jesper Louis Andersen

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=CAG_8+G7PGqtaGZqsprh+YXx5vejaLrncsFQE5BD3sTCZd0Unsg@mail.gmail.com \
    --to=vietlq85@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=murthy.chet@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;
as well as URLs for NNTP newsgroup(s).