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.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 39C25BBAF for ; Fri, 3 Oct 2008 06:18:20 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiYBANc55UjLOwGUh2dsb2JhbACTYQEBAQoLCgUTBKgFA4Fl X-IronPort-AV: E=Sophos;i="4.33,354,1220220000"; d="scan'208";a="17606232" Received: from discorde.inria.fr ([192.93.2.38]) by mail3-smtp-sop.national.inria.fr with ESMTP; 03 Oct 2008 06:18:20 +0200 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m934IIiO018865 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Fri, 3 Oct 2008 06:18:19 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiYBANc55UjLOwGUh2dsb2JhbACTYQEBAQoLCgUTBKgFA4Fl X-IronPort-AV: E=Sophos;i="4.33,354,1220220000"; d="scan'208";a="17606231" Received: from outbound.icp-qv1-irony-out3.iinet.net.au ([203.59.1.148]) by mail3-smtp-sop.national.inria.fr with ESMTP; 03 Oct 2008 06:18:16 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAO055UjLzuai/2dsb2JhbAC8JgOBZQ X-IronPort-AV: E=Sophos;i="4.33,354,1220198400"; d="scan'208";a="331902024" Received: from unknown (HELO hendrix.mega-nerd.net) ([203.206.230.162]) by outbound.icp-qv1-irony-out3.iinet.net.au with ESMTP; 03 Oct 2008 12:18:12 +0800 Received: from hendrix (hendrix [192.168.200.99]) by hendrix.mega-nerd.net (Postfix) with SMTP id 5B7ADAB12F for ; Fri, 3 Oct 2008 14:18:11 +1000 (EST) Date: Fri, 3 Oct 2008 14:18:11 +1000 From: Erik de Castro Lopo To: caml-list@inria.fr Subject: Re: [Caml-list] - Convert Caml to C/C++, C#, PHP, etc - Message-Id: <20081003141811.0cc9fb49.mle+ocaml@mega-nerd.com> In-Reply-To: <19791755.post@talk.nabble.com> References: <19791755.post@talk.nabble.com> Reply-To: caml-list@inria.fr Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 48E59D0A.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 conceptually:01 syntax:01 ocaml:01 haskell:01 vbscript:98 wrote:01 caml-list:01 imperative:01 imperative:01 lazy:02 caml:02 caml:02 functional:02 python:03 axllaruse wrote: > I'm searching for some tool that would help me to convert open source caml > (.ml) files to C/C++, C#, VBScript, ASP, and/or PHP. Sorry, such a tool doesn't exist. It is probably possible to hire a person to do the conversion. > The main reason for searching a tool that could help me to convert these .ml > files is the following: > > 1- I don't have the time to learn another new language. Why is that? Lazy? The languages you mention are all imperative which means that conceptually they are all basically the same (the differences are mostly syntax). Ocaml on the other hand is a functional programming language with imperative and object oriented features. Ocaml is far more different to all of the languages you mention that any two of that group. Learning Ocaml (or similar languages like Haskell) will teach more about programmoing that you will ever learn from learning Java (another imperative programming language). > 2- I'm already doing programming in some many languages, that it gets > annoying. Just think about it. I use C, C++, Python and Ocaml regularly and a number of other languages irregularly. I don't see this as a problem. > 3- I don't have problem to learn Caml if in the future I find a company that > required me. Jane St Capital has been on the lookout for Ocaml programmers. Companies like Microsoft and Intel employ some too. There are also numerous smaller companies using Ocaml. I work for a small tech startup and about 50% of the code I write for work is in Ocaml. > Mind while, I would like to spend my time learning how to do > better algorithms that learning thousand of new languages. Ocaml is not about better algorithms its about different ways of thinking about programming. > Please let me know where I can find a program or opensource program that > could do this task. =) Which particular piece of ocaml code is it that you want to convert? Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "life is too long to know C++ well" -- Erik Naggum