libcdict: fast dictionaries in C

  • Izzard R
  • Hendriks D
  • Nemergut D
N/ACitations
Citations of this article
3Readers
Mendeley users who have this article in their library.

Abstract

A common requirement in science is to store and share large sets of simulation data in an efficient, nested, flexible and human-readable way. Such datasets contain number counts and distributions, i.e. histograms and maps, of arbitrary dimension and variable type, e.g. floating-point number, integer or character string. Modern high-level programming languages like Perl and Python have associated arrays, knowns as dictionaries or hashes, respectively, to fulfil this storage need. Low-level languages used more commonly for fast computational simulations, such as C and Fortran, lack this functionality. We present libcdict, a C dictionary library, to solve this problem. Libcdict provides C and Fortran application programming interfaces (APIs) to native dictionaries, called cdicts, and functions for cdicts to load and save these as JSON and hence for easy interpretation in other software and languages like Perl, Python and R.

Cite

CITATION STYLE

APA

Izzard, R. G., Hendriks, D. D., & Nemergut, D. P. (2023). libcdict: fast dictionaries in C. Journal of Open Source Software, 8(92), 4756. https://doi.org/10.21105/joss.04756

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free