1. 16 Jun, 2004 1 commit
  2. 15 Jun, 2004 3 commits
  3. 14 Jun, 2004 1 commit
  4. 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
  5. 12 Jun, 2004 1 commit
  6. 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
  7. 27 May, 2004 1 commit
  8. 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
  9. 10 May, 2004 1 commit
  10. 09 May, 2004 1 commit
  11. 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
  12. 23 Apr, 2004 1 commit
  13. 20 Apr, 2004 3 commits
  14. 14 Apr, 2004 1 commit
  15. 06 Apr, 2004 1 commit
  16. 05 Apr, 2004 1 commit
  17. 30 Mar, 2004 4 commits
  18. 27 Mar, 2004 2 commits
  19. 24 Mar, 2004 1 commit
  20. 22 Mar, 2004 1 commit
  21. 21 Mar, 2004 1 commit
  22. 20 Mar, 2004 3 commits