Template Metaprogramming Made Easy (Huh?)

#ponce aliloko at gmail.com
Thu Sep 10 01:18:58 PDT 2009


> At least the problem with many old-school developers is that even though 
> a new language is 10x more readable, 100x more flexible, 1000x safer and 
> 10000x faster to develop with, if it's 0.1% slower than C++, they have no 
> reason to use it. Well, it shouldn't be a surprise given that JVM *is* a 
> VM.

So I'm a 22 yo oldschool developer.
One reason I hate VM language is not really about speed but that you have few control on what the CPU do, and very few control over memory and cache usage. Compound value types also are often lacking (especially in Java).

See python internal objects size : http://www.codexon.com/posts/memory-size-of-python-objects
Everything takes 4x the memory it would take in D. Each field access seems to be a lookup into a hashmap. This is plain ugly.

Also, when some part of a program is slow in C / C++ / D, most of time you have a way to speed it up. It may be painful but there is one.




More information about the Digitalmars-d mailing list