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.7 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 0AC4ABC69 for ; Wed, 15 Aug 2007 13:49:49 +0200 (CEST) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l7FBnmCT012433 for ; Wed, 15 Aug 2007 13:49:48 +0200 Received: by ug-out-1314.google.com with SMTP id o2so151536uge for ; Wed, 15 Aug 2007 04:49:48 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=f1GU+39SjblW7x4fUqXs14G1zgvlbBpYyov69HTlQ14c9pBNs3NU+t2FaBD+ubh4OfcidL+byoi80YxwY+/0VKTJdvaKuOuPnfwQYrNMtUHUigA1wDCdsE5hshjQGG6Bu+8XdKsd+0BIQLwWhrayssccKxiIwPgw3ATXVpKhIiQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=fRxIl+jNbbvW870IEsi582KfiqU/lsHmvCuEeQTlFEodDFe1DRpZaBKdjN5BFpWGpCnuzXpHgXfOuoNc4Wo2/tt/1wmWysDbSG8cLAyzOUezQLgfZ8qQO9PdxK9JLK/A9Jr3/Wg+qjUChOKMkp0t7MtPCJECI0EaQfXdZ8prNcs= Received: by 10.67.10.12 with SMTP id n12mr1388998ugi.1187178588213; Wed, 15 Aug 2007 04:49:48 -0700 (PDT) Received: from ?192.168.1.33? ( [83.33.68.230]) by mx.google.com with ESMTPS id b30sm15571889ika.2007.08.15.04.49.46 (version=SSLv3 cipher=OTHER); Wed, 15 Aug 2007 04:49:47 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <2B9157A5-ECA0-46EE-B628-840689224ACC@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: Caml List From: Joel Reymont Subject: High-performance bytecode interpreter in OCaml Date: Wed, 15 Aug 2007 12:49:31 +0100 X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 46C2E85C.000 on discorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at discorde with ID 46C2E85C.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bytecode:01 ocaml:01 ocaml:01 bytecode:01 inlined:01 cps:02 threaded:03 threaded:03 style:93 style:93 interpreter:07 interpreter:07 uses:07 efficient:07 folks:12 Folks, I would like to write a high-performance VM in OCaml. I understand that OCaml itself uses either a threaded interpreter or a switch- style one. What's the most efficient way to write a bytecode interpreter in OCaml itself, though? Would CPS style be inlined if I were to write a threaded interpreter this way? Thanks in advance, Joel -- http://wagerlabs.com