Daily Shaarli

All links of one day in a single page.

01/06/20

How to Harness the Power of Associative Arrays

Fostering reliability, maintainability, compactness, and good performance in code has been a constant quest for programmers and language designers over the years. It's rare that one technique can give you all of the above benefits, concurrently. But intelligent use of associative arrays can do that. If you haven't yet tapped into the power of associative arrays, you might want to give the issues involved some thought. The issues are widely applicable to a variety of programming tasks, cutting across all major languages.

uthash - a hash table for C structures

Any C structure can be stored in a hash table using uthash. Just add a UT_hash_handle to the structure and choose one or more fields in your structure to act as the key. Then use these macros to store, retrieve or delete items from the hash table.

magnitude - A fast, efficient universal vector embedding utility package

A fast, efficient universal vector embedding utility package.

uthash - a hash table for C structures

Any C structure can be stored in a hash table using uthash. Just add a UT_hash_handle to the structure and choose one or more fields in your structure to act as the key. Then use these macros to store, retrieve or delete items from the hash table.

Language-games - Dead simple games made with word vectors.

Dead simple games made with word vectors.