From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 8FE4F7FF9F for ; Tue, 8 Mar 2016 12:04:05 +0100 (CET) IronPort-PHdr: 9a23:XSRFRxaIqJZtqt6B9mHg4J3/LSx+4OfEezUN459isYplN5qZpcS7bnLW6fgltlLVR4KTs6sC0LqJ9fC8EjRfqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh7/0q8GYO1oArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIZoGJ/3dKUgTLFeEC9ucyVsvJWq5lH/Sl6q738XVWET2j9BHwHB7xiyCpL0uzfzsul08CafNMzyC7szXGLxwb1sTUrKhT0KMj80uE3Wj812i+oPoh6goh15xKbWaYeYL+Zkc67BO9gdQDwSDY5qSyVdD9bkPMM0BO0bMLMd9tGlqg== Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jdimino@janestreet.com; spf=Pass smtp.mailfrom=jdimino@janestreet.com; spf=None smtp.helo=postmaster@mxout1.mail.janestreet.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of jdimino@janestreet.com) identity=pra; client-ip=38.105.200.112; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="jdimino@janestreet.com"; x-sender="jdimino@janestreet.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of jdimino@janestreet.com designates 38.105.200.112 as permitted sender) identity=mailfrom; client-ip=38.105.200.112; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="jdimino@janestreet.com"; x-sender="jdimino@janestreet.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mxout1.mail.janestreet.com) identity=helo; client-ip=38.105.200.112; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="jdimino@janestreet.com"; x-sender="postmaster@mxout1.mail.janestreet.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AuAQDCsN5WknDIaSZchAxtBrpTgWkXAQmFbgKBLwc6EgEBAQEBAQEBEAEBAQEHFglQQRIBgVmCFQEBAwESER0BATcBBAsLBAcDNAICIQESAQUBHAYTIodtAwoIAwuhIYExPjGKT2eEQQEEhhcNhEQBAQEBAQEBAwEBAQEBAQEBAQEBDwIECoYNhD6CPR2CDYIbCy0TgSeXL4VjhhaBdY57hw2GCxEegQ8nDIIlHoFQaoUShG0BAQE X-IPAS-Result: A0AuAQDCsN5WknDIaSZchAxtBrpTgWkXAQmFbgKBLwc6EgEBAQEBAQEBEAEBAQEHFglQQRIBgVmCFQEBAwESER0BATcBBAsLBAcDNAICIQESAQUBHAYTIodtAwoIAwuhIYExPjGKT2eEQQEEhhcNhEQBAQEBAQEBAwEBAQEBAQEBAQEBDwIECoYNhD6CPR2CDYIbCy0TgSeXL4VjhhaBdY57hw2GCxEegQ8nDIIlHoFQaoUShG0BAQE X-IronPort-AV: E=Sophos;i="5.22,556,1449529200"; d="scan'208,217";a="206561506" Received: from mxout1.mail.janestreet.com ([38.105.200.112]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Mar 2016 12:04:04 +0100 Received: from tot-qpr-mailcore1.delacy.com ([172.27.56.68] helo=tot-qpr-mailcore1) by mxout1.mail.janestreet.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82) (envelope-from ) id 1adFQp-0004Q0-P2 for caml-list@inria.fr; Tue, 08 Mar 2016 06:04:03 -0500 X-JS-Flow: external Received: by tot-qpr-mailcore1 with JS-mailcore (0.1) (envelope-from ) id BW3rGj-AAAAl6-WO; 2016-03-08 06:04:03.713111-05:00 Received: from mail-io0-f170.google.com ([209.85.223.170]) by mxgoog2.mail.janestreet.com with esmtps (UNKNOWN:AES128-GCM-SHA256:128) (Exim 4.72) (envelope-from ) id 1adFQp-0006qE-Hn for caml-list@inria.fr; Tue, 08 Mar 2016 06:04:03 -0500 Received: by mail-io0-f170.google.com with SMTP id g203so21655718iof.2 for ; Tue, 08 Mar 2016 03:04:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=xEQgFMFYSQmQaPvRUxayuBrmt7mFGIUgNoyb9/d3oSc=; b=j3Uyausi6OaRyHLk2P7kmarBwp5Oz4MIrMGJ/MMKjRDOyYHuXtTuk1+UsGzwRINTb4 20qq5ni9+OZPdM4d+Q/WPB2t7Mbyn2M8s/jCWo32AZo5YNGn4isTq0NjlMgI3l8wzAjt 3wryDWdeq5qDD2py6zaTFw2u+OJxBOQkU1lOk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=xEQgFMFYSQmQaPvRUxayuBrmt7mFGIUgNoyb9/d3oSc=; b=VVmCN27QPQvxfZ5APwVWk+5wK8Bl7lX7obaDI0MFmt3KXMsfmpOYV11BWB+2nrKwyq bVXtd3LRG6rrhpaNHaOj1P9JlSjwBxvrZY16fBSHSXD6shNj4JC/cTABSGYM5f9P9LJX +Sp9fqulv+S4AbyJMiHZFpYhr1qTbUm2q+pAnevHeHP4h/FqbEAr1gJtiTSgQKqHiMnb mhQttDgCKW37O3LDwtPo+SayF7yOP/LjQ2Ds8qS9WzImUBKBMy98dSTO+574UYf2u3UL T74KtxA8nlcBR+BKmHFJ32zYgjDqJsCkHq2eVqPuqiBORKAHRk+YQpJkcVdasKoFVVkB MFeA== X-Gm-Message-State: AD7BkJK+j/ARnYGNJu1uY6nDkf1VNSJ9Z1tN84xPjD7wOvOpGIRi7hDMgSxD/cpkFNi5NsV2J5SwQixXnmy8hiC1Wg6CHO6kY3D6Q6CVnNOmjKjoyEiBs4qIsVUdJDUF2CffjSIQdDY5BUIZQ1JO X-Received: by 10.107.155.206 with SMTP id d197mr24518117ioe.135.1457435043177; Tue, 08 Mar 2016 03:04:03 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.107.155.206 with SMTP id d197mr24518099ioe.135.1457435043066; Tue, 08 Mar 2016 03:04:03 -0800 (PST) Received: by 10.50.30.193 with HTTP; Tue, 8 Mar 2016 03:04:02 -0800 (PST) In-Reply-To: <868u1ta25r.fsf@gmail.com> References: <86h9gi9msc.fsf@gmail.com> <86d1r69ho4.fsf@gmail.com> <868u1ta25r.fsf@gmail.com> Date: Tue, 8 Mar 2016 11:04:02 +0000 Message-ID: From:Jeremie Dimino To:Malcolm Matalka Cc:Yotam Barnoy , Yaron Minsky , Jesper Louis Andersen , Ocaml Mailing List Content-Type: multipart/alternative; boundary=001a11402a9e06a65e052d878a03 X-JS-Processed-by: mailcore Subject: Re: [Caml-list] Question about Lwt/Async --001a11402a9e06a65e052d878a03 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Mar 8, 2016 at 6:56 AM, Malcolm Matalka wrote: > Yotam Barnoy writes: > > > Out of curiosity, what polling mechanism is available on the lwt side? > > I believe Lwt supports multiple event loops underneath, including libuv > to get whatever polling the OS supports. =E2=80=8BYes, by default Lwt has a backend using Unix.select, and a libev o= ne if available at compile time (`opam install conf-libev`) =E2=80=8B. At runtime Lwt will use the Unix.select backend by default, exce= pt if it was configured to choose the libev one (the default on Linux) [1]. There is also a backend using the glib main loop, for GTK applications [1] https://github.com/ocsigen/lwt/blob/master/_oasis#L88 --=20 Jeremie --001a11402a9e06a65e052d878a03 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Tue, Ma= r 8, 2016 at 6:56 AM, Malcolm Matalka <mmatalka@gmail.com> wrote:
Yotam Barnoy <yotambarnoy@gmail.com> writes:

> Out of curiosity, what polling mechanism is available on the lwt side?=

I believe Lwt supports multiple event loops underneath, including li= buv
to get whatever polling the OS supports.

=E2=80=8BYes, by default Lwt has a backend using Unix.selec= t, and a libev one if
=C2=A0available at compile time (`opam install conf-libev`)
=E2=80=8B. At runtime Lwt will use the Unix.select backend by defa= ult, except if it was configured to choose the libev one (the default on Li= nux) [1].=C2=A0

There is als= o a backend using the glib main loop, for GTK applications


--
Je= remie
--001a11402a9e06a65e052d878a03--