From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 11640BC57 for ; Fri, 19 Nov 2010 19:24:49 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArkBAI5P5kzRVdW0k2dsb2JhbACDRJ8VCBUBAQEBCQkKCREDH6NHiSaIIIhpgSKDNnMEhFqGAYV9 X-IronPort-AV: E=Sophos;i="4.59,224,1288566000"; d="scan'208";a="80354079" Received: from mail-yx0-f180.google.com ([209.85.213.180]) by mail2-smtp-roc.national.inria.fr with ESMTP; 19 Nov 2010 19:24:48 +0100 Received: by yxj4 with SMTP id 4so2962480yxj.39 for ; Fri, 19 Nov 2010 10:24:47 -0800 (PST) Received: by 10.151.78.10 with SMTP id f10mr4169636ybl.48.1290191087375; Fri, 19 Nov 2010 10:24:47 -0800 (PST) MIME-Version: 1.0 Sender: hcarty@mulethief.com Received: by 10.150.182.17 with HTTP; Fri, 19 Nov 2010 10:24:27 -0800 (PST) In-Reply-To: References: <4CE395D4.4000105@frisch.fr> From: "Hezekiah M. Carty" Date: Fri, 19 Nov 2010 13:24:27 -0500 X-Google-Sender-Auth: xXf5TkT2sHHpVFEwR1Dv1O_ivf4 Message-ID: Subject: Re: [Caml-list] Native toplevel? (was: OCamlJit 2.0) To: David MENTRE Cc: Ashish Agarwal , caml-list@yquem.inria.fr, Alain Frisch Content-Type: text/plain; charset=UTF-8 X-Spam: no; 0.00; toplevel:01 prototyping:01 toplevel:01 recompile:01 prototyping:01 native-code:01 2.0:98 1975:98 wrote:01 caml-list:01 jambon:01 data:02 data:02 compiling:02 native:03 On Fri, Nov 19, 2010 at 1:09 PM, David MENTRE wrote: > Hello, > > 2010/11/18 Ashish Agarwal : >> Rapid prototyping for me often involves a couple of lines of code that read >> in a very large file and do something with it. I have to keep compiling >> these small programs to native code because the performance of the toplevel >> is too slow. Then, I have to recompile and re-read the whole file for every >> little additional thing I want to compute. A high-performance toplevel would >> help in this kind of work. > > Or use ocamlscript: http://martin.jambon.free.fr/ocamlscript.html > ocamlscript is certainly a wonderful tool, for prototyping and otherwise. It unfortunately doesn't help specifically with the "load a large file and do something with it" case. A native-code toplevel allows you to keep the native code speed benefits and load the file only once. Interactive experimentation on the file's data then doesn't require waiting for the data to be read in each time. Hez