3 ms·
"I guess what I want is a struct like data structure, but in an interpreted language" Python ffi is an option: https://cffi.readthedocs.io/en/latest/using.html
by tyingq 6y ago
"I guess what I want is a struct like data structure, but in an interpreted language"
Python ffi is an option: https://cffi.readthedocs.io/en/latest/using.html#working-with-pointers-structures-and-arrays https://cffi.readthedocs.io/en/latest/using.html#working-wit...
Though I don't know what advantage that route would have over most interpreted language's already existing associative arrays / hashmaps / dicts.
There may be some module already built that serves your needs. DiscoDB is a good example..a very fast hashmap that uses mmap(). https://discodb.readthedocs.io/en/latest/ https://discodb.readthedocs.io/en/latest/