On 12 Mar 2014 at 3:11, Louis Dionne wrote:
Here is the list of MPL11-related tasks I plan to clear during the summer. Note that full unit testing and documentation is implied for each task.
- Write a suite of benchmarks to compare the compilation time and memory usage of different TMP techniques. The benchmarks should run automatically on different input datasets and produce charts for easy comparison. This can be done with e.g. Ruby and a Ruby binding for Gnuplot.
Nice.
- Implement a compile-time map and a compile-time set with variadic templates. Several implementation techniques should be tested and benchmarked to pick the best one. For the interface, I'm thinking about an something similar to Haskell's Data.Map.Strict for the map and to Data.Set for the set. Note that I will have to decide what kind of type equality to support: type identity or "deep" type equivalence?
Nice.
- Write numeric metafunctions that can perform efficiently on homogeneous sequences of integral constants (using constexpr).
Nice.
- Write a tutorial that does not only present the core concepts of the library, but really shows how to use it for concrete tasks.
Mmm. Very worthy in itself, but better as an "if time permits" addon for GSoC purposes.
- Setup a Boost-compatible build system; the library currently uses CMake.
Nice.
- Design a cross-tag dispatching system for binary metafunctions (probably following N3351). This is a bit like the mixed-type numeric metafunctions of the MPL, except it should work with arbitrary (non-numeric) types and metafunctions.
- Design a small DSL to write inline metafunction classes. This is pretty much like lambda expressions in the MPL, but: - It should be possible to refer to arguments in an outer scope. This issue can be addressed either by let-expressions or De Bruijn indices. - It should be possible and easy to define custom placeholders. - It should be possible to have variadic placeholders, i.e. placeholders that are replaced by more than one argument. Note that this is tricky because the template in which the placeholder appears might not have the arity required to perform the substitution.
I feel hesitancy with anything you have yet to design. Also, I personally think your earlier work items are already more than plenty for a GSoC which really is not very long. GSoC uses a US summer schedule, we here in Europe get much longer summer holidays (equally, the Chinese get less than the US).
These are optional tasks I would like to complete if I have the time. Again, each task implies full unit testing and documentation.
- Make std::tuple, MPL sequences and Fusion sequences valid MPL11 sequences, so they can be used in MPL11 algorithms.
Very nice. You're getting me very excited about MPL11 now.
- Implement pattern matching on template specializations, much like Proto's match<> but for arbitrary template specializations. Pattern modifiers should be provided. At the minimum: - or_
matches if any of the Patterns match. - and_ matches if all of the Patterns match. - not_<Pattern> matches if the Pattern does not match. - when<F> matches if apply ::type::value is true, where T is the expression being matched against.
Could be a great stop gap before Concepts Lite arrives.
- Implement a compile-time graph data structure. The graph should support an interface similar to Boost.Graph's adjacency_list. Some basic graph algorithms should also be provided. At the minimum: - depth-first search - breadth-first search - topological sort - transitive closure
Hehehe ... colour me extremely interested now.
This is useful e.g. to order the execution of computations at compile-time. By creating a compile-time graph where nodes are computations and edges are dependencies between them, one can determine which computations can be parallelized and which ones must be linearized.
Superb Louis. With Joel as prospective mentor, this is exactly the kind of GSoC we look for at Boost. Knock the above list into a proposal according to Google's proposal template, send it here and I think not long after you're ready to submit. Niall --- Boost C++ Libraries Google Summer of Code 2014 admin https://svn.boost.org/trac/boost/wiki/SoC2014