caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "David Allsopp" <dra-news@metastack.com>
To: <caml-list@yquem.inria.fr>
Subject: Re: OCaml + GTK vs F# on Windows
Date: Thu, 21 Jun 2007 10:42:14 +0100	[thread overview]
Message-ID: <009a01c7b3e8$733c3a60$6a7ba8c0@treble> (raw)
In-Reply-To: <20070618091949.0237DBC76@yquem.inria.fr>

> Folks,
>
> I need to reboot my translator as a Windows app. I would like to know  
> how well is LablGTK supported on Windows (specially with Glade) and  
> whether this is advisable if Windows is my only target platform.
>
> F# is the other option that I see but will require porting my parser  
> from Dypgen back to Yacc, among other things. Not a big deal since  
> I'm not using functors or any advanced features of OCaml but still  
> work to do.
>
> What's your opinion?
IMHO GUI apps knocked together quickly using toolkits such as GTK tend to
look hideous under Windows (although slightly better than AWT apps did in
the early days of Java!). ocamlbrowser is a "good" example (I'm talking
about appearance here, not functionality, cross-platform compatibility,
etc!!). If Windows is your only platform, I'd use a Windows-only toolkit as
otherwise you end up with "lowest common denominator" feature support (or
badly emulated controls). Of course, it helps to be sure that you're
definitely "Windows-only" :o)

> What option would you recommend and why?
There're a couple of stub wrappers for Win32 API functions for writing GUIs
on the hump but that's a bit hardcore (not to mention time consuming) if
you've never done that before - I would have thought that splitting your app
into logic written in O'Caml (as it already is) and control written in F#
giving you full access to the .NET GUI Library only for the required parts
of your app were the way forward...

HTH,


David

PS For developing Windows apps, there're some books on the subject of GUI
design - e.g. http://tinyurl.com/3d72qn The setup program for Richard Jones'
XP Hello World, for example, breaks the recommendation for not having
Windows 3.11 style Remove links in Start Menu groups and Desktop Icons
[p.294] ;o)... though at least it gives the option not install the desktop
icon.


       reply	other threads:[~2007-06-21  9:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070618091949.0237DBC76@yquem.inria.fr>
2007-06-21  9:42 ` David Allsopp [this message]
2007-06-18  8:36 Joel Reymont

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='009a01c7b3e8$733c3a60$6a7ba8c0@treble' \
    --to=dra-news@metastack.com \
    --cc=caml-list@yquem.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;
as well as URLs for NNTP newsgroup(s).