#742: HGL broken on Windows
---------------------------+------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone: Not GHC
Component: libraries/HGL | Version: 6.4.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Windows |
---------------------------+------------------------------------------------
Changes (by simonmar):
* component: libraries (other) => libraries/HGL
* milestone: 6.6.1 => Not GHC
* summary: Graphics.SOE runs very slowly under win32. => HGL broken on
Windows
Comment:
My (limited) analysis of this bug is that the delicate scheduling
assumptions made by the HGL library are now broken on Win32. From a brief
look at the code, it seems that HGL has some carefully-placed yields in
order to give other threads a chance to run, and my guess is that the
current placement of yields is not sufficient in the case of GHC.
Simply using `-threaded` isn't going to work on its own, because the Win32
graphics API is single-threaded. The right way to fix this would be to
modify the HGL library to talk to the Win32 graphics API from a single
bound thread. However it may be better to abandon this implementation in
favour of the Gtk one:
[http://www.haskell.org/pipermail/haskell/2006-August/018398.html]
I'm removing this bug from the 6.6.1 milestone. We didn't ship HGL in 6.6
on Windows anyway.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/742>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs