Re: library Directory.hs
Tue, 19 Jun 2001 10:23:30 +0200, Nicole Gabler <Nicole.Gabler@web.de> pisze:
I have a problem: I need the library Directory.hs. But there is no directory.hs in {Hugs}/lib/ !! All standard libraries are there expect of this one.
Not exactly: Time and CPUTime are also missing.
Is there any alternative??
You can use another Haskell implementation: ghc - A big and rich compiler. May be hard to install because of dependencies on various tools. Provides many language extensions and libraries. nhc98 - Smaller than ghc but larger than Hugs. Provides a little more than Haskell 98. Compiles faster than ghc but programs execute more slowly. hbc - No longer maintained. Didn't reach Haskell 98. Compiles fast and programs run quite fast. A note about sources of these compilers: nhc98 is written in nice and clean standard Haskell (but I haven't looked deeply); ghc is written in itself and sometimes can be hard to understand; hbc is written in LazyML and almost nobody except its author understands it. Hugs is an interpreter written in C and I'm not sure how clearly it is written. -- __("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/ \__/ ^^ SYGNATURA ZASTÊPCZA QRCZAK
Why hbc did not succeeded? It is still possible to make it reach Haskell 98? Or why doesn't ghc uses some of its techniques to compile/run programs faster? Andre W B Furtado
On Tue, 19 Jun 2001, Andre W B Furtado wrote:
It is still possible to make hbc reach Haskell 98?
In short: Hbc is not quite dead yet, and there is a H98 version. In detail: [Note: I'm no expert in compiler writing, nor do I support hbc. I just happen to work at Chalmers in the office between Lennart Augustsson's (main architect and implementor of hbc, now in industry) and Thomas Hallgren's (still actively using and sometimes hacking hbc). ] The latest unofficial release is a Haskell 98 version of hbc, from 1999. Below are some links. There has been no official release for the last few years and the support level is pretty low, but the compiler exists and can be used. Unfortunately the web-pages and the documentation has not been updated the last few years! One notable feature in hbc still missing in ghc is Unicode support (hbc has supported Unicode from early on). I hope ghc will follow up the recent change to Unicode-sized Chars with some library support soon. Many years ago a big benefit of hbc was its interactive variant hbi, only very recently implemented by ghc, but hbi is even less supported than hbc and I have only tried it once or twice. [I'd be very happy to hear someone more involved in developing hbc and hbi come forward and disprove this claim by providing a new release.] When it comes to speed I am pretty sure ghc produces faster code (it used to be different, but that is a while ago) and I think hbc compiles faster nowadays "only" because it does less work in producing good code. /Patrik Jansson Versions of hbc98: http://www.cs.chalmers.se/pub/users/hallgren/Alfa/Haskell/ Binary distributions of the latest unofficial release: 0.9999.5b http://www.cs.chalmers.se/pub/users/hallgren/Alfa/Haskell/hbc-0.9999.5b.bin-... http://www.cs.chalmers.se/pub/users/hallgren/Alfa/Haskell/hbc-0.9999.5b.bin-... http://www.cs.chalmers.se/pub/users/hallgren/Alfa/Haskell/hbc-0.9999.5b.bin-... Source snapshot: http://www.cs.chalmers.se/pub/users/hallgren/Alfa/Haskell/snapshot/1999-09-1...
you forget one other essential quality of hbc. As far as I know it is the only compiler that even has a chance of compiling Fudgets, and hence programs dependent on them such as the very cool (IMHO) Alfa proof editor (http://www.cs.chalmers.se/~hallgren/Alfa/) and its assosiated improvments to Fudgets. If there is any effort to port these tools to a modern haskell system then I cheer you on. John On Wed, Jun 20, 2001 at 10:06:24AM +0200, Patrik Jansson wrote:
On Tue, 19 Jun 2001, Andre W B Furtado wrote:
It is still possible to make hbc reach Haskell 98?
In short: Hbc is not quite dead yet, and there is a H98 version.
In detail:
[Note: I'm no expert in compiler writing, nor do I support hbc. I just happen to work at Chalmers in the office between Lennart Augustsson's (main architect and implementor of hbc, now in industry) and Thomas Hallgren's (still actively using and sometimes hacking hbc). ]
The latest unofficial release is a Haskell 98 version of hbc, from 1999. Below are some links.
There has been no official release for the last few years and the support level is pretty low, but the compiler exists and can be used. Unfortunately the web-pages and the documentation has not been updated the last few years!
One notable feature in hbc still missing in ghc is Unicode support (hbc has supported Unicode from early on). I hope ghc will follow up the recent change to Unicode-sized Chars with some library support soon.
Many years ago a big benefit of hbc was its interactive variant hbi, only very recently implemented by ghc, but hbi is even less supported than hbc and I have only tried it once or twice. [I'd be very happy to hear someone more involved in developing hbc and hbi come forward and disprove this claim by providing a new release.]
When it comes to speed I am pretty sure ghc produces faster code (it used to be different, but that is a while ago) and I think hbc compiles faster nowadays "only" because it does less work in producing good code.
/Patrik Jansson
Versions of hbc98:
http://www.cs.chalmers.se/pub/users/hallgren/Alfa/Haskell/
Binary distributions of the latest unofficial release: 0.9999.5b
http://www.cs.chalmers.se/pub/users/hallgren/Alfa/Haskell/hbc-0.9999.5b.bin-... http://www.cs.chalmers.se/pub/users/hallgren/Alfa/Haskell/hbc-0.9999.5b.bin-... http://www.cs.chalmers.se/pub/users/hallgren/Alfa/Haskell/hbc-0.9999.5b.bin-...
Source snapshot:
http://www.cs.chalmers.se/pub/users/hallgren/Alfa/Haskell/snapshot/1999-09-1...
_______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
-- -------------------------------------------------------------- John Meacham http://www.ugcs.caltech.edu/~john/ California Institute of Technology, Alum. john@repetae.net --------------------------------------------------------------
Patrik Jansson wrote:
[...] One notable feature in hbc still missing in ghc is Unicode support (hbc has supported Unicode from early on). I hope ghc will follow up the recent change to Unicode-sized Chars with some library support soon. [...]
*ahem* Just to get rumours correct: Starting from 5.00, GHC *has* Unicode support (Char is even 31bits now), and there is some library support, too, but Marcin should better comment on the latter... Cheers, S.
participants (5)
-
Andre W B Furtado -
John Meacham -
Marcin 'Qrczak' Kowalczyk -
Patrik Jansson -
Sven Panne