From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=AWL autolearn=disabled version=3.1.3 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 60059BBAF for ; Sun, 12 Oct 2008 17:19:04 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au0AAH+y8UjRVcbvk2dsb2JhbACDII99PgEBAQEJCwgJDwWdd22GBwECAQOBaQ X-IronPort-AV: E=Sophos;i="4.33,397,1220220000"; d="scan'208";a="18612854" Received: from rv-out-0506.google.com ([209.85.198.239]) by mail1-smtp-roc.national.inria.fr with ESMTP; 12 Oct 2008 17:19:03 +0200 Received: by rv-out-0506.google.com with SMTP id f6so1252620rvb.3 for ; Sun, 12 Oct 2008 08:19:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=SzggiBKhugdNG/swwOV/lOKmoY0dpv4BfB2ih2IKGK8=; b=Kwv11UdcPnMiDh93Rv0klpCHWw8/ygOf3Z/EQWju1osd/n9eDrWfbxt1sNd9sJZCl1 6vRu6fFXAGdIkrGRSdH3gBdNIqy6Hg5yn6SohzauIH49+W75jh2MCmhmwjckzGYJzNQW cJmqq897DJBR/VgRATFF19xRkw0pnIU6dx0cc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=MPgdm+ONNuN04a80ssknuFiVmjMA/eniCjCv98WrAbTILjd4kfU5Knsz6jYwmSbj7O NvAngCOwku1EeLtx0stT8XX5szDD98lO+5tKot3snXK+aeNPo9nHnRlbrUinCDBGJS84 4fOzIAHLTyn+PvUhLOpR+60lU0Wjn8Tugyo/Y= Received: by 10.142.237.19 with SMTP id k19mr2020067wfh.295.1223824742469; Sun, 12 Oct 2008 08:19:02 -0700 (PDT) Received: by 10.143.35.6 with HTTP; Sun, 12 Oct 2008 08:19:02 -0700 (PDT) Message-ID: Date: Sun, 12 Oct 2008 11:19:02 -0400 From: "Markus Mottl" To: "Jan Kybic" Subject: Re: [Caml-list] Top-level with compiled libraries, Was: ANN OCaml Batteries Included Cc: caml-list@yquem.inria.fr In-Reply-To: <878wsuw4o8.fsf_-_@fel.cvut.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1223732914.7333.22.camel@Blefuscu> <200810120142.23667.peng.zang@gmail.com> <878wsuw4o8.fsf_-_@fel.cvut.cz> X-Spam: no; 0.00; markus:01 mottl:01 markus:01 mottl:01 ocaml:01 toplevel:01 toplevel:01 lacaml:01 byte-code:01 lacaml:01 toplevels:01 ocaml:01 wrote:01 caml-list:01 computation:01 On Sun, Oct 12, 2008 at 5:20 AM, Jan Kybic wrote: > Hello. On the subject of using toplevel: I would love to use toplevel > to test my code but I need a lot of compiled libraries (written in C) > - such as FFTW, Lacaml, etc. - and as far as I know, it is not > possible to use compiled code from toplevel. Or am I wrong? Also, some > of my code is quite computationally intensive, so in byte-code it runs > too slowly. It is certainly possible to use Lacaml (and presumably also FFTW) in toplevels. There shouldn't be any noticable performance penalty, since almost all of the computation time is spent in external libraries written in Fortran or C. Regards, Markus -- Markus Mottl http://www.ocaml.info markus.mottl@gmail.com