caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Native delimited continuations for bytecode OCaml
@ 2006-02-28  1:34 Jacques Carette
  2006-03-01  9:13 ` [Caml-list] " Till Varoquaux
  0 siblings, 1 reply; 7+ messages in thread
From: Jacques Carette @ 2006-02-28  1:34 UTC (permalink / raw)
  To: caml-list; +Cc: oleg

[Posted for oleg@pobox.com]

This message announces the native implementation of delimited
continuation framework for byte-code OCaml. The framework supports
`static' (shift/reset) and `dynamic' (prompt/control, shift0,
control0) delimited continuation operators with multiple, arbitrarily
typed prompts. The test file testd0.ml is a good example of using
shift/reset in OCaml programs.

The implementation is native: it copies a relevant fragment of the
OCaml interpreter stack (The stack or its fragments are never
inspected however). The implementation is efficient: only the
necessary prefix of the stack is copied. The implementation is
fully integrated with OCaml exceptions: exception handlers may be
captured in delimited continuation (and re-instated when the captured
continuation is installed); exceptions remove the prompts along the
way. The implementation has no typing problems, no bizarre 'a cont
types, and no use for magic. The implementation does no patching to
the OCaml system and is a regular library. If you compile the
top-level (see `make top'), you can use delimited continuation
operators in interactive OCaml sessions.

The library has been tested for OCaml 3.08, 3.09.0, and 3.09.1, on
ia32 Linux and FreeBSD platforms. The current version is 1.6, Feb 7,
2006.

The library is distributed under the MIT license.

	http://pobox.com/~oleg/ftp/packages/caml-shift.tar.gz



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

end of thread, other threads:[~2006-03-03  1:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-28  1:34 Native delimited continuations for bytecode OCaml Jacques Carette
2006-03-01  9:13 ` [Caml-list] " Till Varoquaux
2006-03-01  9:26   ` Till Varoquaux
2006-03-01 11:37     ` oleg
2006-03-01 23:51       ` Jacques Garrigue
2006-03-03  1:20         ` oleg
2006-03-03  1:36           ` Till Varoquaux

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