Hi Konstantina,

a more general version of collecting finish / offers is proposed, called 'accumulator variables', but this is not yet fully implemented. Collecting finish should work fine in X10 2.3.

The Reducible interface is in x10.lang. It includes a generic SumReducer struct type that you could use instead of the Double-specific one I posted.

Can you post the code that is causing the error, along with the compile error that you receive?

Cheers,

Josh

------------------------------------------
Josh Milthorpe

Postdoctoral Fellow, Research School of Computer Science
Australian National University, Building 108
Canberra, ACT 0200
Australia
Phone:  + 61 (0)2 61254478
Mobile: + 61 (0)407 940743
E-mail: josh.miltho...@anu.edu.au
Web:    http://cs.anu.edu.au/~Josh.Milthorpe/

On 29/06/13 01:31, Konstantina Panagiotopoulou wrote:
Hello again,

I tried to restructure my code according to the example..
The problem is that I get errors with the SumReducer struct (the errors point to the java generated code, and can't really make sense)
I checked the specification for v2.3. and found this:

offers. The offers concept was experimental in 2.1, but was determined inadequate. It has not been removed from the compiler yet, but it will be soon. In the meantime, traces of it are still visible in the grammar. They should not be
used and can safely be ignored

Also I cannot track the Reducible interface in the API.

Is there any other more explicit way to reduce values from different places?

Thanks again,
Konstantina


2013/6/27 Konstantina Panagiotopoulou <kwno...@hotmail.com <mailto:kwno...@hotmail.com>>

    Hello again,

    I tried to restructure my code according to the example..
    The problem is that I get errors with the SumReducer struct  (the
    errors point to the java generated code, and can't really make sense)
    I checked the specification for v2.3. and found this:

    offers. The offers concept was experimental in 2.1, but was
    determined inadequate. It has not been removed from the compiler
    yet, but it will be soon. In
    the meantime, traces of it are still visible in the grammar. They
    should not be
    used and can safely be ignored

    Also I cannot track the Reducible interface in the API.

    Is there any other more explicit way to reduce values from
    different places?

    Thanks again,
    Konstantina


    2013/6/22 Vijay Saraswat <vi...@saraswat.org
    <mailto:vi...@saraswat.org>>

        On 6/21/13 9:21 PM, Konstantina Panagiotopoulou wrote:

            Thanks a lot for the useful feedback.
            Although, I did not expect I would need such low level
            tuning. Looks a lot like MPI.

        X10 is a procedural programming language for distributed
        programming where the notions of concurrency and distribution
        are made explicit.

        It is closer to MPI than, say, a more limited, declarative
        language with implicit concurrency, in which the compiler
        determines run-time concurrency and distribution (e.g. ZPL).

        We are very interested in such (declarative) languages as
        well, and building them on top of X10, in the long term.





------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to