Browse thread
Cocoa bindings (again)
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2006-07-20 (16:41) |
From: | Paul Snively <psnively@m...> |
Subject: | Re: [Caml-list] Cocoa bindings (again) |
On Jul 18, 2006, at 2:38 PM, Joel Reymont wrote: > Folks, > > I would like to tinker with Cocoa bindings and try to move that > project forward. > > Where should I start from? I would like to take the route of > parsing Obj-C header files. > I agree that this is long overdue. A long time ago, Mike Hamburg, Jeff Henrikson, and I made noises about working on this, based on Mike's work on addressing the runtime side of it (he got so far as to have a somewhat under-performant but usable runtime library integrating O'Caml with the Objective C runtime based, IIRC, on Obj.magic) and Jeff pointed out that Frontc, the parser that he used in his Forklift FFI, had diverged from probably the best one for real- world use, which is embedded in CIL and intertwined in ways that make it a challenge to backport. Mike, Jeff, if you're reading this, is this a fair characterization of your efforts and thoughts? In any case, I still believe that: 1) It's worth addressing whatever issues need addressing in Mike's work. 2) It's worth resolving what parser to use and, IMHO, how to evolve Forklift to support generating calls to and from Objective C via Mike's runtime work. 3) It's worth combining the two to provide the Forklift annotations to allow calling into and out of Cocoa on Mac OS X. 4) It's worth writing an FRP system for O'Caml a la Yampa for Haskell. 5) It's worth using said FRP system in conjunction with perhaps <http://ocaml-win32.sourceforge.net>, http://wwwfun.kurims.kyoto- u.ac.jp/soft/lsl/lablgtk.html, and our Cocoa bindings to create a truly cross-platform GUI environment for O'Caml. Thoughts? > Thanks, Joel > > -- > http://wagerlabs.com/ Best regards, Paul