Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Jeffrey Scofield <jeffsco@psellos.com>
To: caml-list@inria.fr
Subject: [Caml-list] Re: Native OCaml iPhone app now in iTunes Store
Date: 05 Jan 2011 10:14:06 -0600	[thread overview]
Message-ID: <m3pqsbqqep.fsf@pse.psellos.com> (raw)
In-Reply-To: <10E36BD7-F233-4D47-8B40-E145474E6132@gmail.com>

Joel Reymont <joelr1@gmail.com> writes:

> Are you bundling OCaml code as a library and putting a GUI layer of
> ObjC on top?

All the code is in OCaml; there's no ObjC except in the (thin)
wrappers around the native iOS libraries.  We wanted to write as
much in OCaml as possible.

As we say on the website, the OO subsystem of OCaml is very helpful
for this.  We have essentially a one-to-one correspondence between
native iOS (Cocoa Touch) classes and OCaml classes.

Even though we follow the Cocoa Touch design, we find that OCaml still
has advantages in the GUI implementation.  It's nice not to have to
worry so much about object lifetimes, for example.  We use idiomatic
OCaml values for the low-level objects (like points and rectangles)
and for small collections (where ObjC often uses rather cumbersome
class instances).  Often you can use the powerful parts of OCaml on
the components of your GUI.

Regards,

Jeffrey

  reply	other threads:[~2011-01-05 16:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-04 19:38 [Caml-list] " Jeffrey Scofield
2011-01-04 20:16 ` Paolo Donadeo
2011-01-04 20:24   ` Yitzhak Mandelbaum
2011-01-04 20:49     ` Paolo Donadeo
2011-01-05  7:43   ` [Caml-list] " Jeffrey Scofield
2011-01-04 20:19 ` [Caml-list] " Joel Reymont
2011-01-05 16:14   ` Jeffrey Scofield [this message]
2011-01-05 17:06     ` [Caml-list] " Joel Reymont
2011-01-05 22:05       ` Andrei Formiga
2011-01-06 23:32       ` Jeffrey Scofield

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=m3pqsbqqep.fsf@pse.psellos.com \
    --to=jeffsco@psellos.com \
    --cc=caml-list@inria.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