Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Sven Luther <sven.luther@wanadoo.fr>
To: skaller <skaller@ozemail.com.au>
Cc: erayo@cs.bilkent.edu.tr, Matt Gushee <matt@gushee.net>,
	caml-list@inria.fr
Subject: Re: [Caml-list] Re: Tcl/Tk and RH 9
Date: Mon, 11 Aug 2003 10:38:09 +0200	[thread overview]
Message-ID: <20030811083809.GA3001@iliana> (raw)
In-Reply-To: <1060567325.7474.66.camel@localhost.localdomain>

On Mon, Aug 11, 2003 at 12:02:06PM +1000, skaller wrote:
> On Mon, 2003-08-11 at 11:20, Eray Ozkural wrote:
> 
> > With GTK, I would worry about its object model, library design, hack-ability, 
> > platform-independence.... The design of gtk seems fairly "backwards" to me. 
> 
> Me too, though I can't claim great familiarity with it.
> 
> > It is now going to sound "bold" to you people, but I don't understand why you 
> > can't write the ultimate portable GUI toolkit in ocaml itself. With a 
> > language as generic as ocaml it should be a no-brainer to efficiently 
> > abstract over peculiarities of windows systems.
> 
> Yeah, that's a good question. The answer is probably: we could,
> but who is going to finance it? Building GUI toolkit is a rather
> large job (its difficult enough to *wrap* a toolkit).
> 
> > Besides, you will find that the limitations of those C/C++ based systems will 
> > be severe. I can make an educated guess because I was designing an ocaml 
> > binding for KDE... If you decide on some kind of binding to a "high level" 
> > toolkit like gtk it's going to be some abstraction layer over black boxes 
> > with a lot of quirks, it's not going to be pretty.
> 
> Sure, but where does one bind? To Xlib? To the X protocol directly?
> If you bind that deep, how do you handle a Windows port of the library?

What about looking at Cairo (Ex Xr/Xc) and either bind to that, or
reimplement their protocol in ocaml. Cairo is early enough in its design
that it can still be influenced enough if someone looks at it, and
points them problems related to doing ocaml bindings.

For those who don't know what cairo is, cairo can be found at :

  http://xr.xwin.org/

And is a : Cross-device Rendering for Vector Graphics.

Basically it is a vector rendering framework, linked to SVG graphics,
and which should enable to have a vector rendering model (on top of the
X RENDER extension i think), but which can target various graphic
systems, including X, local image buffers and Postscript and PDF as
planned output support. I don't know about windows support, but MacOSX
support should not be all that difficult to add, and since they also
have an OpenGL rendering path, it should run on every OpenGL supported
plateform.

That said, it is not a windowing toolkit, just the rendering library,
so i guess writing a proper ocaml toolkit top of it would be nice, and
it would have vector graphics like MAcOSX toolkit. Also, there is
already some work that has been done on vector graphics and ocaml, like
the (non-free) MLGraph library, and the associated publications.

Friendly,

Sven Luther

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2003-08-11  8:38 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-09  2:03 [Caml-list] version 7 beta typing change? skaller
2003-08-09 12:10 ` Jacques Garrigue
2003-08-09 16:15   ` skaller
2003-08-09 16:33   ` [Caml-list] Tcl/Tk and RH 9 skaller
2003-08-09 16:59     ` Matt Gushee
2003-08-10 15:57       ` Eray Ozkural
2003-08-10 20:18         ` skaller
2003-08-10  1:43     ` [Caml-list] " Jacques Garrigue
2003-08-10  1:53       ` Alexander V. Voinov
2003-08-10 21:26         ` skaller
2003-08-10 23:15           ` Eray Ozkural
2003-08-10 23:24             ` Eray Ozkural
2003-08-11  0:41             ` Matt Gushee
2003-08-11  1:20               ` Eray Ozkural
2003-08-11  2:02                 ` skaller
2003-08-11  8:38                   ` Sven Luther [this message]
2003-08-11  9:41                 ` Christoph Bauer
2003-08-10 20:15       ` skaller
2003-08-11  9:17         ` Christoph Bauer
2003-08-12  4:14           ` skaller
2003-08-10 22:11     ` [Caml-list] " Olivier Andrieu
2003-08-10 22:45       ` Matt Gushee
2003-08-10 23:16         ` Eray Ozkural
2003-08-11  1:33         ` skaller
2003-08-12  7:11 [Caml-list] " Jason Gibson

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=20030811083809.GA3001@iliana \
    --to=sven.luther@wanadoo.fr \
    --cc=caml-list@inria.fr \
    --cc=erayo@cs.bilkent.edu.tr \
    --cc=matt@gushee.net \
    --cc=skaller@ozemail.com.au \
    /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