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 55446BC57 for ; Sat, 20 Nov 2010 18:37:53 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsDAIOW50xQDPIvYGdsb2JhbACiZQsXCwgGFAMfumiFSwSEWokS X-IronPort-AV: E=Sophos;i="4.59,229,1288566000"; d="scan'208";a="80386616" Received: from smtp21.orange.fr ([80.12.242.47]) by mail2-smtp-roc.national.inria.fr with ESMTP; 20 Nov 2010 18:37:52 +0100 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2111.orange.fr (SMTP Server) with ESMTP id 01DF220000E1; Sat, 20 Nov 2010 18:37:53 +0100 (CET) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2111.orange.fr (SMTP Server) with ESMTP id E770120000E7; Sat, 20 Nov 2010 18:37:52 +0100 (CET) Received: from [192.168.1.114] (c-67-188-213-250.hsd1.ca.comcast.net [67.188.213.250]) by mwinf2111.orange.fr (SMTP Server) with ESMTP id A251120000E1; Sat, 20 Nov 2010 18:37:51 +0100 (CET) X-ME-UUID: 20101120173751664.A251120000E1@mwinf2111.orange.fr X-ME-User-Auth: padator@wanadoo.fr Subject: Re: [Caml-list] [Was: OCamlJit 2.0] Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Yoann Padioleau In-Reply-To: <04e801cb88d5$7d9a58f0$78cf0ad0$@com> Date: Sat, 20 Nov 2010 09:37:50 -0800 Cc: "'Benedikt Meurer'" , Content-Transfer-Encoding: quoted-printable Message-Id: <1BAB09A3-7235-4744-8401-06BA5E24A464@wanadoo.fr> References: <980786.74593.qm@web111507.mail.gq1.yahoo.com> <023DB1B5-B4D6-4C2A-AAF6-2368F93BEBB6@wanadoo.fr> <201011201619.47211.vincent.balat@pps.jussieu.fr> <6366332A-5DAC-469D-94A4-744E569CA3B0@wanadoo.fr> <04e801cb88d5$7d9a58f0$78cf0ad0$@com> To: Jon Harrop X-Mailer: Apple Mail (2.1081) X-Spam: no; 0.00; compiler:01 translating:01 ocaml:01 ocaml:01 translating:01 cheers:01 2.0:98 20,:98 frog:98 wrote:01 caml-list:01 codebase:96 seems:03 consequence:04 porting:06 On Nov 20, 2010, at 9:08 AM, Jon Harrop wrote: >> Do we have example of big companies porting their whole codebase to >> another language ? >=20 > Yes, of course. Companies modernise all the time. We have a client who = just > started porting 1MLOC of C++ to F#. How they do that ? Are they using compiler frontends to assist them in automatically translating part of the code to F# ? > Flying Frog have ported hundreds of > thousands of lines of OCaml to F#. OCaml and F# are very similar language, so such porting does not look = that hard. Translating from C++ to F#, or from PHP to Java seems more complicated. I wonder what kind of techniques people have developed to help such = language-to-language translation. > It happens all the time but it is even > more likely to happen as a consequence of multicore. >=20 > Cheers, > Jon. >=20 >=20