|Version 9 (modified by simonpj, 7 years ago) (diff)|
GHC Status May 2009
The last six months have been busy ones for GHC.
The GHC 6.10 branch
We finally released GHC 6.10.1 on 4 November 2008, with a raft of new features we discussed in the October 2008 status report.
Something over five months later we released GHC 6.10.2, with XX new patches fixing YY new tickets raised against 6.10.1. We hoped that'd be it for the 6.10 branch, but we slipped up and 6.10.2 contained a couple of regresssions (concerning Control-C and editline) that were sufficiently annoying that we're about make a rapid bug-fix release. By the time you read this, GHC 6.10.3 should be out, after which we hope to shift all our attention to the 6.12 branch.
The new build system
Our old multi-makefile build system had grown old, crufty, hard to understand. And it didn't even work very well. So we embarked on a plan to re-implement the build system. Rather than impose the new system on everyone immediately, Ian and Simon (Marlow) did all the development on a branch, and invited others to give it a whirl. Finally, on 25 April 2009, we went "live" on the HEAD.
The new design is extensively described on the wiki. It still uses make, but there is no only one (giant) Makefile, with no recursive invocations of make. That in turn means that dependency tracking is vastly more accurate than before, so that if something should be built it will be built.
The new build system is also much less dependent on Cabal than it was before. We now use Cabal only to read package metadata from the <pkg>.cabal file, and emit a bunch of Makefile bindings. Everything else is done in make. You can read more about the design rationale on the wiki.
We also advertised our intent to switch to Git as our version control system (VCS). We always planned to change the build system first, and only then tackle the VCS. Since then, there has been lots of activity on the Darcs front, so it's not clear how high priority making this change is. We'd welcome your opinion.
The GHC 6.12 branch
The main list of new features in GHC 6.12 remains much the same as it was in our last status report. Happily, there has been progress on all fronts.
- John Dias has continued work on rewriting GHC's backend. You can find an overview of the new architecture on the wiki.
He and Norman and Simon wrote Dataflow optimisation made simple, a paper about the dataflow optimisation framework] that the new back end embodies. Needless to say, the act of writing the paper has made us re-design the framework, so at the time of writing it still isn't on GHC's main compilation path. But it will be.
- Data Parallel Haskell remains under very active development. The current state of play, including some benchmark figures is on the wiki. We also wrote a substantial paper Harnessing the multicores: nested data parallelism in Haskell for FSTTCS; you may find this paper a useful tutorial on the whole idea of nested data parallelism.
- We hope that Max Bolingbroke's Dynamically Loaded Plugins summer of code project will be merged in time for 6.12. Part of this is a new, modular system for user-defined '''annotations''', rather like Java or C# attributes. These attributes are persisted into interface files, can be examined and created by plugins, or by GHC API clients.
- (Simon) mention Satname, new profiler. Likewise, Donnie Jones's project for profiling parallel programs should be merged in time for 6.12
- (Simon) (include pointer to paper). Simon Marlow is working on improving parallel performance, incorporating the work done by Jost Berthold during his internship at Microsoft in the summer of 2008. The plan is to make writing performant parallel programs less of a trial-and-error process, by whacking as many bottlenecks as we can find in the runtime system. We're already making significant improvements, and there's plenty more low-hanging fruit to pick. One large project that we hope to tackle is the issue of doing independent per-CPU garbage collection.
- (Simon) Shared Libraries, are inching ever closer to being completed. Clemens Fruhwirth has been working on polishing the support for shared libraries on Unix systems in particular, and when the remaining issues are ironed out we should be able to roll them out in a release.
- (Ian or Simon) Finally, unicode text I/O and dynamic libraries were slated for 6.10 but weren't quite ready in time, so we certainly expect those to make it for in 6.12
- Release expected shortly after ICFP?
- New build system: main bulk done, merged in head. Details still to be ironed out. Should be more parallel, and more correct (i.e. saying "make" should correctly rebuild things)
- John Dias's backend stuff; done?
- Donnie's profiler
- unicode IO
- shared libraries
- DPH development continues