From: Matt Gushee <mgushee@havenrock.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Does LablTk have a future?
Date: Mon, 29 Aug 2005 22:39:43 -0600 [thread overview]
Message-ID: <4313E30F.1050501@havenrock.com> (raw)
In-Reply-To: <200508292333.59714.jon@ffconsultancy.com>
Jon Harrop wrote:
>>Regardless of the status of Tk itself, LablTk seems to be going nowhere
>
> It is odd that you should bring this up now. I've spent the past week writing
> a simple database for a new veterinary surgery in OCaml using labltk. I had
> tried lablgtk before but failed to get to grips with it. By comparison, the
> labktk examples explained everything that I needed and I had a decent GUI up
> and running within a few hours.
Yes, it does have that simplicity about it.
>>1) A Quick Reference
> I haven't used anything exotic (or even non-trivial) but it seems to me that
> the API is already so simple that there isn't really a need for a quick
> reference.
Well, you need some source of information other than the OCaml manual.
To give just one example, if you want to do anything serious with
Listbox widgets, you need to know the Listbox.index type, which isn't
described in the manual.
Now, I have lately realized that you can explore LablTk with
ocamlbrowser, so a reference doc isn't strictly necessary. But you could
say the same about any OCaml module ... anyway, the document mostly
exists, and some people may find it more convenient/pleasant to use a
Web page or a printed document.
>>2) A Book
> I think labltk is too specific to be commercially viable.
Specific in what sense? And do you mean LablTk as a tool, or as a book
topic?
> Also, unless I've
> missed some hidden complexities in Tk programming, I think you'd have a job
> filling enough pages to call the result a book.
Ever used the Canvas or Text widgets? There's a lot going on there.
Besides, there are several mainstream (i.e. published by major tech
publishers and available in any well-stocked bookstore) books about Tk
programming (including at least Tcl/Tk, Perl/Tk and Tkinter). They've
mostly been available for several years, so there must be some market
for them.
Of course--and as an author/publisher, I'm sure you know this--the
questions of what to write about, and how and how much, depend a great
deal on the audience.
I can tell you that when I read _Effective Tcl/Tk Programming_ in about
'98, when my GUI-coding experience was limited to a few toy apps in
Visual Basic, I found it tremendously useful, with its in-depth
explanation and extended examples of the more complex widgets, geometry
managers, and the event handling mechanism. Properly described, it was a
book about GUI programming *with* Tk, rather than strictly about Tk itself.
Maybe today's OCamlers are by and large beyond needing that sort of
book. But it's kind of self-defeating to take for granted that the
status quo will continue. I'm inclined to think that as OCaml gains in
popularity--as it is certainly doing--there will be more people who need
more hand-holding. Which doesn't necessarily mean there's much of market
for a book such as I've proposed, just that I see some reason to hope.
> However, I would be very interested in a book that described how to write GUIs
> using OCaml.
That might indeed be a good thing. I don't think, in my current state of
knowledge, I'm the one to write it.
> As I'm the author of the only existing self-published book on OCaml, you may
> be interested to know that it is doing well (~500UKP per month for 6 months
> so far).
Well, at 85 quid a pop, I should think so (what is that in US money,
about $120?)! But you're targeting an audience that has significant
institutional support. I doubt very much that any and all OCaml books
can be sold for that kind of money.
>>3) A Community-based Modernization Project
> I think it would be more constructive to create a decent cross-platform GUI
> library from the ground up for FPLs/OCaml.
Great idea! But it sounds to me like the kind of thing that will never
get finished.
> This wouldn't need to be anything
> fancy, just easy access to the simplest GUI elements to start with.
What kind of apps do you envision writing with only the simplest elements?
> I'd like to see GUIs described by purely functional data structures. I'm
> still factoring my current code so I'll let you know what I come up with.
> Also, despite GUI code being a pedagogical example for OO, I'm not yet
> convinced that OO adds anything useful.
Agreed. Once I too was among the benighted souls, those who worship the
false god of OO. But then I saw the functional light, and I was saved!
Amen, brother!
Thanks for the comments. Lots of good food for thought there.
--
Matt Gushee
Englewood, CO, USA
next prev parent reply other threads:[~2005-08-30 4:39 UTC|newest]
Thread overview: 67+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-28 15:38 Matt Gushee
[not found] ` <aefe758210f7fa0b9846b0ea4278cf3a@rouaix.org>
2005-08-28 23:21 ` [Caml-list] " Matt Gushee
2005-08-29 22:33 ` Jon Harrop
2005-08-30 4:39 ` Matt Gushee [this message]
2005-08-30 11:39 ` Yaron Minsky
2005-08-30 11:48 ` Jon Harrop
2005-08-30 12:22 ` David MENTRE
2005-08-30 13:45 ` Jon Harrop
2005-08-30 15:47 ` David MENTRE
2005-08-30 16:08 ` Jon Harrop
2005-09-01 4:25 ` Matt Gushee
2005-09-01 11:20 ` Matt Gushee
2005-09-01 11:26 ` Matt Gushee
2005-09-01 14:09 ` Chris Campbell
2005-08-30 16:21 ` Bardur Arantsson
2005-08-30 17:47 ` [Caml-list] " David Thomas
2005-08-30 18:06 ` Tyler Eaves
2005-08-30 19:01 ` Jon Harrop
2005-08-30 22:55 ` Chris Campbell
[not found] ` <c22844d10508301553b54841b@mail.gmail.com>
2005-08-30 22:56 ` Fwd: " Chris Campbell
2005-08-30 23:04 ` Doug Kirk
2005-08-31 0:08 ` Fwd: " Jon Harrop
2005-08-31 0:31 ` Olivier Andrieu
2005-08-31 8:48 ` Feeding the OCaml GUI troll (was: Re: [Caml-list] Does LablTk have a future?) David MENTRE
2005-08-31 9:06 ` Proposal a GUI from Ocamlsdl Christophe Raffalli
2005-08-31 14:39 ` [Caml-list] " Jon Harrop
2005-09-01 19:27 ` Nathaniel Gray
2005-08-31 14:27 ` Feeding the OCaml GUI troll (was: Re: [Caml-list] Does LablTk have a future?) Jon Harrop
2005-09-01 4:49 ` Feeding the OCaml GUI troll Matt Gushee
2005-09-01 13:15 ` [Caml-list] " skaller
2005-09-01 13:28 ` David MENTRE
2005-09-01 13:50 ` skaller
2005-09-01 14:43 ` Chris Campbell
2005-09-02 7:40 ` Ville-Pertti Keinonen
2005-09-02 12:39 ` skaller
2005-09-03 10:34 ` Damien Bobillot
2005-09-03 12:30 ` skaller
2005-09-04 14:08 ` Richard Jones
2005-09-03 11:10 ` yoann padioleau
2005-09-03 11:30 ` Jonathan Roewen
2005-09-03 17:23 ` Doug Kirk
2005-09-04 14:01 ` Richard Jones
2005-09-01 19:23 ` Feeding the OCaml GUI troll (was: Re: [Caml-list] Does LablTk have a future?) Nathaniel Gray
2005-09-01 4:31 ` [Caml-list] Does LablTk have a future? Matt Gushee
2005-09-01 4:17 ` Matt Gushee
2005-09-01 13:25 ` Jon Harrop
2005-08-30 7:16 ` GUI for OCaml (was: Re: [Caml-list] Does LablTk have a future?) David MENTRE
2005-08-30 9:53 ` GUI for OCaml Christophe Raffalli
2005-08-30 10:28 ` [Caml-list] " David MENTRE
2005-08-30 13:04 ` Bünzli Daniel
2005-08-30 17:13 ` David Thomas
2005-08-30 11:18 ` Mark Shinwell
2005-08-30 14:22 ` Jacques Carette
2005-08-30 23:12 ` Pietro Abate
2005-08-30 14:14 ` GUI for OCaml (was: Re: [Caml-list] Does LablTk have a future?) Richard Jones
2005-08-30 15:33 ` mmzeeman
2005-08-30 15:44 ` Jon Harrop
2005-08-30 22:34 ` yoann padioleau
2005-09-01 4:58 ` Matt Gushee
2005-08-30 16:01 ` Jon Harrop
2005-08-30 16:25 ` Chris Campbell
2005-08-30 22:49 ` yoann padioleau
2005-08-30 16:03 ` Chris Campbell
2005-08-30 22:31 ` yoann padioleau
2005-08-31 8:19 ` About Lablgtk2 (was: e: GUI for OCaml) David MENTRE
2005-09-03 11:41 ` yoann padioleau
2005-08-30 17:35 ` [Caml-list] Does LablTk have a future? Olivier Andrieu
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=4313E30F.1050501@havenrock.com \
--to=mgushee@havenrock.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