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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 324AA7FCCB for ; Mon, 27 Apr 2015 23:02:29 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of sebastien-ocaml@chimrod.com) identity=pra; client-ip=212.27.42.3; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="sebastien-ocaml@chimrod.com"; x-sender="sebastien-ocaml@chimrod.com"; x-conformance=sidf_compatible Received-SPF: PermError (mail3-smtp-sop.national.inria.fr: cannot correctly interpret sender authenticity information from domain of sebastien-ocaml@chimrod.com) identity=mailfrom; client-ip=212.27.42.3; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="sebastien-ocaml@chimrod.com"; x-sender="sebastien-ocaml@chimrod.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@smtp3-g21.free.fr) identity=helo; client-ip=212.27.42.3; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="sebastien-ocaml@chimrod.com"; x-sender="postmaster@smtp3-g21.free.fr"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CbAQAooz5VnAMqG9RcgmaEb8MuhHmCXQKBNToSAQEBAQEBAREBAQEBAQYNCQkhLoQhAQEDASMPAQVABgsLGgIFFgsCAgkDAgECAUUTCAKIHwkDs0uUCQEKAQEBAR2BIYoXhQwWglKBRQEEqC2JQoQZgzEBAQE X-IPAS-Result: A0CbAQAooz5VnAMqG9RcgmaEb8MuhHmCXQKBNToSAQEBAQEBAREBAQEBAQYNCQkhLoQhAQEDASMPAQVABgsLGgIFFgsCAgkDAgECAUUTCAKIHwkDs0uUCQEKAQEBAR2BIYoXhQwWglKBRQEEqC2JQoQZgzEBAQE X-IronPort-AV: E=Sophos;i="5.11,659,1422918000"; d="scan'208";a="113724591" Received: from smtp3-g21.free.fr ([212.27.42.3]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 27 Apr 2015 23:02:28 +0200 Received: from goku.chimrod.com (unknown [IPv6:2a01:e35:8ac8:ee0:7271:bcff:feb1:adf4]) by smtp3-g21.free.fr (Postfix) with ESMTP id 99A68A6307 for ; Mon, 27 Apr 2015 23:02:14 +0200 (CEST) Received: from goku.chimrod.com (localhost [127.0.0.1]) by goku.chimrod.com (Postfix) with ESMTP id E058B1F774 for ; Mon, 27 Apr 2015 23:02:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on goku.chimrod.com X-Spam-Level: Received: from [IPv6:2a01:e35:8ac8:ee0:21c:25ff:fe8a:d9ab] (bureau [IPv6:2a01:e35:8ac8:ee0:21c:25ff:fe8a:d9ab]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by goku.chimrod.com (Postfix) with ESMTPSA for ; Mon, 27 Apr 2015 23:02:26 +0200 (CEST) Message-ID: <553EA3E2.8060104@chimrod.com> Date: Mon, 27 Apr 2015 23:02:26 +0200 From: =?UTF-8?B?U8OpYmFzdGllbiBEYWlsbHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0 MIME-Version: 1.0 To: caml-list@inria.fr References: <553E9CD0.5040203@gmx.net> In-Reply-To: <553E9CD0.5040203@gmx.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Caml-list] js_of_ocaml with node Le 27/04/2015 22:32, Helmut Brandl a écrit : > I achieved the compilation to javascript which can run under nodejs as > long as I don't use anything from the unix library. Unfortunately I need > two functions from the unix library: 1. Get the last modification time > of a file. 2. Create a directory. I cannot find anything equivalent in > the standard library. This a javascript limitation, not a js_of_ocaml one. I think (and hope) there is no such possibilities with standard javascript to create directories on the client fs. (and this would be a great security flaw if browsers would allow that). Regards, -- Sébastien Dailly