Changes between Version 1 and Version 2 of Status/May11

Apr 19, 2011 3:03:41 PM (6 years ago)



  • Status/May11

    v1 v2  
    44= GHC Status May 2011 =
     6GHC is humming along.  We are currently deep into the release cycle for GHC 7.0.  We have finally bumped the major version number, because GHC 7.0 has quite a bit of new stuff
     8 * Simon PJ and Dimitrios '''complete rewrite of the constraint solver in the type inference engine''': done? any correctness or performance regressions remaining?
     10 * David Terei LLVM; any news?
     12 * In joint work with Phil Trinder and his colleagues at Herriot Watt, Simon M designed implemented a new '''parallel strategies library''', described in their 2010 Haskell Symposium paper [[ Seq]].
     14We are fortunate to have a growing team of people willing to roll up their
     15sleeves and help us with GHC.  Amongst those who have got involved recently are:
     16  (The cross-compilation crew springs to mind. And some OS X / FBSD / Solaris / etc activity recently)
     17At GHC HQ we are having way too much fun; if you wait for us to
     18do something you have to wait a long time.  So don't wait; join in!
     20Release status: 7.0 closed, 7.2 imminent, 7.4 coming soon
     22== Language developments, especially types ==
     24Any updates on the below?
     26GHC continues to act as an incubator for interesting new language developments.
     27Here's a selection that we know about.
     29 * Pedro Magalhaes is implementing the '''derivable type classes''' mechanism described in his 2010 Haskell Symposium paper [[ Derivable]].  I plan for this to replace GHC's current derivable-type-class mechanism, which has a poor power-to-weight ratio and is little used.
     31 * Stephanie Weirich and Steve Zdancewic had a great sabbatical year at Cambridge.  One of the things we worked on, with Brent Yorgey who came as an intern, was to close the embarrassing hole in the type system concerning '''newtype deriving''' (see Trac bug #1496).  I have delayed fixing until I could figure out a Decent Solution, but now we know; see our 2011 POPL paper [[ Newtype]].  Brent is working on some infrastructal changes to GHC's Core language, and then we'll be ready to tackle the main issue.
     33 * Next after that is a mechanism for '''promoting types to become kinds''', and data constructors to become types, so that you can do ''typed'' functional programming at the type level.  Conor !McBride's SHE prototype is the inspiration here [[ SHE]].  Currently it is, embarrassingly, essentially untyped. 
     35 * '''Template Haskell''' seems to be increasingly widely used.  Simon PJ has written a proposal for a raft of improvements, which we plan to implement in the new year [[ TemplateHaskell]].
     37 * Iavor Diatchki plans to add '''numeric types''', so that you can have a type like `Bus 8`, and do simple arithmetic at the type level.  You can encode this stuff, but it's easier to use and more powerful to do it directly.
     39 * David Mazieres at Stanford wants to implement '''Safe Haskell''', a flag for GHC that will guarantee that your program does not use `unsafePerformIO`, foreign calls, RULES, and other stuff stuff. 
     417.0 also has support for the Haskell 2010 standard, and the libraries that it specifies.
     43== Packages and the runtime system ==
     45 * Simon Marlow is working on a new garbage collector that is designed to improve scaling of parallel programs beyond small numbers of cores, by allowing each processor core to collect its own local heap independently of the other cores.  Some encouraging preliminary results were reported in a [ blog post].  Work on this continues; the complexity of the system and the number of interacting design choices means that achieving an implementation that works well in a broad variety of situations is proving to be quite a challenge.
     47 * The "new back end" is still under construction.  This is a rewrite of the part of GHC that turns STG syntax into C--, i.e. the bit between the Core optimisation passes and the native code generator.  The rewrite is based on [[ Hoopl]], a data-flow optimisation framework.  Ultimately this rewrite should enable better code generation.  The new code generator is already in GHC, but turned off by default; you get it with the flag `-fuse-new-codegen`.  Don't expect to get better code with this flag yet!
     49== The Parallel Haskell Project ==
     51Microsoft Research is funding a 2-year project to develop the real-world use of parallel Haskell. The project has recently kicked off with four industrial partners, with consulting and engineering support from Well-Typed. Each organisation is working on its own particular project making use of parallel Haskell. The overall goal is to demonstrate successful serious use of parallel Haskell, and along the way to apply engineering effort to any problems with the tools that the organisations might run into.
     53We will shortly be announcing more details about the partner organisations and their projects. For the most part the projects are scientific and focus on single-node SMP systems, though one of the partners is working on network servers and another partner is very interested in clusters. In collaboration with Bernie Pope, the first tangible results from the project will be a new MPI binding, which will appear on hackage shortly.
     55Progress on the project will be reported to the community. Since there are now multiple groups in the community that are working on parallelism, the plan is to establish a parallel Haskell website and mailing list to provide visibility into the various efforts and to encourage collaboration.
     57== Data Parallel Haskell ==
     59Since the last report, we have continued to improve support for nested parallel divide-and-conquer algorithms.  We started with [[ QuickHull]] and are now working on an implementation of the [[ Barnes-Hut]] ''n''-body algorithm.  The latter is not only significantly more complex, but also requires the vectorisation of recursive tree data-structures, going well beyond the capabilities of conventional parallel-array languages.  In time for the stable branch of GHC 7.0, we replaced the old, per-core sequential array infrastructure (which was part of the sub-package `dph-prim-seq`) by  the [[ vector package]] — vector started its life as a next-generation spin off of `dph-prim-seq`, but now enjoys significant popularity independent of DPH.
     61The new handling of INLINE pragmas as well as other changes to the Simplifier improved the stability of DPH optimisations (and in particular, array stream fusion) substantially.  However, the current candidate for GHC 7.0.1 still contains some performance regressions that affect the DPH and [[ Repa]] libraries and to avoid holding up the 7.0.1 release, we decided to push fixing these regressions to GHC 7.0.2.  More precisely, we are planning a release of DPH and Repa that is suitable for use with GHC 7.0 for the end of the year, to coincide with the release of GHC 7.0.2.  From GHC 7.0 onwards, the library component of DPH will be shipped separately from GHC itself and will be available to download and install from Hackage as for other libraries.
     63To catch DPH performance regressions more quickly in the future, Ben Lippmeier implemented a performance regression testsuite that we run nightly on the HEAD.  The results can be enjoyed on the GHC developer mailing list.
     65Sadly, Roman Leshchinskiy has given up his full-time engagement with DPH to advance the use of Haskell in the financial industry.  We are looking forward to collaborating remotely with him.
     67== Installers ==
     69The GHC installers have also received some attention for this release.
     71The Windows installer includes a much more up-to-date copy of the MinGW system, which in particular fixes a couple of issues on Windows 7. Thanks to Claus Reinke, the installer also allows more control over the registry associations etc.
     73Meanwhile, the Mac OS X installer has received some attention from Evan Laforge. Most notably, it is now possible to install different versions of GHC side-by-side.
     75== Bibliography ==
     77 * [Bryan] "A brief tale of faster equality", Bryan O'Sullivan blog post, Oct 2010,
     79 * [Containers] "The performance of the Haskell containers package", Straka, Haskell Symposium 2010,
     81 * [Derivable] "A generic deriving mechanism for Haskell", Magalhães, Dijkstra, Jeuring and Löh, Haskell Symposium 2010,
     83 * [!LetGen] "Let generalisation in GHC 7.0", Peyton Jones, blog post Sept 2010,
     85 * [Newtype] "Generative Type Abstraction and Type-level Computation", Weirich, Zdancewic, Vytiniotis, and Peyton Jones, POPL 2010,
     87 * [Llvm] "An LLVM Backend for GHC", Terei and Chakravarty, Haskell Symposium 2010,
     89 * [Seq] "Seq no more", Marlow, Maier, Trinder, Loidl, and Aswad, Haskell Symposium 2010,
     91 * [SHE] The Strathclyde Haskell Enhancement, Conor !McBride, 2010,
     93 * [!TemplateHaskell] New directions for Template Haskell, Peyton Jones, blog post October 2010,
     95 * [Hoopl] Hoopl: A Modular, Reusable Library for Dataflow Analysis and Transformation,