1. 14 Jun, 2004 1 commit
  2. 13 Jun, 2004 3 commits
    • panne's avatar
      [project @ 2004-06-13 21:03:46 by panne] · 67a040b2
      panne authored
      Changes related to arithmetic types:
      
      * Renamed macros NUMERIC_FOO to ARITHMETIC_FOO to match C99-speak
      
      * ARITHMETIC_TYPEs now have a Real instance, otherwise they are quite useless.
        Note that this differs from the FFI spec, but the spec should very probably
        changed in this respect.
      
      * Some changes to fix the wrong assumption that CTime/CClock are integral types,
        C99 in fact guarantees only that they are arithmetic types. This has been
        accomplished by using
      
           realToInteger = round . realToFrac :: Real a => a -> Integer
      
        instead of fromIntegral for CTime/CClock. I'm not sure if we could do better,
        going via Double seems to be overkill, but I couldn't think of a better way.
        GHC could e.g. use RULES here. Improvements welcome.
      67a040b2
    • panne's avatar
      [project @ 2004-06-13 20:26:03 by panne] · c4ed8d8e
      panne authored
      Added missing dependencies of Haskell files to header files they include
      c4ed8d8e
    • panne's avatar
      [project @ 2004-06-13 17:16:40 by panne] · 463eed22
      panne authored
      The FFI report does not mention that CClock and CTime have instances for
      Bounded, Real, Integral, and Bits.
      463eed22
  3. 12 Jun, 2004 1 commit
  4. 02 Jun, 2004 5 commits
    • simonmar's avatar
      [project @ 2004-06-02 16:17:20 by simonmar] · 06b8d04e
      simonmar authored
      Add a comment about fdGetMode, which doesn't work properly on Windows
      06b8d04e
    • simonmar's avatar
      [project @ 2004-06-02 16:09:58 by simonmar] · 72c22698
      simonmar authored
      __hscore_PrelHandle_{send,recv}: make these mingw32-only
      72c22698
    • simonmar's avatar
      [project @ 2004-06-02 16:07:17 by simonmar] · 5d55d8fc
      simonmar authored
      - Win32: when using the threaded RTS, bypass the Async IO stuff and
        just make blocking calls to read()/write().
      
        This gives a significant performance boost to programs doing lots of
        multithreaded I/O: in fact, a test program I have which does I/O
        over 500 pipes simultaneously goes twice as fast with this change,
        and is even faster than the non-threaded RTS (Windows only - Unix
        changes are in the pipeline too).
      
      - openFd: take an extra parameter to specify socketness of the file
        descriptor rather than assuming that all streams are sockets.  Some
        streams (eg. pipes) aren't sockets.
      5d55d8fc
    • simonmar's avatar
      [project @ 2004-06-02 16:00:02 by simonmar] · c8e1c7fa
      simonmar authored
      Add __hscore_PrelHandle_{send,recv}
      c8e1c7fa
    • simonmar's avatar
      [project @ 2004-06-02 12:35:11 by simonmar] · 40078dee
      simonmar authored
      The lock arrays are too small on Windows, leading to buffer overruns
      and crashes when a program opens too many files.
      
      The problem is that on Windows, we shouldn't use FD_SETSIZE to get the
      max number of file descriptors: this is set to 64 in the mingw
      includes.  The real maximum is 2048 (according to the crt sources), so
      we now hardwire that in.
      
      Also, put in a runtime check that we aren't overruning this array.
      
      MERGE TO STABLE
      40078dee
  5. 27 May, 2004 1 commit
  6. 25 May, 2004 2 commits
    • simonmar's avatar
      [project @ 2004-05-25 09:27:16 by simonmar] · 9eef5c0b
      simonmar authored
      Small performance hack in maxBound::Word.
      9eef5c0b
    • simonpj's avatar
      [project @ 2004-05-25 09:11:57 by simonpj] · 5c0be5d0
      simonpj authored
      Remove spaces around the "%" when showing ratios.
      
      This is not absolutely strictly according to the H98 report,
      but it was suggested by Doug McIlroy
      
         According to the standard prelude, a list of Ratios prints like
         this: [1 % 1,1 % 2,1 % 3,1 % 4], which strongly suggests the
         grouping [1 % (1,1) % (2,1) % (3,1) % 4].
      
         Even standing alone outside of lists, the style is at odds with
         mathematical custom.  When did you last see 1/2 written as 1 / 2?
      5c0be5d0
  7. 10 May, 2004 1 commit
  8. 09 May, 2004 1 commit
  9. 06 May, 2004 2 commits
    • wolfgang's avatar
      [project @ 2004-05-06 12:27:47 by wolfgang] · ef5fe779
      wolfgang authored
      Make the documentation and the error messages match the way the threaded
      RTS is used nowadays
      (the -threaded flag to ghc rather than ./configure --enable-threaded-rts)
      
      MERGE TO STABLE
      ef5fe779
    • simonmar's avatar
      [project @ 2004-05-06 08:44:52 by simonmar] · 311dd3be
      simonmar authored
      Move the definition of rawSystem into a separate file which we
      #include in the places it is needed.  This is slightly better than
      copying the code, since we now need it in three places
      (ghc/utils/runghc is the 3rd).
      311dd3be
  10. 23 Apr, 2004 1 commit
  11. 20 Apr, 2004 3 commits
  12. 14 Apr, 2004 1 commit
  13. 06 Apr, 2004 1 commit
  14. 05 Apr, 2004 1 commit
  15. 30 Mar, 2004 4 commits
  16. 27 Mar, 2004 2 commits
  17. 24 Mar, 2004 1 commit
  18. 22 Mar, 2004 1 commit
  19. 21 Mar, 2004 1 commit
  20. 20 Mar, 2004 4 commits
  21. 19 Mar, 2004 3 commits
    • panne's avatar
      [project @ 2004-03-19 20:31:50 by panne] · ca93edc0
      panne authored
      HACK: Unbreak the Hugs build again, Typeable left the realm of Haskell98 one
      more time. I slowly doubt if this module belongs to the "base" package at
      all... If it stays there, things should better be tested with Hugs and nh98
      before committing, the latter build probably breaks, too.
      ca93edc0
    • simonmar's avatar
      [project @ 2004-03-19 11:00:02 by simonmar] · f8e29160
      simonmar authored
      - fix one performance bug: we weren't updating the bucket count when
        expanding the hash table, so too many expansions were happening.
      
      - slight improvement to hashString: if we use foldl rather than foldr,
        the resulting code uses an accumulating parameter and runs in linear
        stack space.
      f8e29160
    • simonmar's avatar
      [project @ 2004-03-19 10:45:42 by simonmar] · 08bb8535
      simonmar authored
      Bugfix for insert (from the missing-prime class of bugs)
      08bb8535