From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 28A89BC88 for ; Sat, 5 Feb 2005 20:51:41 +0100 (CET) Received: from us19.unix.fas.harvard.edu (us19.unix.fas.harvard.edu [140.247.35.199]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j15JpeAY011611 for ; Sat, 5 Feb 2005 20:51:40 +0100 Received: from [140.247.161.153] (roam161-153.student.harvard.edu [140.247.161.153]) by us19.unix.fas.harvard.edu (8.12.11/8.12.11) with ESMTP id j15JpLRJ020283; Sat, 5 Feb 2005 14:51:22 -0500 In-Reply-To: <3a2f4a1305020508377ec6ddaf@mail.gmail.com> References: <20050205000208.GB1364@first.in-berlin.de> <3a2f4a1305020508377ec6ddaf@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: ml-labo@epimac.org, tipoix@free.fr, caml-list@yquem.inria.fr, Oliver Bandel From: Mike Hamburg Subject: Re: [Caml-list] OCaml && COCOA-Environment (Mac-OS-X/GUI) Date: Sat, 5 Feb 2005 14:51:20 -0500 To: Julien Roussel X-Mailer: Apple Mail (2.619.2) X-Miltered: at concorde with ID 420523CC.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 o'caml:01 invocation:01 o'caml:01 parsing:01 bindings:01 resurrect:01 wrote:01 oliver:01 oliver:01 bandel:01 in-berlin:01 wrote:01 lib:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Additionally, I developed a very rudimentary binding. It allowed the user to call Cocoa methods from O'Caml, but it had an enormous overhead: each method invocation from O'Caml had the overhead of about 5 method calls from the C glue. There was a (somewhat more efficient) Cocoa-to-O'Caml call method, but I don't remember if I ever finished it. Paul Snively, Nick Burlett and I were working on a more efficient bridge, by means of parsing Cocoa headers to automatically generate typed bindings which would look like objects to O'Caml, but the project fizzled without any real results. Perhaps someone with more FrontC knowledge could resurrect it. The existing code is not strongly typed: you can attempt to pass the wrong number or type of arguments to a method, and it will raise an O'Caml exception instead of rejecting it at compile time. The O'Caml-to-Cocoa bridge is not online, but I can send you what code we have if you want. Mike Hamburg On Feb 5, 2005, at 11:37 AM, Julien Roussel wrote: > Hello Oliver, > > There is a COCOA-CAML binding developed by Jean-Baptiste Poix, an > alpha version is available at > http://labo.epimac.org/article.php3?id_article=7. > > Sorry but the page is still in french, an english version and a > documentation will be available soon. You can download an example at > http://labo.epimac.org/IMG/gz/first_cococaml.tar.gz. > > Please do not hesitate to contact Jean-Baptiste (tipoix@free.fr) with > any questions. > > Regards, Julien. > > > On Sat, 5 Feb 2005 01:02:08 +0100, Oliver Bandel > wrote: >> >> Hello, >> >> is there a COCOA-Binding/Lib for OCaml? >> >> I want to do GUI-stuff for data-input by users >> as well as 3D-graphics (OpenGL-like) on Mac-OS-X. >> And I would be sooooo happy, it can be made with >> OCaml. >> Not that Objective-C or is a bad thing.... but >> doing the whole stuff in OCaml is preferred. >> >> Is there a library to use Ocaml with Mac-OS-X' GUIs? >> >> TIA, >> Oliver >> >> -- >> >> "Der Kopf ist rund, damit das Denken die Richtung wechseln kann." >> (Francis Picabia) >> >> _______________________________________________ >> Caml-list mailing list. Subscription management: >> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list >> Archives: http://caml.inria.fr >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >> Bug reports: http://caml.inria.fr/bin/caml-bugs >> > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >