Re: [Caml-list] lablgtk pango_parse_markup

2010-11-29 Thread Jacques Garrigue
This is directly supported by the label widget: let w = GWindow.window () let l = GMisc.label ~packing:w#add () let () = l#set_text "Hello"; l#set_use_markup true; w#show (); GMain.main () This is even shorter as optional argument: let l = GMisc.label ~packing:w#add ~markup:"Hello" () J

Re: [Caml-list] OCaml GC [was Is OCaml fast?]

2010-11-29 Thread Török Edwin
On Sun, 28 Nov 2010 15:29:08 +0100 Benedikt Meurer wrote: > Speaking of the OCaml GC in general, wouldn't it make sense to > replace the current generational collector with a collector framework > that requires less copying in the common case. Even without changing the GC algorithm, I think it

Re: [Caml-list] Re: oasis

2010-11-29 Thread Anastasia Gornostaeva
On Mon, Nov 29, 2010 at 09:52:20PM +0100, Sylvain Le Gall wrote: > > There should be three variants: pkg-config, OS-based userspace policy > > (/usr/include vs. /usr/local/include) and user-defined one. > > > > I think the pkg-config is the starting point, it also defines the prefix > of the se

Re: [Caml-list] Re: oasis

2010-11-29 Thread Sylvain Le Gall
Hello, On Mon, Nov 29, 2010 at 10:46:22PM +0300, Anastasia Gornostaeva wrote: > On Sun, Nov 28, 2010 at 05:17:35PM +, Sylvain Le Gall wrote: > > > My current state about this solution is: > > - defines BuildDepends: freetype2 (pkg-config), to make clear that there > > is a C build-depends >

Re: [Caml-list] Re: oasis

2010-11-29 Thread Anastasia Gornostaeva
On Sun, Nov 28, 2010 at 05:17:35PM +, Sylvain Le Gall wrote: > My current state about this solution is: > - defines BuildDepends: freetype2 (pkg-config), to make clear that there > is a C build-depends > - allow to override the defined variable freetype2_cflags and > freetype2_libs. If the

Re: [Caml-list] Re: Is OCaml fast?

2010-11-29 Thread Christophe Raffalli
Le 29/11/10 12:44, oli...@first.in-berlin.de a écrit : > yes. > > On Mon, Nov 29, 2010 at 11:25:52AM -, Jon Harrop wrote: >> I assume he means one thread has one behaviour and another has the other >> behaviour, in which case there certainly is a problem! Then, I do not know what you can do .

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: Threading and SharedMem (Re: [Caml-list] Re: Is OCaml fast?)

2010-11-29 Thread Oliver Bandel
Zitat von "Gerd Stolpmann" : Am Montag, den 29.11.2010, 17:12 +0100 schrieb Oliver Bandel: Zitat von "Gerd Stolpmann" : > Am Sonntag, den 28.11.2010, 19:14 +0100 schrieb > oli...@first.in-berlin.de: >> On Thu, Nov 25, 2010 at 11:50:58PM +0100, Fabrice Le Fessant wrote: >> [...] >> > The main

Re: Threading and SharedMem (Re: [Caml-list] Re: Is OCaml fast?)

2010-11-29 Thread Gerd Stolpmann
Am Montag, den 29.11.2010, 17:12 +0100 schrieb Oliver Bandel: > Zitat von "Gerd Stolpmann" : > > > Am Sonntag, den 28.11.2010, 19:14 +0100 schrieb > > oli...@first.in-berlin.de: > >> On Thu, Nov 25, 2010 at 11:50:58PM +0100, Fabrice Le Fessant wrote: > >> [...] > >> > The main problem was that ot

Threading and SharedMem (Re: [Caml-list] Re: Is OCaml fast?)

2010-11-29 Thread Oliver Bandel
Zitat von "Gerd Stolpmann" : Am Sonntag, den 28.11.2010, 19:14 +0100 schrieb oli...@first.in-berlin.de: On Thu, Nov 25, 2010 at 11:50:58PM +0100, Fabrice Le Fessant wrote: [...] > The main problem was that other languages have bigger standard > libraries, whereas OCaml has a very small one (ju

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

[Caml-list] lablgtk pango_parse_markup

2010-11-29 Thread Daniel de Rauglaudre
Hi, I'd like to have a "label" widget in Lablgtk with a string with internationalization, bold, italic, utf8, color, things like that. I am not sure, but I saw in the Web that I must use the function "pango_parse_markup" and XML tags in my string, but that function seems not to exist in Lablgtk.

Re: [Caml-list] Re: Is OCaml fast?

2010-11-29 Thread Gerd Stolpmann
Am Sonntag, den 28.11.2010, 19:14 +0100 schrieb oli...@first.in-berlin.de: > On Thu, Nov 25, 2010 at 11:50:58PM +0100, Fabrice Le Fessant wrote: > [...] > > The main problem was that other languages have bigger standard > > libraries, whereas OCaml has a very small one (just what is needed > > to

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 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] OCaml GC [was Is OCaml fast?]

2010-11-29 Thread Benedikt Meurer
On Nov 29, 2010, at 00:34 , Jon Harrop wrote: > I see. Yes, that sounds like a great idea. How well does Immix cope with > high allocation rates of short-lived objects? Been a while since I read the > Immix paper... In theory this should be handled more efficiently compared to a generational co

Re: [Caml-list] Re: Is OCaml fast?

2010-11-29 Thread oliver
yes. On Mon, Nov 29, 2010 at 11:25:52AM -, Jon Harrop wrote: > I assume he means one thread has one behaviour and another has the other > behaviour, in which case there certainly is a problem! > > Cheers, > Jon. > > > -Original Message- > > From: caml-list-boun...@yquem.inria.fr [ma

RE: [Caml-list] Re: Is OCaml fast?

2010-11-29 Thread Jon Harrop
I assume he means one thread has one behaviour and another has the other behaviour, in which case there certainly is a problem! Cheers, Jon. > -Original Message- > From: caml-list-boun...@yquem.inria.fr [mailto:caml-list- > boun...@yquem.inria.fr] On Behalf Of Christophe Raffalli > Sent: