Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Translators

Name: Anonymous 2015-05-09 20:29

The way to get rid of C & Sepples hegemony is through translators. Whenever you invent a new and much better language, you just invent a translator from C & Sepples to your new language. Then anyone will be able to completely replace their legacy shit-language code and C, C++, Java etc will quickly die off.

Name: Anonymous 2015-05-15 18:03

>>28
That's the wrong reading. What CCAN's htable does is sniff out what bits in hashtable entries are the same, and then stores hash-value bits in them instead. This exploits the fact that those entries tend to have been allocated near one another in the heap, with the advantage that lookup can limit comparisons by checking the stored hash bits against the key's hash value.

So, it exploits C's property of being able to convert a data pointer into an uintptr_t, and then not just that literal value but any that look like it exactly, back to the same data pointer. This makes a O(1) pointer synthesis difficult for implementations where wordsize < ptrsize, in turn inconveniencing translation into any language where pointer-to-integer-to-pointer casting isn't allowed by the target language's specification.

Hope this is clear enough.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List