The Artima Developer Community
Sponsored Link

Heron-Centric: Ruminations of a Language Designer
High Performance Dynamic Typing in C++
by Christopher Diggins
August 8, 2005
Inspired by Kevlin Henney's boost::any variant type I have written a high performance alternative called cdiggins::any.


I've come up with what so far appears to be a a very robust and extremely fast alternative to boost::any. My preliminary tests have shown a speed up of 40x under certain circumstances.

I have published my code along with a brief article at here at

I wrote this type so that I could have top performance in dynamically typed code produced by the Heron to C++ translator I am writing. Hopefully others will find it useful as well.

Talk Back!

Have an opinion? Readers have already posted 2 comments about this weblog entry. Why not add yours?

RSS Feed

If you'd like to be notified whenever Christopher Diggins adds a new entry to his weblog, subscribe to his RSS feed.

About the Blogger

Christopher Diggins is a software developer and freelance writer. Christopher loves programming, but is eternally frustrated by the shortcomings of modern programming languages. As would any reasonable person in his shoes, he decided to quit his day job to write his own ( ). Christopher is the co-author of the C++ Cookbook from O'Reilly. Christopher can be reached through his home page at

This weblog entry is Copyright © 2005 Christopher Diggins. All rights reserved.

Sponsored Links


Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use