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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 56A46BB81 for ; Thu, 1 Dec 2005 18:08:23 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jB1H8MB7004616 for ; Thu, 1 Dec 2005 18:08:22 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA07227 for ; Thu, 1 Dec 2005 18:08:21 +0100 (MET) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jB1H8LPN004613 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 1 Dec 2005 18:08:21 +0100 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Ehrs1-0001jI-BP for caml-list@inria.fr; Thu, 01 Dec 2005 18:05:21 +0100 Received: from 67.71.25.91 ([67.71.25.91]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Dec 2005 18:05:21 +0100 Received: from monnier by 67.71.25.91 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Dec 2005 18:05:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Stefan Monnier Subject: Re: Efficency of varient types Date: Thu, 01 Dec 2005 12:05:06 -0500 Message-ID: <87psogoik3.fsf-monnier+gmane.comp.lang.caml.inria@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 67.71.25.91 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:sLbSatusIGft4pjh2cdyAVoNTIc= Sender: news X-Miltered: at concorde with ID 438F2E06.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 438F2E05.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; umontreal:01 ocaml:01 ocaml:01 typing:01 typing:01 variant:02 python:02 types:02 typed:03 scheme:04 translation:07 function:08 translates:10 dynamicly:13 type:13 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=RCVD_BY_IP,RCVD_NUMERIC_HELO autolearn=disabled version=3.0.3 > I am working on a program that translates code from scheme into ocaml. > (Later I will try python into ocaml.) Because it is a dynamicly > typed language, the most natural translation would make everything a > function of a large variant type like: Google for "soft typing". You can start without soft typing and add it later on to get better performance. Stefan