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 9C8B77EE4B for ; Wed, 9 Oct 2013 11:09:28 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.90,1062,1371074400"; d="scan'208";a="36197147" Received: from dhcp-rocq-121.inria.fr (HELO [128.93.62.121]) ([128.93.62.121]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 09 Oct 2013 11:09:27 +0200 Message-ID: <52551D48.2030204@inria.fr> Date: Wed, 09 Oct 2013 11:09:28 +0200 From: Romain Bardou User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: "caml-list@inria.fr" X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Validation-by: romain.bardou@inria.fr Subject: [Caml-list] [ANN] Procord 0.1.0: Delegate tasks to other processes I am happy to announce the first release of Procord, a portable library to delegate tasks to other processes. Obtain it with opam: opam install procord Or, download the tarball: https://github.com/cryptosense/procord/archive/v0.1.0.tar.gz View a minimal, commented example: https://github.com/cryptosense/procord/blob/master/examples/minimal.ml You can browse the API at: http://cryptosense.github.io/procord/api/index.html Procord can spawn local worker processes or communicate using sockets to a remote worker server. Workers will receive an input, execute a function on this input, and send back the result. Meanwhile, the main program can continue to run while waiting for the results. Not relying on threads, Procord is robust - a segmentation fault in the worker will not kill the main program. Not relying on fork, Procord is portable - it has been tested on Linux and Windows. Procord provides an easy way to have the same executable act as a worker - local or remote - or as the main program. The actual behavior can be specified on the command-line. The default is to run as the main program, which delegates tasks by running itself. I will present Procord at the OUPS meeting of this evening. -- Romain Bardou