Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: