caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jonathan Kimmitt <jonathan@kimmitt.co.uk>
To: Vincent Aravantinos <vincent.aravantinos@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Type Safety comes to the iPad
Date: Tue, 9 Nov 2010 10:54:05 +0000	[thread overview]
Message-ID: <B91D7E15-D739-49F8-B98B-60E9B80BD5E2@kimmitt.co.uk> (raw)
In-Reply-To: <48266A94-EE4F-4C15-AD75-86BD49FA20C8@gmail.com>

Hi,
  The application itself is written in Xcode. You need to be a member of the development
program at £59/$99 or equivalent per year to get access to the signing keys if you need
to modify 'extern' functions (native C code of the interpreter)

You don't need anything apart from iTunes to download (using document sharing)
source code in .ml files to the iPad and execute in the App

Or you can type in ocaml statements directly into the interpreter for example draw_rect 100 100 200 200;;
will draw a box immediately because the default startup open the graphics library.

There are some irritations, for example itunes does not allow a document with the name .ocamlinit
to be selected for download, so I provide an 'ocamlinit' instead to execute if it exists. If it doesn't
exist then the default startup is executed that comes with the App

The built-in keyboard is not ideal for ocaml with its dearth of easily accessible symbols. An external
keyboard is recommended if you want to do real work. Another issue is the lack of a decent editor
suited to programming - perhaps someone could port chamo to the iPad ?

I envisage a typical program would be developed on the workstation, compiled to a .cma file and then
downloaded to the iPad. However I have not tried this route to see if it works. you need to make sure the
ocaml version is identical.

There is no dynamic loading allowed - all the standard library that was relevant is linked in statically

Regards,

Jonathan

On 9 Nov 2010, at 09:39, Vincent Aravantinos wrote:

> Wow! This seems hugely interesting to me.
> Actually I've been wondering a while to know if I would buy an ipad, and my conclusion was "only if I can do Ocaml on it".
> Can you report a bit more on your experience ?
> Which tools did you use? How convenient it is? What drawback did you encounter?
> 
> Cheers,
> Vincent
> 
> Le 9 nov. 10 à 10:31, Jonathan Kimmitt a écrit :
> 
>> I thought you might be interested to know that my new OCAML App for the iPad was published
>> on the iTunes Store yesterday. I believe this is a significant achievement given the notorious
>> reluctance of Apple to embrace languages other than C/obj-C/C++ and I would hope it would
>> promote wider dissemination of type safety.
>> 
>> The real win would be if the new paradigm was accepted for teaching the new generation of
>> students etc, which would require greater acceptance by potential employers which is a bit
>> of a chicken/egg scenario.
>> 
>> Anyway I am inordinately proud of my new publication and if you know anybody who has an iPad,
>> please let them know about it.
>> 
>> http://itunes.apple.com/app/ocamlexample/id396515573?mt=8#
>> 
>> _______________________________________________
>> 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
> 


  parent reply	other threads:[~2010-11-09 10:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-09  9:31 Jonathan Kimmitt
2010-11-09  9:39 ` [Caml-list] " Vincent Aravantinos
2010-11-09 10:01   ` Vincent Aravantinos
2010-11-09 10:30     ` Jonathan Kimmitt
2010-11-09 10:54   ` Jonathan Kimmitt [this message]
2010-11-09 10:56   ` Daniel Bünzli
2010-11-09  9:53 ` Sylvain Le Gall

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=B91D7E15-D739-49F8-B98B-60E9B80BD5E2@kimmitt.co.uk \
    --to=jonathan@kimmitt.co.uk \
    --cc=caml-list@yquem.inria.fr \
    --cc=vincent.aravantinos@gmail.com \
    /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).