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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id E8161BC37 for ; Thu, 11 Feb 2010 02:28:09 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAILrckvRVdPLkGdsb2JhbACDCo4XgSBzhz8IFQEBAQEJCQwHEwMgrkwugUqEYohyAQEDBYEqgktbBA X-IronPort-AV: E=Sophos;i="4.49,448,1262559600"; d="scan'208";a="56778346" Received: from mail-yw0-f203.google.com ([209.85.211.203]) by mail4-smtp-sop.national.inria.fr with ESMTP; 11 Feb 2010 02:28:09 +0100 Received: by ywh41 with SMTP id 41so1246356ywh.0 for ; Wed, 10 Feb 2010 17:28:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:message-id :subject:mime-version:content-type:content-transfer-encoding; bh=m1wYgw69PLicEkYVrwE/1piYVfdE4k33SFnul2lLrDw=; b=e6LFHLzSbV/IaWP8cU/qXO0ViShuRD48bK+GV7mMHA8olqivfuYsXB8qKTcLpzLvND 9jLfoO9Tw04crgMr8EsyUKuZdcufQN/DeD69YZME+Ar1aYiaK5UI1KtgkOOB2vYugLnK CLnRCSzrdXWzi6NayRvp3wIzFfjCUe1o6KjNw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:message-id:subject:mime-version:content-type :content-transfer-encoding; b=KXFolXc+T9UQS2eBaXS+8zymZyDKDj5mWjlx0YdHuXgqofQfO4uMqGAfw0kM+Bn+SE ffhxLjEo19aCaWghBfWH4H0Ver49fOb/I0z0P4IxcDy+Mac0l8C+D1dj7FpygO7d9C6/ ZWcDxd9KmOIcRRwy6FD+a3VtxFEYj47CUZrF0= Received: by 10.101.137.11 with SMTP id p11mr1513842ann.72.1265851687916; Wed, 10 Feb 2010 17:28:07 -0800 (PST) Received: from Macintosh-234.local (55.62.255.123.dynamic.snap.net.nz [123.255.62.55]) by mx.google.com with ESMTPS id 13sm1266993gxk.1.2010.02.10.17.28.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 10 Feb 2010 17:28:07 -0800 (PST) Date: Thu, 11 Feb 2010 14:28:06 +1300 From: Andrew Webb To: Message-ID: Subject: Ocaml, Objective-c, and XCode MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Spam: no; 0.00; ocaml:01 ocaml:01 bindings:01 interfacing:01 haskell:01 haskell:01 xcode:98 cocoa:98 xcode:98 cocoa:98 unison:02 languages:03 languages:03 mixing:07 head:90 Hi there, I have a few questions relating to using Ocaml with objective-c for anyone who programs on a Mac. I am aware that there aren't any real bindings between ocaml and objective-c/cocoa, so I am investigating rolling my own. So: 1) Does anyone have experience in interfacing ocaml and objc? Is it difficult? 2) Does anyone have a small example project that does mix these two languages? I have looked at unison, but it is too big for me to get my head around. I am thinking more on the scale of the ubiquitous Currency Converter... 3) Does anyone who is mixing these languages use Xcode to do so? If so, what steps do you need to go through to set that up? A big thanks to anyone who can answer (some of) these questions. I am trying to decide whether to use haskell or ocaml for my next cocoa application, as these are the two languages I am most comfortable. I have recently found an excellent description of how to do this using haskell (http://tscheff.blogspot.com/2010/02/currync-converter-using-haskell-with.html) and was wondering if there were such resources for ocaml. Thanks, Andrew