From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 32DFBBBAF for ; Tue, 24 Aug 2010 03:21:05 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak0CACm7ckxKfVIqkGdsb2JhbACIRZdwCBUBAQEBCQkMBxEDH6EriyuGWIkCAQEDBYUyBIQ1hUGIQA X-IronPort-AV: E=Sophos;i="4.56,260,1280700000"; d="scan'208";a="66032366" Received: from mail-ww0-f42.google.com ([74.125.82.42]) by mail1-smtp-roc.national.inria.fr with ESMTP; 24 Aug 2010 03:21:04 +0200 Received: by wwi17 with SMTP id 17so1053876wwi.3 for ; Mon, 23 Aug 2010 18:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type; bh=jrffp8KLmAfxsOWCVZYlWyJzAQegb/QFvGcO0Hmlm8Q=; b=cTl4CgJtSA6/LJW3ZUjRDofZSaWiBzY5+wnOMTCWovCUtJ8XAi6H4EjtA9+Gfx0KDy ke2RiRbFwXD31fWWA5yXWrbrqNRUa2hawMap6n1I2c0vezBdz/w0BWOZUyU2gfUsyPor vo9Z2gm4HxYMCNmStS0cvg4NuwuSvRrUSunwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=ZanE7RpTjF7Q9SLULhnhpxNAB+hqKSZg+/GHn1PlHb3A8ovIfv8VJZFGLMuNwLDtT2 nN2q9acws+nJC1cjty1OdMb4SuEicdOzow0Cbq7NEecpLzluXzBljyy4ioLk6G2xKJLf sANDhnF32mMLfxGRLz4Vh7KUToJIggStPigSY= Received: by 10.216.184.19 with SMTP id r19mr3276359wem.36.1282612864476; Mon, 23 Aug 2010 18:21:04 -0700 (PDT) MIME-Version: 1.0 Sender: jake.donham@gmail.com Received: by 10.216.186.213 with HTTP; Mon, 23 Aug 2010 18:20:44 -0700 (PDT) In-Reply-To: <72B69466-3FAC-41AC-96ED-6024DCBD341A@wanadoo.fr> References: <20100823013458.D1A5517415@Adric.ern.nps.edu> <72B69466-3FAC-41AC-96ED-6024DCBD341A@wanadoo.fr> From: Jake Donham Date: Mon, 23 Aug 2010 18:20:44 -0700 X-Google-Sender-Auth: LCrkOLJvqLGrnqY0KE6k4loFl4g Message-ID: Subject: Re: [Caml-list] Delimited continuations in OCaml go to 3.12 and 64 To: Yoann Padioleau Cc: oleg@okmij.org, caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 X-Spam: no; 0.00; delimited:01 ocaml:01 23,:98 wrote:01 caml-list:01 python:03 python:03 library:03 tutorial:03 implement:06 implement:06 examples:07 concrete:08 useful:09 stuff:09 On Mon, Aug 23, 2010 at 2:38 PM, Yoann Padioleau wrote: > Is there any tutorial on why such features are useful ? > Concrete examples of their use. For instance can you implement > python generators and its yield stuff by using this library ? Here is an example of a particular use of Delimcc to implement fibers for Lwt: http://ambassadortothecomputers.blogspot.com/2010/08/mixing-monadic-and-direct-style-code.html I don't know exactly how python generators work but I would imagine that you can implement them with Delimcc. Jake