
The latest stable release seems to have some sort of a problem with the graphics library (the general one as well as the wrapper used in SOE). Opening a window takes more than a couple of minutes (on Windows XP). When I run an identical version of the code through Hugs, the window opens immediately. Am I doing something wrong? Thanks, - Slava.

On Mon, 2006-08-07 at 09:04 -0400, Vyacheslav Akhmechet wrote:
The latest stable release seems to have some sort of a problem with the graphics library (the general one as well as the wrapper used in SOE). Opening a window takes more than a couple of minutes (on Windows XP). When I run an identical version of the code through Hugs, the window opens immediately. Am I doing something wrong?
Unfortunately this code is currently broken with GHC on windows. No one has fixed it because the code is low level, ugly and few people understand it. There is an alternative implementation of the SOE api based on Gtk2Hs. This is currently being reviewed by the original SOE author. The aim is to make it match the original semantics as closely as possible. The code is currently available in the development version of Gtk2Hs. Duncan

By "this code is currently broken", I'm sure you are right, but which code you mean exactly? The Win32 binding for GHC? Or the Hugs Graphics Library (HGL) implementation for GHC? It'd be good to have a Trac bug report, specifying as precisely as possible what is broken. Simon | -----Original Message----- | From: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow-haskell-users-bounces@haskell.org] | On Behalf Of Duncan Coutts | Sent: 07 August 2006 14:56 | To: Vyacheslav Akhmechet | Cc: glasgow-haskell-users@haskell.org | Subject: Re: Graphics library very slow | | On Mon, 2006-08-07 at 09:04 -0400, Vyacheslav Akhmechet wrote: | > The latest stable release seems to have some sort of a problem with | > the graphics library (the general one as well as the wrapper used in | > SOE). Opening a window takes more than a couple of minutes (on Windows | > XP). When I run an identical version of the code through Hugs, the | > window opens immediately. Am I doing something wrong? | | Unfortunately this code is currently broken with GHC on windows. No one | has fixed it because the code is low level, ugly and few people | understand it. | | There is an alternative implementation of the SOE api based on Gtk2Hs. | This is currently being reviewed by the original SOE author. The aim is | to make it match the original semantics as closely as possible. The code | is currently available in the development version of Gtk2Hs. | | Duncan | | _______________________________________________ | Glasgow-haskell-users mailing list | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

On Mon, 2006-08-07 at 16:12 +0100, Simon Peyton-Jones wrote:
By "this code is currently broken", I'm sure you are right, but which code you mean exactly? The Win32 binding for GHC? Or the Hugs Graphics Library (HGL) implementation for GHC?
The HGL for GHC and therefore also the current SOE impl which is based upon HGL.
It'd be good to have a Trac bug report, specifying as precisely as possible what is broken.
I am afraid that I do not know what is wrong with it, I've just heard tell from many users and other developers that it is broken in some way. Paul Hudak told me that he had discussed the state of it with Simon Marlow and that neither of them were keen on fixing the Win32 impl of HGL because debugging it has proved to be a nightmare in the past. Hence Paul is currently evaluating an alternative implementation of SOE based on Gtk2Hs (this also provides some other benefits like anti-aliased rendering). Duncan

Simon Peyton-Jones wrote:
By "this code is currently broken", I'm sure you are right, but which code you mean exactly? The Win32 binding for GHC? Or the Hugs Graphics Library (HGL) implementation for GHC?
It'd be good to have a Trac bug report, specifying as precisely as possible what is broken.
There is already a ticket open for this: http://hackage.haskell.org/trac/ghc/ticket/742 "Graphics.SOE runs very slowly under win32." I propose that we do not ship the current HGL in 6.6. Any objections? Cheers, Simon
participants (4)
-
Duncan Coutts
-
Simon Marlow
-
Simon Peyton-Jones
-
Vyacheslav Akhmechet