Jump to content

NHC: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
'''Nearly a Haskell Compiler''' or NHC is a small [[Haskell]] compiler/interpreter originally introduced in 1994 by Niklas Röjemo, it compiles to a bytecode that targets a runtime written in [[C]] and has libraries and tools that allow it to call and be called by C tools. NHC was renamed NHC98 when it was made compatible with the Haskell 98 standard and at the same time the version numbers were rebooted. There was also a now dead fork by Tom Shackell in the form of the [http://yhc06.blogspot.co.uk/2011/04/yhc-is-dead.html York Haskell Compiler] that actually was better in some respects.
'''Nearly a Haskell Compiler''' (NHC) is a small [[Haskell]] compiler/interpreter originally introduced in 1994 by Niklas Röjemo, it compiles to a bytecode that targets a runtime written in [[C]] and has libraries and tools that allow it to call and be called by C tools. NHC was renamed NHC98 when it was made compatible with the Haskell 98 standard and at the same time the version numbers were rebooted. There was also a now dead fork by Tom Shackell in the form of the [http://yhc06.blogspot.co.uk/2011/04/yhc-is-dead.html York Haskell Compiler] that actually was better in some respects.


NHC is primarily written in Haskell but it has a small, fairly system independent runtime that is written in C and this makes it easy to bootstrap the system on platforms that have a C compiler available.
NHC is primarily written in Haskell but it has a small, fairly system independent runtime that is written in C and this makes it easy to bootstrap the system on platforms that have a C compiler available.


==Versions==
==Versions==
* Last known version: NHC98 v1.22 (2010)
*NHC 1.3 - last OS/2 version
: There never was an OS/2 release of any of the NHC98 family, but the latest version appears to compile and work on OS/2, but is untested.
*NHC98 v1.22 (2010) - There never was an OS/2 release of any of the NHC98 family, but the latest version appears to compile and work on OS/2, but is untested.
* Last known OS/2 version: NHC 1.3


==Links & publications==
==Publications==
* Niklas Röjemo: ''nhc - Nearly a Haskell Compiler'' - [http://citeseerx.ist.psu.edu/viewdoc/download?rep=rep1&type=pdf&doi=10.1.1.38.5479]
* Niklas Röjemo: ''Garbage Collection, and Memory Efficiency, in Lazy Functional Languages'' (1995) [http://www.cs.chalmers.se/~rojemo/thesis.html]
* Colin Runciman; Niklas Röjemo: ''Heap Profiling for Space Efficiency'' [http://foswiki.cs.uu.nl/foswiki/pub/USCS/InterestingPapers/HeapProfiling.pdf]
 
==Links==
* [https://www.haskell.org/nhc98/ NHC98 homepage]
* [https://www.haskell.org/nhc98/ NHC98 homepage]
* Niklas Röjemo: [http://citeseerx.ist.psu.edu/viewdoc/download?rep=rep1&type=pdf&doi=10.1.1.38.5479 nhc - Nearly a Haskell Compiler] - In [[PDF]] format
* Niklas Röjemo: [http://www.cs.chalmers.se/~rojemo/thesis.html Garbage Collection, and Memory Efficiency, in Lazy Functional Languages] (1995)
* Colin Runciman and Niklas Röjemo: [http://foswiki.cs.uu.nl/foswiki/pub/USCS/InterestingPapers/HeapProfiling.pdf Heap Profiling for Space Efficiency]
==Author==
* Niklas Röjemo


[[Category:Haskell]][[Category:Functional programming]][[Category:Open Source Software]]
[[Category:Haskell]][[Category:Open Source Software]][[Category:Software written in C]]
[[Category:Software written in C]]
[[Category:Software written in Haskell]]
[[Category:Software written in Haskell]]

Revision as of 23:53, 8 February 2020

Nearly a Haskell Compiler (NHC) is a small Haskell compiler/interpreter originally introduced in 1994 by Niklas Röjemo, it compiles to a bytecode that targets a runtime written in C and has libraries and tools that allow it to call and be called by C tools. NHC was renamed NHC98 when it was made compatible with the Haskell 98 standard and at the same time the version numbers were rebooted. There was also a now dead fork by Tom Shackell in the form of the York Haskell Compiler that actually was better in some respects.

NHC is primarily written in Haskell but it has a small, fairly system independent runtime that is written in C and this makes it easy to bootstrap the system on platforms that have a C compiler available.

Versions

  • NHC 1.3 - last OS/2 version
  • NHC98 v1.22 (2010) - There never was an OS/2 release of any of the NHC98 family, but the latest version appears to compile and work on OS/2, but is untested.

Publications

  • Niklas Röjemo: nhc - Nearly a Haskell Compiler - [1]
  • Niklas Röjemo: Garbage Collection, and Memory Efficiency, in Lazy Functional Languages (1995) [2]
  • Colin Runciman; Niklas Röjemo: Heap Profiling for Space Efficiency [3]

Links