[Gtk2hs-devel] threaded RTS and finalizers

2009-11-02 Thread Simon Marlow
Dear gtk2hs developers, What's the current state of gtk2hs with respect to the threaded RTS and C finalizers? Should we expect 0.10.1 to work? As you may know, we're working on ThreadScope, a gtk2hs-based tool for parallel performance visualisation in GHC. I recently switched to use the thre

Re: [Gtk2hs-devel] threaded RTS and finalizers

2009-11-03 Thread Simon Marlow
On 02/11/2009 21:11, Axel Simon wrote: > The story is as follows: > > Calling g_object_unref, the principal finalizer we attach to any > ForeignPtr, will decrement the reference count and immediately finalize > an object if this counter is zero. This can pose problems in three ways: > > a) Storing

Re: [Gtk2hs-devel] threaded RTS and finalizers

2009-11-10 Thread Simon Marlow
On 04/11/2009 18:31, Axel Simon wrote: > I just realized that we haven't changed everything to use direct calls > to C finalizers but to Haskell finalizers. I assume that this is because > Haskell still got called from within the GC. If it is still called from > within the GC, then some signals ar

Re: [Gtk2hs-devel] threaded RTS and finalizers

2009-11-10 Thread Simon Marlow
On 10/11/2009 13:52, Axel Simon wrote: > On Tue, 2009-11-10 at 13:13 +0000, Simon Marlow wrote: >> On 04/11/2009 18:31, Axel Simon wrote: >> >>> I just realized that we haven't changed everything to use direct calls >>> to C finalizers but to Haskell fin

[Gtk2hs-devel] Windows installer

2009-11-17 Thread Simon Marlow
I've no idea how hard this is, but is it possible to have an updated gtk2hs Windows installer to GHC 6.10.4? The problem is that currently we're trying to write a list of instructions for people to get ThreadScope, and on Windows we can't tell people to get the Haskell Platform because it ships

Re: [Gtk2hs-devel] Windows installer

2009-11-17 Thread Simon Marlow
on > Cheers, > Axel > > On Tue, 2009-11-17 at 10:30 +, Simon Marlow wrote: >> I've no idea how hard this is, but is it possible to have an updated >> gtk2hs Windows installer to GHC 6.10.4? >> >> The problem is that currently we're trying to wr

Re: [Gtk2hs-devel] threaded RTS and finalizers

2009-11-23 Thread Simon Marlow
, Duncan, > > -threaded now works with Gtk2Hs. See below. > > > On Tue, 2009-11-10 at 14:14 +, Simon Marlow wrote: >> On 10/11/2009 13:52, Axel Simon wrote: > >>>> Does the traceback in my original message give you enough information? >>>> (reproduc

Re: [Gtk2hs-devel] threaded RTS and finalizers

2009-11-23 Thread Simon Marlow
On 23/11/09 12:46, Axel Simon wrote: > On Mon, 2009-11-23 at 11:01 +0000, Simon Marlow wrote: >> Axel, this is great news, many thanks for working on it! >> >> I'm interested in using Cairo from multiple threads. What exactly is >> supported there? Can I run an a

Re: [Gtk2hs-devel] threaded RTS and finalizers

2009-11-23 Thread Simon Marlow
On 23/11/09 14:12, Axel Simon wrote: > On Mon, 2009-11-23 at 13:35 +0000, Simon Marlow wrote: >>> On Mon, 2009-11-23 at 11:01 +, Simon Marlow wrote: >>>> Axel, this is great news, many thanks for working on it! >> > > Actually, there is still one aspect

[Gtk2hs-devel] build failures with darcs gtk2hs

2010-04-08 Thread Simon Marlow
:5719: (column 22) [ERROR] >>> Unknown identifier! Cannot find a definition for `gtk_tool_shell_get_type' in the header file. Perhaps these are because I have an older version of gtk+ installed? If that's the case, shouldn't the configure script complain? Cheer

Re: [Gtk2hs-devel] build failures with darcs gtk2hs

2010-04-08 Thread Simon Marlow
On 08/04/2010 12:18, Axel Simon wrote: > Hi Simon, > > On 08.04.2010, at 12:59, Simon Marlow wrote: > >> Building from the darcs repository using GHC 6.12.1.20100330 (6.12.2 >> RC1), I get a failure in make depend, which later leads to >> >> /home/simo

Re: [Gtk2hs-devel] build failures with darcs gtk2hs

2010-04-08 Thread Simon Marlow
e -v to see a list of the files searched for. Cheers, Simon > Cheers, > >-- Andy > > Simon Marlow writes: > >> Building from the darcs repository using GHC 6.12.1.20100330 (6.12.2 RC1), I >> get a failure in make >> depend, which later leads to >>

Re: [Gtk2hs-devel] build failures with darcs gtk2hs

2010-04-08 Thread Simon Marlow
On 08/04/2010 14:32, Andy Stewart wrote: > Simon Marlow writes: > >> On 08/04/2010 14:00, Andy Stewart wrote: >>> Hi Simon, >>> >>> Sorry for inconvenience! >>> >>> It's my fault that i forgot add gtk-2.xx tag in hierarchy.list and

Re: [Gtk2hs-devel] build failures with darcs gtk2hs

2010-04-08 Thread Simon Marlow
On 08/04/2010 15:10, Andy Stewart wrote: > Simon Marlow writes: > >> On 08/04/2010 14:32, Andy Stewart wrote: >>> Simon Marlow writes: >>> >>>> On 08/04/2010 14:00, Andy Stewart wrote: >>>>> Hi Simon, >>>>> >>>>

Re: [Gtk2hs-devel] build failures with darcs gtk2hs

2010-04-08 Thread Simon Marlow
On 08/04/2010 16:26, Simon Marlow wrote: > I did 'make clean', re-configured with --disable-split-objs, and I still > see the same error. Any more ideas? > > gtk/Graphics/UI/Gtk.hs.pp:295:0: > Failed to load interface for `Graphics.UI.Gtk.General.AccelGroup': >

Re: [Gtk2hs-devel] build failures with darcs gtk2hs

2010-04-09 Thread Simon Marlow
On 08/04/2010 17:12, Andy Stewart wrote: > Simon Marlow writes: > >> On 08/04/2010 16:26, Simon Marlow wrote: >> >>> I did 'make clean', re-configured with --disable-split-objs, and I still >>> see the same error. Any more ideas? >>>

Re: [Gtk2hs-devel] build failures with darcs gtk2hs

2010-04-09 Thread Simon Marlow
On 09/04/2010 13:38, Andy Stewart wrote: > Hi Simon, > > Simon Marlow writes: > >> On 08/04/2010 17:12, Andy Stewart wrote: >>> Simon Marlow writes: >>> >>>> On 08/04/2010 16:26, Simon Marlow wrote: >>>> >>>>> I did &

Re: [Gtk2hs-devel] build failures with darcs gtk2hs

2010-04-09 Thread Simon Marlow
On 09/04/2010 14:25, Andy Stewart wrote: > Simon Marlow writes: > >> On 09/04/2010 13:38, Andy Stewart wrote: >>> Hi Simon, >>> >>> Simon Marlow writes: >>> >>>> On 08/04/2010 17:12, Andy Stewart wrote: >>>>> S

Re: [Gtk2hs-devel] build failures with darcs gtk2hs

2010-04-09 Thread Simon Marlow
On 09/04/2010 15:03, Andy Stewart wrote: > Simon Marlow writes: > >> On 09/04/2010 14:25, Andy Stewart wrote: >>> Simon Marlow writes: >>> >>>> On 09/04/2010 13:38, Andy Stewart wrote: >>>>> Hi Simon, >>>>> >>&g

Re: [Gtk2hs-devel] build failures with darcs gtk2hs

2010-04-09 Thread Simon Marlow
On 09/04/2010 15:28, Andy Stewart wrote: > Simon Marlow writes: > >> On 09/04/2010 15:03, Andy Stewart wrote: >>> Simon Marlow writes: >>> >>>> On 09/04/2010 14:25, Andy Stewart wrote: >>>>> Simon Marlowwrites: >>>&

Re: [Gtk2hs-devel] build failures with darcs gtk2hs

2010-04-09 Thread Simon Marlow
On 09/04/2010 16:01, Simon Marlow wrote: > Now I have a different problem: > > /home/simonmar/fp/bin/x86_64-unknown-linux/ghc-6.12.1.20100330 +RTS -RTS > -c soegtk/Graphics/SOE/Gtk.hs -o soegtk/Graphics/SOE/Gtk.o -O -isoegtk > -package-conf package.conf.inplace -hide-all-packages

Re: [Gtk2hs-devel] build failures with darcs gtk2hs

2010-04-19 Thread Simon Marlow
On 09/04/2010 17:14, Axel Simon wrote: > > On 09.04.2010, at 17:13, Simon Marlow wrote: > >> On 09/04/2010 16:01, Simon Marlow wrote: >> >>> Now I have a different problem: >>> >>> /home/simonmar/fp/bin/x86_64-unknown-linux/ghc-6.12.1.20100330 +RTS

Re: [Gtk2hs-devel] build failures with darcs gtk2hs

2010-04-19 Thread Simon Marlow
On 19/04/2010 15:09, Andy Stewart wrote: > Hi Simon, > Simon Marlow writes: > >> On 09/04/2010 17:14, Axel Simon wrote: >>> >>> On 09.04.2010, at 17:13, Simon Marlow wrote: >>> >>>> On 09/04/2010 16:01, Simon Marlow wrote: >>>> &

[Gtk2hs-devel] API change: GC no longer exported by Graphics.UI.Gtk

2010-05-13 Thread Simon Marlow
I recently compiled gtk2hs from the new Cabal packages (which worked great, well done folks!). However, when compiling ThreadScope against the new gtk2hs, I noticed that some things from Graphics.UI.Gtk.Gdk.GC are no longer exported by Graphics.UI.Gtk, namely GC and gcNew. Is this intentional?

Re: [Gtk2hs-devel] API change: GC no longer exported by Graphics.UI.Gtk

2010-05-13 Thread Simon Marlow
On 13/05/2010 15:41, Axel Simon wrote: > Hi Simon, > > On 13.05.2010, at 16:24, Simon Marlow wrote: > >> I recently compiled gtk2hs from the new Cabal packages (which worked >> great, well done folks!). However, when compiling ThreadScope against >> the new gtk2hs, I

Re: [Gtk2hs-devel] Sparating darcs repositories.

2010-05-25 Thread Simon Marlow
On 24/05/2010 21:00, Axel Simon wrote: > Hi darcs gurus, hi Duncan, > > I'm stuck! I've just tried to separate the Gtk2Hs repo on > code.haskell.org into it's constituent libraries. What we want is to > extract some of the libraries that Gtk2Hs provides into their own > repositories without loosing

Re: [Gtk2hs-devel] behaviour of ghci on .c modules that are part of a library

2010-07-16 Thread Simon Marlow
On 16/07/2010 12:36, Axel Simon wrote: > Dear Haskell maintainers, > > I've progressed a little and found that the problem is down to > accessing global variables that are declared in dynamic libraries. In > a nutshell, this doesn't as the addresses of these global variables > are all wrong when gh

Re: [Gtk2hs-devel] behaviour of ghci on .c modules that are part of a library

2010-07-16 Thread Simon Marlow
On 16/07/2010 14:04, Axel Simon wrote: > Hi Simon, > > On 16.07.2010, at 14:29, Simon Marlow wrote: > >> On 16/07/2010 12:36, Axel Simon wrote: >>> Dear Haskell maintainers, >>> >>> I've progressed a little and found that the problem is down to &

Re: [Gtk2hs-devel] [#1202] GObject ref, sink and Pixbuf

2010-10-09 Thread Simon Marlow
On 09/10/10 19:11, Axel Simon wrote: > > On Oct 9, 2010, at 18:23, John Obbele wrote: > >> Hi again ! >> >> On Sat, Oct 09, 2010 at 05:10:36PM +0200, Axel Simon wrote: >>> Yes, that's the notion. mainGUI must be "__safe" because it will >>> call back into Haskell land. Once a callback from the main