Ada has some excellent GENERICs, you can use them to great effect for reducing code-size.