Better HN
topnewbestaskshowjobs
Log inSign up

v0i0-0

4 karma · joined Aug 3, 2014 (12y ago) · 2 submissions

Submissions

comment 12y ago · link · parent

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...

comment 12y ago · link · parent

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?