caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Continuations tutorial/examples in OCaml
@ 2002-04-04  0:38 Benjamin C. Pierce
  2002-04-04  3:04 ` eijiro_sumii
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin C. Pierce @ 2002-04-04  0:38 UTC (permalink / raw)
  To: caml-list

I've been discussing programming idioms based on continuations with some
students, and I'd like to find a nice tutorial or compendium of examples
illustrating some of the useful and mind-bending things that can be done.

I know there are lots of tutorials from the Scheme community, but they
tend to depend on continuations as a *language* mechanism (call/cc),
which OCaml (which is the context of this discussion) doesn't have.  So
I'd prefer to find something that develops the same ideas in a more
concrete way, using an explicit continuation-passing style.  [Scheme (or
Haskell, SML, or whatever) syntax is no problem, as long as the
continuations are explicit.]
  
Pointers appreciated...

     Benjamin

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Continuations tutorial/examples in OCaml
  2002-04-04  0:38 [Caml-list] Continuations tutorial/examples in OCaml Benjamin C. Pierce
@ 2002-04-04  3:04 ` eijiro_sumii
  0 siblings, 0 replies; 2+ messages in thread
From: eijiro_sumii @ 2002-04-04  3:04 UTC (permalink / raw)
  To: bcpierce; +Cc: caml-list, sumii

From: "Benjamin C. Pierce" <bcpierce@saul.cis.upenn.edu>
> I've been discussing programming idioms based on continuations with some
> students, and I'd like to find a nice tutorial or compendium of examples
> illustrating some of the useful and mind-bending things that can be done.

The following paper includes a nice application of CPS to backtracking
in regular expression matching.  It is implemented in (Standard) ML,
of course!

  Robert Harper.  Functional Pearl: Proof-directed debugging.  Journal
  of Functional Programming, 9(4):463-469, July 1999.  Also in
  Proceedings of the Workshop on Functional and Declarative
  Programming in Education, 1999.

--
Eijiro Sumii (http://www.yl.is.s.u-tokyo.ac.jp/~sumii/)
Research Associate of Yonezawa Laboratory, University of Tokyo
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-04  3:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-04  0:38 [Caml-list] Continuations tutorial/examples in OCaml Benjamin C. Pierce
2002-04-04  3:04 ` eijiro_sumii

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).