[Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-23 Thread Martin DeMello
What are the actively developed options for writing desktop GUI apps in OCaml? Anything other than lablgtk2 (which, at least from a brief look through the examples, looks rather ugly, codewise, compared to, say, vala or ruby/gtk)? I'll use lablgtk2 in a pinch, but I'm curious as to whether anyone h

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-23 Thread Jacques Garrigue
I'm not sure which examples you looked at for lablgtk2. The goals of lablgtk are: * be as close as possible to the spirit of Gtk+ * while providing type and memory safety * and allow comfortable use through objects and optional arguments This resulted in a 2-layer implementation, with a lower

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-23 Thread Yoann Padioleau
On Nov 23, 2010, at 6:19 AM, Martin DeMello wrote: > > What are the actively developed options for writing desktop GUI apps > in OCaml? Anything other than lablgtk2 (which, at least from a brief > look through the examples, looks rather ugly, codewise, compared to, > say, vala or ruby/gtk)? Wha

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-23 Thread Alain Frisch
On 11/23/2010 3:19 PM, Martin DeMello wrote: What are the actively developed options for writing desktop GUI apps in OCaml? Anything other than lablgtk2 (which, at least from a brief look through the examples, looks rather ugly, codewise, compared to, say, vala or ruby/gtk)? I'll use lablgtk2 in

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-24 Thread Martin DeMello
On Wed, Nov 24, 2010 at 4:36 AM, Jacques Garrigue wrote: > I'm not sure which examples you looked at for lablgtk2. > The goals of lablgtk are: >  * be as close as possible to the spirit of Gtk+ >  * while providing type and memory safety >  * and allow comfortable use through objects and optional

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-24 Thread Martin DeMello
On Wed, Nov 24, 2010 at 4:58 AM, Yoann Padioleau wrote: > > What is better looking in vala or ruby/gtk ? > > What you don't like in lablgtk ? Both ruby and vala make an effort to provide nice syntactic support for gtk code, so that it looks like a natural part of the language. The OCaml code from

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-24 Thread Martin DeMello
On Wed, Nov 24, 2010 at 5:02 AM, Alain Frisch wrote: > > If you're under Windows, you might be interested in the CSML tool. It allows > you to build quite easily your own binding to .Net libraries. The CSML > distribution contains an example of a mini-binding to Windows Forms; you can > also see t

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-24 Thread Mihamina Rakotomandimby
> martindeme...@gmail.com : > Anything other than lablgtk2 I am affraid there is no. -- Architecte Informatique : Administration Systeme, Recherche & Developpement +261 34 56 000 19

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-24 Thread Michael Ekstrand
On 11/24/2010 03:33 AM, Martin DeMello wrote: > On Wed, Nov 24, 2010 at 4:36 AM, Jacques Garrigue > wrote: >> I'm not sure which examples you looked at for lablgtk2. >> The goals of lablgtk are: >> * be as close as possible to the spirit of Gtk+ >> * while providing type and memory safety >> *

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-24 Thread Andrei Formiga
On Wed, Nov 24, 2010 at 11:06 AM, Michael Ekstrand wrote: > On 11/24/2010 03:33 AM, Martin DeMello wrote: >> On Wed, Nov 24, 2010 at 4:36 AM, Jacques Garrigue >> wrote: >>> I'm not sure which examples you looked at for lablgtk2. >>> The goals of lablgtk are: >>> * be as close as possible to the

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-24 Thread Hezekiah M. Carty
On Wed, Nov 24, 2010 at 4:47 AM, Martin DeMello wrote: > > I was surprised not to see much interest in GUI DSLs in OCaml. It's not complete or a full-blown DSL, but I started a small Gtk-light module a while ago. I haven't had the time to complete it, but it shouldn't be too difficult to modify

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-24 Thread Alain Frisch
On 11/24/2010 10:47 AM, Martin DeMello wrote: No, I'm on linux, but CSML does look very interesting. Does it work well with Mono? Yes, CSML itself has been adapted to work with Mono and I did a few tests (some of screenshots show Windows Forms GUIs controlled by OCaml code, under Linux with M

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-24 Thread Jeremy Yallop
On 24 November 2010 21:37, Alain Frisch wrote: > Being able to write things like: > > lazy let rec button1 = >  button ~click:(fun () -> button2 # disable) "Button1" > and button2 = >  button ~click:(fun () -> button1 # disable) "Button2" > in > ... > > > As the lazy keyword suggests, we rely on l

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-26 Thread Richard Jones
On Tue, Nov 23, 2010 at 07:49:03PM +0530, Martin DeMello wrote: > What are the actively developed options for writing desktop GUI apps > in OCaml? Anything other than lablgtk2 (which, at least from a brief > look through the examples, looks rather ugly, codewise, compared to, > say, vala or ruby/gt

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-26 Thread Yoann Padioleau
On Nov 24, 2010, at 1:38 AM, Martin DeMello wrote: > > On Wed, Nov 24, 2010 at 4:58 AM, Yoann Padioleau wrote: >> >> What is better looking in vala or ruby/gtk ? >> >> What you don't like in lablgtk ? > > Both ruby and vala make an effort to provide nice syntactic support > for gtk code, so

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-27 Thread Martin DeMello
On Sat, Nov 27, 2010 at 12:39 AM, Yoann Padioleau wrote: > On Nov 24, 2010, at 1:38 AM, Martin DeMello wrote: >> >> Both ruby and vala make an effort to provide nice syntactic support >> for gtk code, so that it looks like a natural part of the language. > > Could you give some example of code exp

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-27 Thread Martin DeMello
On Sat, Nov 27, 2010 at 12:29 AM, Richard Jones wrote: > > Given that vala and ruby both use the C API at some level buried > underneath, and cover it up with some syntax, how about starting a > project to do something similar on top of lablgtk2?  I for one would > welcome this since my current pr

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-27 Thread Yoann Padioleau
On Nov 27, 2010, at 10:38 PM, Martin DeMello wrote: > On Sat, Nov 27, 2010 at 12:39 AM, Yoann Padioleau wrote: >> On Nov 24, 2010, at 1:38 AM, Martin DeMello wrote: >>> >>> Both ruby and vala make an effort to provide nice syntactic support >>> for gtk code, so that it looks like a natural part

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-28 Thread bluestorm
There was also a project by Chris King to develop a GUI based on lablgtk in a Functional Reactive Programming style. http://lambda-the-ultimate.org/node/1918 On Wed, Nov 24, 2010 at 4:57 PM, Hezekiah M. Carty wrote: > On Wed, Nov 24, 2010 at 4:47 AM, Martin DeMello > wrote: > > > > I was surp

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-28 Thread Adrien
Hi, As Jacques said, lablgtk's api is close to gtk's one. I also believe that was the best solution/approach. Binding that many C functions to ocaml is already hard enough (not that it could be made easier, the difficulty lies in the number of functions). The drawback is of course that writing co

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-29 Thread Adrien
On 28/11/2010, Adrien wrote: > Hi, > > As far as I'm concerned I've started experimenting with the concept of > "tiling" (as used by tiling window managers) and zippers of horizontal > and vertical boxes. That's pretty much what xmonad (window manager > written in haskell) does. The zipper allows

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-29 Thread Martin DeMello
On Mon, Nov 29, 2010 at 3:50 AM, Adrien wrote: > > Something nice would probably be to share more extensions and wrappers > around lablgtk. I've noticed Maxence Guesdon had made some available as > stand-alone libraries but I'm not aware of others. Or maybe they're > scattered around and it's hard

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-29 Thread Martin DeMello
On Sun, Nov 28, 2010 at 1:10 PM, Yoann Padioleau wrote: >> >> http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-packing-tables-demo >> http://plus.kaist.ac.kr/~shoh/ocaml/lablgtk2/lablgtk2-tutorial/x509.html > > I honestly don't see any difference. Where do you see "nice syntactic support > for

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-11-29 Thread Hezekiah M. Carty
On Sun, Nov 28, 2010 at 3:28 AM, bluestorm wrote: > There was also a project by Chris King to develop a GUI based on lablgtk in > a Functional Reactive Programming style. > http://lambda-the-ultimate.org/node/1918 Chris King's project was a major influence in the syntax I chose. I started trying

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-12-01 Thread Alain Frisch
On 11/24/2010 10:47 AM, Martin DeMello wrote: On Wed, Nov 24, 2010 at 5:02 AM, Alain Frisch wrote: We have a few local extensions to the OCaml compiler that makes it easier to build nice APIs for GUI toolkits, with a functional flavor: implicit subtyping and generalized recursion. Hopefully, I'

Re: [Caml-list] Desktop GUI toolkits - current state of the art?

2010-12-09 Thread Maxence Guesdon
Le Mon, 29 Nov 2010 19:32:13 +0530, Martin DeMello a écrit : > On Mon, Nov 29, 2010 at 3:50 AM, Adrien wrote: > > > > Something nice would probably be to share more extensions and > > wrappers around lablgtk. I've noticed Maxence Guesdon had made some > > available as stand-alone libraries but I