I think pdlua is ideal for this since it's simple, has similar datatypes, and maps are somewhat optimized as the primary (only?) non-primitive datatype https://github.com/sebshader/shadylib/blob/master/lmap.pd_lua
-Seb
On Monday, November 4, 2024 at 01:45:02 AM CST, Chris McCormick chris@mccormick.cx wrote
Hi,
I was wondering if anybody has implemented a key-value store in Pd which can be serialized to a list? I'd like to be able to send messages like:
set foo value1 value2 value3 get foo (returns value1 value2 value3) del foo set bar valueX valueY set baz valueZ
And then a way to dump and read entire key-value tables from the list with e.g. [dump( and [restore ...( where ... is the serialized form of the key values.
I guess I can build this with [text] but I wanted to check if anybody has done it already.
Cheers,
Chris.