[m-dev.] Proposal for a new parallel conjunction operator.

Paul Bone pbone at csse.unimelb.edu.au
Thu Apr 23 15:12:47 AEST 2009


I'd like to propose a new conjunction operator.  We already have the following:

    ',' (default) sequential conjunction.
    '&' parallel conjunction (where available).

I'd like to add another operator that will execute code in parallel if there
are enough mercury engines available (in low-level C grades) and otherwise fall
back to sequential conjunction.  I havn't thought much about which symbol to
use, something like '&&' or '&,'.  This will provide a granuality control
method for recursive and in-particular divide and conqure algorithms.

This will also be used internally by the automatic parallelism work I'm doing
but it will be useful for me to create programs that use it explicity for
testing and benchmarking.  Users may also find it useful.

Does anyone see a problem with this or have any suggestions?

Thanks.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.mercurylang.org/archives/developers/attachments/20090423/96f20b60/attachment.sig>


More information about the developers mailing list