From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 35EB57EE49 for ; Thu, 12 Sep 2013 15:49:27 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of jon@ffconsultancy.com) identity=pra; client-ip=212.159.14.18; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="jon@ffconsultancy.com"; x-sender="jon@ffconsultancy.com"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of jon@ffconsultancy.com) identity=mailfrom; client-ip=212.159.14.18; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="jon@ffconsultancy.com"; x-sender="jon@ffconsultancy.com"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@avasout06.plus.net) identity=helo; client-ip=212.159.14.18; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="jon@ffconsultancy.com"; x-sender="postmaster@avasout06.plus.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApABAKjFMVLUnw4Sm2dsb2JhbABbgz+uXpJWgRsWDgEBAQEBBgsLCRQogiUBAQUIAjA0CwwBAwIJEQQBAQENGgcZIwkBAwEFCAIEEwsFAodeAxMIsj0DiU+PawcGhBcDjxGKF5Nn X-IPAS-Result: ApABAKjFMVLUnw4Sm2dsb2JhbABbgz+uXpJWgRsWDgEBAQEBBgsLCRQogiUBAQUIAjA0CwwBAwIJEQQBAQENGgcZIwkBAwEFCAIEEwsFAodeAxMIsj0DiU+PawcGhBcDjxGKF5Nn X-IronPort-AV: E=Sophos;i="4.90,891,1371074400"; d="scan'208";a="32610414" Received: from avasout06.plus.net ([212.159.14.18]) by mail2-smtp-roc.national.inria.fr with ESMTP; 12 Sep 2013 15:49:25 +0200 Received: from XPS ([91.125.250.6]) by avasout06 with smtp id QDpN1m00309223701DpPVr; Thu, 12 Sep 2013 14:49:25 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=CZIxutbl c=1 sm=1 tr=0 a=rKDLt0SBNjd1Eozd8FTbVw==:117 a=rKDLt0SBNjd1Eozd8FTbVw==:17 a=0Bzu9jTXAAAA:8 a=dHhpuxms7cgA:10 a=Xub9RBUEA-sA:10 a=Kvk-SOs2Z7YA:10 a=kj9zAlcOel0A:10 a=r2vSxAw-AAAA:8 a=ggS9-02QS5gA:10 a=ZOzjf2MOAAAA:8 a=CjxXgO3LAAAA:8 a=oaUaNxFBYZ7WU0Aj3UsA:9 a=CjuIK1q_8ugA:10 X-AUTH: jdh302:2500 Reply-To: From: "Jon Harrop" To: "'Richard W.M. Jones'" Cc: "'Gour'" , References: <20130910230928.2d51cd39@atmarama.noip.me> <20130911052437.GA9514@notk.org> <20130911101457.3f756b68@atmarama.noip.me> <20130911181737.GA3764@notk.org> <054201ceaf2a$5a0ece10$0e2c6a30$@ffconsultancy.com> <20130911221737.GB23943@annexia.org> In-Reply-To: <20130911221737.GB23943@annexia.org> Date: Thu, 12 Sep 2013 14:49:27 +0100 Organization: Flying Frog Consultancy Ltd. Message-ID: <05a701ceafbe$e7c53070$b74f9150$@ffconsultancy.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQInBeUdAXSiYK4NZW7ZftXe1xVN4QJYzIS+AlTyKkQCSxgGDgH7H0XEAdTRHoYCASJiuZirGMcg Content-Language: en-gb Subject: RE: [Caml-list] OCaml vs Ada and/or GUI options Richard Jones wrote: > Then someone wants to enter text in Chinese, and someone else needs to use their speech reader, and so on. How is Chinese text a problem? If cross-platform speech reading is critically important then maybe GTK is the way to go. The main application I tried to develop in this way had very tame GUI requirements: a GL context and load/save dialogs. That proved too hard for me using OCaml in 2005. Today, we're revisiting it with a view to porting it to Windows, Android and iOS. The Windows port of the core turned out to be easy and has been in our F# for Visualization product for years. Having played with Xamarin Studio it looks like Android and iOS ports will be easy too. In each case, I'd write the non-GL GUI code using the native GUI toolkit rather than trying to be cross platform. Cheers, Jon. -----Original Message----- From: caml-list-request@inria.fr [mailto:caml-list-request@inria.fr] On Behalf Of Richard W.M. Jones Sent: 11 September 2013 23:18 To: Jon Harrop Cc: 'Gour'; caml-list@inria.fr Subject: Re: [Caml-list] Re: OCaml vs Ada and/or GUI options On Wed, Sep 11, 2013 at 09:06:05PM +0100, Jon Harrop wrote: > My advice would be to forget about using OCaml's FFI to interop with > Linux' GUI libraries and focus instead on writing a new GUI library > from scratch in OCaml using OpenGL. > > Objectively, OCaml is extremely good for GUI programming. You've > already got libraries to load TrueType fonts and tessellate/rasterize > them. OpenGL makes it easy to render anything with excellent > performance. LablGL even makes picking (i.e. mouse clicks) easy. The > result would be cross platform. Hmm. Then someone wants to enter text in Chinese, and someone else needs to use their speech reader, and so on. Good luck reimplementing the whole of Gtk. Rich. -- Richard Jones Red Hat -- Caml-list mailing list. Subscription management and archives: https://sympa.inria.fr/sympa/arc/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs