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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Feb 5, 2005, at 11:51 AM, Mike Hamburg wrote:

> 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.
>
Mea culpa. I'm still very interested. I can't help but think that 
extending Jeff Henrikson's Forklift FFI to handle Objective-C and 
marrying that to an (improved? revised?) version of your bindings 
wouldn't be a big win, but I confess to having no real roadmap for how 
to get there, and my Copious Free Time(tm) is rather torn between 
wanting to get O'Caml going natively on OS X and wanting to plow 
through TAPL and now ATITAPL and master MetaPRL and concentrate on 
learning how to design modern programming languages.

But at the very least, I'd love to see the current state of your code. 
:-)

> Mike Hamburg
>
Many thanks and best regards,
Paul

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iEYEARECAAYFAkIGhmIACgkQO3fYpochAqJ17QCdFUWvJ3ul5nvsqb7wp/GZ8khp
fVcAniTDjb+ksXRgsxAT/ty9qwCyNdR2
=bSuT
-----END PGP SIGNATURE-----


  reply	other threads:[~2005-02-06 21:04 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
2005-02-06 21:04     ` Paul Snively [this message]
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=617f41a9a7ef08a96d3bd59b00a9ae47@mac.com \
    --to=psnively@mac.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=hamburg@fas.harvard.edu \
    --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).