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 C6C3C7FCCB for ; Mon, 27 Apr 2015 22:32:23 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of helmut.brandl@gmx.net) identity=pra; client-ip=212.227.15.18; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="helmut.brandl@gmx.net"; x-sender="helmut.brandl@gmx.net"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of helmut.brandl@gmx.net designates 212.227.15.18 as permitted sender) identity=mailfrom; client-ip=212.227.15.18; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="helmut.brandl@gmx.net"; x-sender="helmut.brandl@gmx.net"; 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@mout.gmx.net) identity=helo; client-ip=212.227.15.18; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="helmut.brandl@gmx.net"; x-sender="postmaster@mout.gmx.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CaAQAenD5VnBIP49Rch1XMOzwQAQEBAQEBAREBAQEBAQYNCQkhLoRKFUA2AgUWCwILAwIBAgFYCAEBiBIBFgKjdINsi2qNewGGNYEhjzmCUoFFBYtdkVOGFyGERYlChDWDFQEBAQ X-IPAS-Result: A0CaAQAenD5VnBIP49Rch1XMOzwQAQEBAQEBAREBAQEBAQYNCQkhLoRKFUA2AgUWCwILAwIBAgFYCAEBiBIBFgKjdINsi2qNewGGNYEhjzmCUoFFBYtdkVOGFyGERYlChDWDFQEBAQ X-IronPort-AV: E=Sophos;i="5.11,659,1422918000"; d="scan'208";a="113722820" Received: from mout.gmx.net ([212.227.15.18]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 27 Apr 2015 22:32:23 +0200 Received: from [192.168.1.77] ([187.233.97.43]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0LaXEN-1Z9XkA3Bhn-00mLKI; Mon, 27 Apr 2015 22:32:22 +0200 Message-ID: <553E9CD0.5040203@gmx.net> Date: Mon, 27 Apr 2015 15:32:16 -0500 From: Helmut Brandl User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: caml-list@inria.fr Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:yjUH6aRkMRQbaAUEzXOnSIdePGsRATqP1JrkYr4tOKj9fge2IFH k6N4TWdC6E8RRLg3C6/xa8gzRJ870pE4uYVKHFpTOvuZY4Zns8Us4lssJI0sHjFyA2ei5fu 1hbROVteuYSUGHYEhoHhi6jd0GOn7pCm1JaOa6kzfEyUi4yvYewdFjmaH3xH14tL1Q2Ebte yK7ZAQ8jJGfIAH67RoOQQ== X-UI-Out-Filterresults: notjunk:1; Subject: [Caml-list] js_of_ocaml with node Hello all, I am currently writing a software package in ocaml and I want to be able to compile it from ocaml to javascript to be able to run it under nodejs. I have found js_of_ocaml which seems to do a rather good job in compiling from bytecode to javascript. 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. I tried to find some hints in the js_of_ocaml documentation but I haven't succeeded because to documentation is hard to read. Can anybody give me some hints on how to get these two functions in a way that js_of_ocaml does the correct compilation? Thanks in advance Regards Helmut