Hacker News new | ask | show | jobs
by turminal 1979 days ago
This is impossible without significant performance impact. No language can change that.

Edit: except theoretically for data structures that have certain characteristics known in advance

2 comments

Well, one approach is to parameterize your data-types such that they are fast in the usual case, but become perhaps slightly slower (but still on par with hand-written code) in the more versatile case.
Boost.interproces does exactly that for the STL.