News for hackers. Stuff that matters.

v0i0-0

Re:Hidden treasure in the D standard library on Thursday August 28, 2014 @04:19PM (#8239479)
Have a look at the sourcecode [1]. It is just implemented with an associative array (implemented as hash table) from argument tuples to the return type. This means that keys have to be atomic or provide their to_hash and equality check themselves. Check out the D template system, it is quite impressive what you can express with it.

1: https://github.com/D-Programming-Language/phobos/blob/master...

Re:The Tigress Diversifying C Virtualizer on Sunday August 03, 2014 @07:07AM (#8127633)
Could you maybe point me to such one tool, i.e. one that specializes routines for given parameters. Will these tools also perform optimizations that might be possible if the specialization took place?