caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Claudio Russo <crusso@microsoft.com>
To: Brian Rogoff <bpr@best.com>, caml-list@inria.fr
Subject: RE: first class, recursive, mixin modules (was: RE: first class m odules)
Date: Fri, 9 Feb 2001 01:41:06 -0800	[thread overview]
Message-ID: <112C6E8A1B25D34BB27D48D2FD2E96CFC942C0@TVP-MSG-02.europe.corp.microsoft.com> (raw)

> On Fri, 12 Jan 2001, Claudio Russo wrote:
> > I wasn't quite sure of your intention, but I did get the 
> attached code
> > to work in Mosml (it includes a port of the Ocaml libraries and a
> > fleshed out implementation of your idea).
> 
> Cool! OK, now Alain has at least one example of a practically 
> useful case
> handled by your scheme :-). I suspect that this problem bites 
> lots of ML 
> programmers, and a fix is eagerly desired by at least two OCaml
> programmers. Congratulations on making this work, the millenium is
> starting off on a great note already!

I'm not really sure it bites that many, but I'd like to be told
otherwise. It does really hit you when  trying to 
implement Chris Okasakis elegant bootstrapped data structures, or
emulate object oriented things with modules.  (Together with first-class
and recursive structure, you can model quite a bit of object oriented
stuff, but I'm not sure how natural or efficient this appproach is.) 
 
> > Unfortunately, this only works in an internal release of 
> Moscow, because
> > of a (known) bug in the current distribution. 
> 
> Well, even more unfortunately, a fix in Mosml doesn't help me 
> unless you
> change to Mosocaml. I couldn't switch to SML even if I wanted 
> to, and I 
> don't want to! Hopefully the OCaml Implementors (you guys are even
> capitalized now) will "borrow back" the Mosml improvements 
> into OCaml. 

If I had the time, I'd do it, but I don't really. It should be easy to
deconstruct the Moscow ML sources
and transplant the ideas to Ocaml (at least to the bytecode
interpreter). I can give pointers to whoever tries to do that.


Cheers,
Claudio

> 



             reply	other threads:[~2001-02-09 16:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-09  9:41 Claudio Russo [this message]
2001-02-09 16:47 ` Brian Rogoff
2001-02-09 21:45 ` William Chesters
  -- strict thread matches above, loose matches on Subject: below --
2001-01-15 14:13 Dave Berry
2001-01-14 20:51 Brian Rogoff
2001-01-12 12:12 Claudio Russo
2001-01-11 18:15 Dave Berry
2001-01-11 20:01 ` Brian Rogoff

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=112C6E8A1B25D34BB27D48D2FD2E96CFC942C0@TVP-MSG-02.europe.corp.microsoft.com \
    --to=crusso@microsoft.com \
    --cc=bpr@best.com \
    --cc=caml-list@inria.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;
as well as URLs for NNTP newsgroup(s).