caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Mike Hamburg <hamburg@fas.harvard.edu>
To: Julien Roussel <julien.roussel@gmail.com>
Cc: ml-labo@epimac.org, tipoix@free.fr, caml-list@yquem.inria.fr,
	Oliver Bandel <oliver@first.in-berlin.de>
Subject: Re: [Caml-list] OCaml && COCOA-Environment (Mac-OS-X/GUI)
Date: Sat, 5 Feb 2005 14:51:20 -0500	[thread overview]
Message-ID: <a289eb671c5bceded4f3046e3c13eada@fas.harvard.edu> (raw)
In-Reply-To: <3a2f4a1305020508377ec6ddaf@mail.gmail.com>

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
> <oliver@first.in-berlin.de> 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
>


  reply	other threads:[~2005-02-05 19:51 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-05  0:02 Oliver Bandel
2005-02-05 16:37 ` [Caml-list] " Julien Roussel
2005-02-05 19:51   ` Mike Hamburg [this message]
2005-02-06 21:04     ` Paul Snively
2005-02-07  2:24       ` Oliver Bandel
2005-02-09 19:41         ` Mike Hamburg
2005-02-17  7:12       ` Jeff Henrikson
2005-02-18 23:41         ` [Caml-list] " art yerkes
2005-02-25  2:03         ` Paul Snively
2005-02-25  9:13           ` Oliver Bandel
2005-02-26  1:19             ` [Caml-list] " Sachin Shah
2005-03-01  6:39           ` Jeff Henrikson
2005-03-07  5:20             ` Paul Snively
2005-02-22  2:45     ` [Caml-list] " William D.Neumann
2005-02-23  0:12       ` Jacques Garrigue
2005-02-24 20:40         ` Paul Snively
2005-02-24 23:21           ` Oliver Bandel
2005-02-25 17:20             ` Mostly OT: Apple and Language Adoption was " Paul Snively
2005-02-22 10:54     ` Oliver Bandel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a289eb671c5bceded4f3046e3c13eada@fas.harvard.edu \
    --to=hamburg@fas.harvard.edu \
    --cc=caml-list@yquem.inria.fr \
    --cc=julien.roussel@gmail.com \
    --cc=ml-labo@epimac.org \
    --cc=oliver@first.in-berlin.de \
    --cc=tipoix@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).