Cycling74 / min-devkit

Tools, documentation, and reference implementation of a Max Package built using the Min-API.
MIT License
159 stars 31 forks source link

example object: list processing #40

Closed tap closed 7 years ago

tap commented 8 years ago

list processing with no limits on list length. a zl.group style object might be a good starting place (collect input until a bang is received).


----------begin_max5_patcher----------
397.3ocuTF0aBBCD.9Y3WAoOyLzBpy8WYYYo.MXMPgzVbnF+uu1qvTWXJIN8
k1bWud28c8tdv2CkV2wTnf2BdOvy6fumGnxpvqW1CUQ6xJoJvLTZqVWKPgti
Zn5r0bQwmRVl14FRRxrnvfkX6JIYXM3i9qT2pKYZ8tFlydTJUTf94XdNDl5z
MurXHJh1JtvbIHCv8JU5ckfKPmYly4N6rJO56aWBmHbULkhVvtFcyirDEGMG
1VARDx03aT1RFkMxCjMA6KSfG7ml0ADg1WNqPV21b0Wzk.kwuZ2lGOAjC+Cr
I2E1j+Ora2yCvQQ2tOFSfF4jU2lZnQN7zNWnGsHfuqhP7YEAv6nRt32yv.OV
8WVYT0sxrgzseDK3DQ4LklKnZtY.+jM3KrYMOOmAGGMbKthlVx.9hF8EZpYC
YBYiYvI.+TxF7EQZ7rg7zpM1rg7fxFWaDsoYKSp5cIjHlQoM0Rq3xPPjKbhP
yJRx1xGrOAzPklwHsYFpU55g6V39oCUUmyjhVd+2WlHez+a.jgddqB
-----------end_max5_patcher-----------
tap commented 8 years ago

Question 1: if our list exceeds 32K will the rest of Max perform robustly?

Currently zl limits to 32K but are there assumptions lurking in other parts of the message-passing pipeline?

tap commented 8 years ago

Question 2: how are we handling thread-safety?

Imagine a bang received from a metro (scheduler thread) while the list is compiled from the main thread.

Question 2a: how do we construct a good unit-test for this scenario?

tap commented 7 years ago

unit test writing is all that remains, which is a separate project