[Swift-devel] Swift Question/Request

Yong Zhao yongzh at cs.uchicago.edu
Tue Apr 3 10:42:58 CDT 2007


Can you be more specific about why it can't figure out the number of
outputs correctly? The sequential order should already be defined in your
example as there is explicit data dependency.

Yong.

On Tue, 3 Apr 2007, Tiberiu Stef-Praun wrote:

> Sometimes i find myself in the position of wanting to do one step of
> the swift script only after the previous phase has finished. The case
> is the following (not really swift script):
>
> seq{
> file stageOneOutputs[] = processStageOne();
> file combine = combine(stageOneOutputs);
> }
>
> In my case the problem seems to be the fact that swift cannot dream up
> how many stageOneOutput files will exist (unless we extend the
> language -probably the input mapper which I use in this case- to
> support this feature), so it could decide to start the combine stage
> prematurely.
> Supposedly one solution is to create a dummy output file at the end of
> stage one, and pass it tot stage two.
>
> Any suggestions ?
>
> I'm thinking that having an example in the user guide would help others as well.
> Maybe we should have a "Patterns in Swift" document.
>
> Thanks
> Tibi
>
> --
> Tiberiu (Tibi) Stef-Praun, PhD
> Research Staff, Computation Institute
> 5640 S. Ellis Ave, #405
> University of Chicago
> http://www-unix.mcs.anl.gov/~tiberius/
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel
>



More information about the Swift-devel mailing list