Merging results from parallel data processing?
Hello,
A programming interface is used by the Coccinelle software for parallel data processing.
https://gitlab.inria.fr/search?search=Parmap.parfold&nav_source=navbar&project_id=18465&group_id=10912&search_code=true&repository_ref=master
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/03a1af0a3316ddfc2b54d827b8b9627a841c85c9/enter.ml#L1283-1299
Corresponding results are concatenated so far.
I would appreciate if data can occasionally be combined by other algorithms.
I imagine that unique constraints can be taken better into account accordingly. Some information would be usable as key data on demand then, wouldn't it?
Regards,
Markus
Quoted 11 lines · Markus Elfring
Hello,
A programming interface is used by the Coccinelle software for parallel data processing.
https://gitlab.inria.fr/search?search=Parmap.parfold&nav_source=navbar&project_id=18465&group_id=10912&search_code=true&repository_ref=master
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/03a1af0a3316ddfc2b54d827b8b9627a841c85c9/enter.ml#L1283-1299Corresponding results are concatenated so far.
I would appreciate if data can occasionally be combined by other algorithms.I imagine that unique constraints can be taken better into account accordingly. Some information would be usable as key data on demand then, wouldn't it?
I don't know exactly what you are reffing to, but you can for example, concatenation the set of hash tables into a list of hash tables and then reprocess the data however you want. I don't think that Coccinelle can anticipate what structure the user will want. Making a list preserves all the information.
julia
Quoted 11 lines
Quoted 9 lines
A programming interface is used by the Coccinelle software for parallel data processing.
https://gitlab.inria.fr/search?search=Parmap.parfold&nav_source=navbar&project_id=18465&group_id=10912&search_code=true&repository_ref=master
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/03a1af0a3316ddfc2b54d827b8b9627a841c85c9/enter.ml#L1283-1299Corresponding results are concatenated so far.
I would appreciate if data can occasionally be combined by other algorithms.I imagine that unique constraints can be taken better into account accordingly. Some information would be usable as key data on demand then, wouldn't it?
I don't know exactly what you are reffing to,
???
Quoted 2 lines
but you can for example,
concatenation the set of hash tables into a list of hash tables
* Would you like to distinguish item concatenation better from the more advanced application of a merge algorithm?
* Where is the information presented and explained that such data structures would be involved here?
Quoted 3 lines
and then
reprocess the data however you want. I don't think that Coccinelle can anticipate what structure the user will want.
I hope that data processing requirements can be clarified accordingly.
Quoted 2 lines
Making a list preserves all
the information.
Will any other structures become more appropriate for data merging?
Regards,
Markus
Quoted 5 lines
Quoted 2 lines
* Would you like to distinguish item concatenation better from the more advanced application of a merge algorithm?
There is no more advanced applicationof the merge algorithm. There is only one merge algorithm. It does only one thing.
How do you think about to point the circumstances out under which this one would be applied?
Quoted 4 lines
Quoted 2 lines
* Where is the information presented and explained that such data structures would be involved here?
What data structures?
Would you become more interested in the clarification of corresponding case distinctions?
Quoted 3 lines
Quoted 1 line
I hope that data processing requirements can be clarified accordingly.
The requirements are whatever requirements you have.
Do you care for the ordering of generated data anyhow?
Regards,
Markus
Quoted 5 lines
Quoted 2 lines
How do you think about to point the circumstances out under which this one would be applied?
When the semantic patch requests it. Please see
tests/merge_vars.cocciormerco_vars_python.cocci
Thanks for another hint.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/03a1af0a3316ddfc2b54d827b8b9627a841c85c9/tests/merge_vars.cocci
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/03a1af0a3316ddfc2b54d827b8b9627a841c85c9/tests/merge_vars_python.cocci
Do you distinguish “merging” from data concatenation in such code?
Quoted 3 lines
Quoted 1 line
Would you become more interested in the clarification of corresponding case distinctions?
There are no case distinctions.
How will such a view evolve further according to the use case “parallel data processing”?
Quoted 3 lines
Quoted 1 line
Do you care for the ordering of generated data anyhow?
No.
I find this feedback strange.
Data users tend to prefer some information ordering, don't they?
Regards,
Markus
Quoted 10 lines · Markus Elfring
Quoted 5 lines
Quoted 2 lines
How do you think about to point the circumstances out under which this one would be applied?
When the semantic patch requests it. Please see
tests/merge_vars.cocciormerco_vars_python.cocciThanks for another hint.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/03a1af0a3316ddfc2b54d827b8b9627a841c85c9/tests/merge_vars.cocci
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/03a1af0a3316ddfc2b54d827b8b9627a841c85c9/tests/merge_vars_python.cocci
No idea what is the point of these links.
Quoted 1 line
Do you distinguish “merging” from data concatenation in such code?
No idea what this question means.
You can declare variable in OCaml or Python to be the result of concatenating the results from the different threads. There is nothing more to discuss about it.
It's true that the above tests are overly simplistic. Maybe tests/names.cocci would be a better example. But it doesn't have a python counterpart.
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Would you become more interested in the clarification of corresponding case distinctions?
There are no case distinctions.
How will such a view evolve further according to the use case “parallel data processing”?
No idea what this means.
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Do you care for the ordering of generated data anyhow?
No.
I find this feedback strange.
Data users tend to prefer some information ordering, don't they?
You look at the data and order it however you want. The user has no control over what files get handled by what tasks, so it doesn't make sense for Coccinelle to provide any ordering guarantees.
julia
Quoted 4 lines
Quoted 2 lines
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/03a1af0a3316ddfc2b54d827b8b9627a841c85c9/tests/merge_vars.cocci
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/03a1af0a3316ddfc2b54d827b8b9627a841c85c9/tests/merge_vars_python.cocciNo idea what is the point of these links.
You offered another bit of background information.
I find it still unclear how much these code examples can help with the desired clarification for parallel data processing.
They are not referenced by the SmPL manual so far.
Quoted 3 lines
Quoted 1 line
Do you distinguish “merging” from data concatenation in such code?
No idea what this question means.
???
Quoted 2 lines
You can declare variable in OCaml or Python to be the result of concatenating the results from the different threads.
Would an other algorithm than “concatenation” be occasionally preferred here?
Quoted 6 lines
There is nothing
more to discuss about it.It's true that the above tests are overly simplistic. Maybe
tests/names.cocciwould be a better example. But it doesn't have a python counterpart.
Will such information trigger further collateral evolution?
Quoted 3 lines
Quoted 1 line
How will such a view evolve further according to the use case “parallel data processing”?
No idea what this means.
???
Quoted 3 lines
Quoted 1 line
Data users tend to prefer some information ordering, don't they?
You look at the data and order it however you want.
Will additional development approaches be needed to achieve a preferred order?
Quoted 3 lines
The user has no
control over what files get handled by what tasks, so it doesn't make sense for Coccinelle to provide any ordering guarantees.
I came along further application requirements through the years. Data are usually processed by the involved computation units in a known way, aren't they?
Do you distinguish tasks from threads (or background processes) anyhow?
Regards,
Markus
Quoted 7 lines
You can declare variable in OCaml or Python to be the result of concatenating the results from the different threads. There is nothing more to discuss about it.
It's true that the above tests are overly simplistic. Maybe
tests/names.cocciwould be a better example. But it doesn't have a python counterpart.
How should users of the Coccinelle software get to know that such a special programming interface is supported according to parallel data processing anyhow?
Regards,
Markus
Quoted 8 lines
Quoted 3 lines
How should users of the Coccinelle software get to know that such a special programming interface is supported according to parallel data processing anyhow?
It seems that Thierry should have written some documentation for the manual when he implemented it. Since he did not, someone probably should. Perhaps all the effort you have put into complaining about it could have been used for that.
Are there any agreements needed for involved technical details before a better software documentation can be attempted?
Regards,
Markus
Quoted 4 lines
Quoted 2 lines
Are there any agreements needed for involved technical details before a better software documentation can be attempted?
No.
Will development views evolve further accordingly?
How many contributors can achieve more desirable adjustments also for the affected documentation?
Regards,
Markus
Quoted 6 lines · Markus Elfring
Quoted 4 lines
Quoted 2 lines
Are there any agreements needed for involved technical details before a better software documentation can be attempted?
No.
Will development views evolve further accordingly?
No/. I see no reason for the default behavior to change. It works fine, and Coccinelle has no more information about what the user wants.
julia
Quoted 7 lines
How many contributors can achieve more desirable adjustments also for the affected documentation?
Regards,
Markus
Quoted 2 lines
Quoted 1 line
Will development views evolve further accordingly?
No/. I see no reason for the default behavior to change.
Will further development concerns become more interesting also for this use case?
Quoted 1 line
It works fine,
Partly, yes.
Quoted 1 line
and Coccinelle has no more information about what the user wants.
Do you find the presented clarification approach improvable?
Regards,
Markus
Good day all,
Quoted 3 lines
Quoted 1 line
Will development views evolve further accordingly?
No/. I see no reason for the default behavior to change. It works fine, and Coccinelle has no more information about what the user wants.
https://boinc.berkeley.edu/forum_thread.php?id=15619&postid=117251
Thank you very much.
…
Quoted 2 lines
It's true that the above tests are overly simplistic. Maybe
tests/names.cocciwould be a better example.…
Under which circumstances will the chances grow to explain an information context like “merge” better (also according to the mentioned SmPL script)?
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/03a1af0a3316ddfc2b54d827b8b9627a841c85c9/tests/names.cocci#L25-31
https://en.wikipedia.org/wiki/Test_case_(software)#Typical_written_test_case_format
Regards,
Markus