3 ms·
I'm neither a Mac nor an iPhone person, but that's pretty cool. I'd like to know what it means in practice, though. So, you can run Ocaml programs on iOS? What
by mercurial 12y ago
I'm neither a Mac nor an iPhone person, but that's pretty cool. I'd like to know what it means in practice, though. So, you can run Ocaml programs on iOS? What about Apple's libraries? Are there any bindings available?
- fleitz 12y agoIt shouldn't be much of a problem to get interop working, everything objc goes through objc_sendmsg and everything C is well, C
- jallmann 12y agoYes, there is FFI code to expose Cocoa components via OCaml. Support is nowhere near complete for the entire iOS API, and it isn't factored into a reusable library, but it seems most sample apps have a nice wrapper allowing you to specify any additional component interfaces in OCaml itself without dropping down to Obj-C. Works for a nice class of applications right now, including those based on OpenGLES.
- mercurial 12y agoThanks. Sounds brilliant.