Re: Key value list store

Sebastian Shader via Pd-list <[email protected]>
Newsgroups gmane.comp.multimedia.puredata.general
Message-ID <[email protected]>
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 <[email protected]> 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.



-- 
https://mccormick.cx/

---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/NTR6JSPIPNXI6DCIVK2CWIISTMWT66P6/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/


---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/ICS44RPKFVMTEY7HEWH7XYOOJ6DMEAW2/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.