RE: Default name of target executable

2005-10-14 Thread Simon Marlow
On 13 October 2005 18:57, Tomasz Zielonka wrote: On 10/11/05, Tomasz Zielonka [EMAIL PROTECTED] wrote: On 10/11/05, Simon Marlow [EMAIL PROTECTED] wrote: Ok, let's close this bikeshed. Someone want to send us a patch? I will try to do this On which branch of GHC should I be working?

Help wanted! Win32 and HGL for GHC on Windows

2005-10-14 Thread Simon Peyton-Jones
Dear GHC users This is an appeal for help with the libraries/Win32 package [on Windows, obviously] libraries/HGL package [on Windows] Here's the situation: * Win32 provides access to the native Windows API, which is obviously very useful for people writing Haskell on

Re: Help wanted! Win32 and HGL for GHC on Windows

2005-10-14 Thread Duncan Coutts
On Fri, 2005-10-14 at 09:20 +0100, Simon Peyton-Jones wrote: Dear GHC users This is an appeal for help with the libraries/Win32 package [on Windows, obviously] libraries/HGL package [on Windows] Here's the situation: * Win32 provides access to the native Windows API,

Network Exception

2005-10-14 Thread Arias
Hi, I've a problem, I'm using this code on GHC compiler version 6.4.1: --- BEGIN --- module Main where import System.IO import Network main = withSocketsDo $ do handle - connectTo localhost ( PortNumber 8080 ) hSetBuffering handle LineBuffering hClose handle --- END --- The problems is that

Profiling and Data.HashTable

2005-10-14 Thread Ketil Malde
Hi all, I have a program that uses hash tables to store word counts. It can use few, large hash tables, or many small ones. The problem is that it uses an inordinate amount of time in the latter case, and profiling/-sstderr shows it is GC that is causing it (accounting for up to 99% of the

Re: Network Exception

2005-10-14 Thread Dinko Tenev
It looks odd to me, because the service is not particularly meaningful to the transport, and thus not a crucial piece of information. Unless I am missing something, this could be a bug in the Network module. You may want to try the lower-level stuff from Network.Socket instead. Cheers, Dinko On

Re: Profiling and Data.HashTable

2005-10-14 Thread Adrian Hey
On Friday 14 Oct 2005 3:17 pm, Ketil Malde wrote: Hi all, I have a program that uses hash tables to store word counts. It can use few, large hash tables, or many small ones. The problem is that it uses an inordinate amount of time in the latter case, and profiling/-sstderr shows it is GC

Re: Help wanted! Win32 and HGL for GHC on Windows

2005-10-14 Thread Sven Panne
Am Freitag, 14. Oktober 2005 11:28 schrieb Duncan Coutts: [...] Well for the special case of the SOE library I have a re-implementation of it based on Gtk+/cairo which should work on all platforms. [...] Which additional stuff would one have to install on an e.g. off-the-shelf SuSE Linux

Re: Profiling and Data.HashTable

2005-10-14 Thread Jan-Willem Maessen
On Oct 14, 2005, at 10:17 AM, Ketil Malde wrote: Hi all, I have a program that uses hash tables to store word counts. It can use few, large hash tables, or many small ones. The problem is that it uses an inordinate amount of time in the latter case, and profiling/-sstderr shows it is GC

Re: Network Exception

2005-10-14 Thread Arias
Thanks for the reply. I don't know if the problem is the same, but when I try to run this code: main = withSocketsDo $ do host - getHostName putStrLn host the getHostName throws this exception: getHostName: failed (Successful WSAStartup not yet performed (WSANOTINITIALISED)) :( I'm

Re: Profiling and Data.HashTable

2005-10-14 Thread John Meacham
On Fri, Oct 14, 2005 at 04:29:37PM +0100, Simon Marlow wrote: I'm not certain that this is your problem, but hash tables are by definition mutable objects, and mutable objects don't work too well with generational garbage collection, GHC's in particular. Basically every GC, even the minor

Re: Network Exception

2005-10-14 Thread John Meacham
By chance are you statically linking the program? if you statically link a program on linux (and some other systems), it cannot look up hostnames, protocols, or passwd entries. you can look up the protocol number in /etc/protocols and hardcode it and use IP addresses rather than names and it