D and Delphi do generics and monomorphization.
D goes further as it actually has compile time reflection and C++ style templates, even if ldc is slower than dmd, it remains quite fast.