<div dir="ltr">As long as we're at it, what are the difference between [text] and [cyclone/coll] and where do they do the same thing?<div><br></div><div>Also, it seems [coll] is deprecated in Max, they have a new object named [dict], which might be the "python like dictionary" kind of thing, and this is what Max suggests using instead of coll.</div><div><br></div><div>So, I was wondering if there would be any great advantage of cloning [dict] into cyclone, or if you could do the same things with [text] anyway.</div><div><br></div><div>cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-18 15:33 GMT-03:00 Jonathan Wilkes via Pd-list <span dir="ltr"><<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><span class=""><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_3894">> Hello Jonathan,<br></div><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_3971"><br></div><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_3972">> Thanks for your reply.<br></div><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_3973">> I'm not quite sure what you mean.<br></div><div><br></div><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_4236">> What pd-vanilla object do you use to implement "Variable number of keys of arbitrarily typed values" <br></div></span><div dir="ltr" id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_4237">[text], [coll], etc.<br></div><span class=""><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5454"><br></div><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5455">> or "set number of keys with set value types"?</div></span><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5456">data structures<br></div><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5457"><br></div><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5458">The benefit of the latter is that you know the number of "slots" ahead of time so you can populate <br></div><div dir="ltr" id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5459">the data without needing to allocate memory.<br></div><span class=""><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5460"><br></div><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5461">> I should add that I'm interested ultimately in a data structure that I can populate from text files, read by PD.<br></div><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5462"><br></div></span><div dir="ltr" id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5463">In that case I don't think the benefit I mentioned wrt data structures matters because <br></div><div dir="ltr" id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5689">the I/O speed will be your limiting factor.<br></div><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5464"><br></div><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5703">My suggestion would be to start with the more expressive vanilla object-- [text]-- and see <br></div><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5995" dir="ltr">if it fulfills your needs. Keep in mind though that it is at core not a key/value store but instead <br></div><div dir="ltr" id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_6208">a 2-dimensional array of atoms. E.g., you can decide that the first item in each line is your <br></div><div dir="ltr" id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_6957">key, but the text class interface does nothing to prevent you from adding more lines that <br></div><div dir="ltr" id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_6956">duplicate that same key.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5690"><br></div><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_7008">-Jonathan<br></div></font></span><span class=""><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_6998"><br></div><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5691">> -ali</div><div class="m_-2405896731717104921qtdSeparateBR"><br><br></div><div class="m_-2405896731717104921yahoo_quoted" id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_3860" style="display:block"><div style="font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px" id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_3859"><div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px" id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_3858"><div class="m_-2405896731717104921y_msg_container" id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_3871"><div id="m_-2405896731717104921yiv4173596920"><div id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5997"><div class="m_-2405896731717104921yiv4173596920yqt7583928422" id="m_-2405896731717104921yiv4173596920yqt33158"><div class="m_-2405896731717104921yiv4173596920gmail_extra" id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_5996"><br clear="none"><div class="m_-2405896731717104921yiv4173596920gmail_quote" id="m_-2405896731717104921yui_3_16_0_ym19_1_1500401132688_6006">On Tue, Jul 18, 2017 at 1:16 PM, Jonathan Wilkes <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:jancsika@yahoo.com" target="_blank">jancsika@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="m_-2405896731717104921yiv4173596920gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div>Variable number of keys of arbitrarily typed values, or <br clear="none"></div><div dir="ltr">set number of keys with set value types?</div><div dir="ltr" id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4201"><br clear="none"></div><div dir="ltr" id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4202">-Jonathan<br clear="none"></div><div id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4196"><span></span></div><div class="m_-2405896731717104921yiv4173596920m_-263036104200028067qtdSeparateBR" id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4140"><br clear="none"><br clear="none"></div><div class="m_-2405896731717104921yiv4173596920m_-263036104200028067yahoo_quoted" id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4212" style="display:block">  <div id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4211" style="font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"> <div id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4210" style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"> <font size="2" face="Arial"> </font><hr size="1"> <b><span style="font-weight:bold">From:</span></b> Ali Momeni <<a rel="nofollow" shape="rect" href="mailto:batchku@gmail.com" target="_blank">batchku@gmail.com</a>><br clear="none"> <b><span style="font-weight:bold">To:</span></b> Pd-List <<a rel="nofollow" shape="rect" href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>> <br clear="none"> <b><span style="font-weight:bold">Sent:</span></b> Tuesday, July 18, 2017 1:09 PM<br clear="none"> <b><span style="font-weight:bold">Subject:</span></b> [PD] your favorite key:value data structure?<br clear="none">  </div> <div class="m_-2405896731717104921yiv4173596920m_-263036104200028067y_msg_container" id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4209"><div><div class="m_-2405896731717104921yiv4173596920h5"><br clear="none"><div id="m_-2405896731717104921yiv4173596920m_-263036104200028067yiv8622258958"><div dir="ltr" id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4213">Hello all,<div><br clear="none"></div><div id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4221">I'm looking for something analogous to the Max "coll" object, or a python dictionary, or anything with key value pairs.  </div><div id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4215"><br clear="none"></div><div id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4214">I'm aware of the 'cyclone' and its 'coll' object.</div><div id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4222"><br clear="none"></div><div id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4223">i'm wondering if there is a pd-vanilla friendly alternative to this 3rd party external.</div><div id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4224"><br clear="none"></div><div id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4225">any hints?</div><div id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4226"><br clear="none"></div><div id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4227">thanks in advance,</div><div id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4228"><br clear="none"></div><div id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4229">ali</div></div></div></div></div>______________________________ _________________<br clear="none"><a rel="nofollow" shape="rect" id="m_-2405896731717104921yiv4173596920m_-263036104200028067yui_3_16_0_ym19_1_1500398097352_4230" href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br clear="none">UNSUBSCRIBE and account-management -> <a rel="nofollow" shape="rect" href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/ listinfo/pd-list</a><br clear="none"><br clear="none"><br clear="none"></div> </div> </div>  </div></div></div></blockquote></div><br clear="none"></div></div></div></div><br><br></div> </div> </div>  </div></span></div></div><br>______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
<br></blockquote></div><br></div>