
Alexandre Duret-Lutz.
Expression Templates in Ada. In the proceedings of the
6th International Conference on Reliable Software Technologies (Ada-Europe'2001), Lecture Notes in Computer Science Series, LNCS 2043, Springer, pages 191-202, Leuven, Belgium, May 2001.
Best paper award
High-order matrix or vector expressions tend to be penalized by the
use of huge temporary variables. Expression templates is a C++
technique which can be used to avoid these temporaries, in a way that
is transparent to the user. We present an Ada adaptation of this
technique which - while not transparent - addresses the same
efficiency issue as the original. We make intensive use of the
signature idiom to combine packages together, and discuss its
importance in generic programming. Finally, we express some concerns
about generic programming in Ada.
to top