<div dir="ltr">Currently, schematically I would do something like this as<div><br></div><div>------------------</div><div><br></div><div>struct outdata {<br></div><div>    logfile l;</div><div>    returnfile r;</div><div>}<br>

</div><div><br></div><div>(outdata o) app ( a , b ,c ... ){</div><div>    run "-logfile" @filename(o.l) "-returnfile" @filename(o.r)</div><div>}</div><div><br></div><div>o = app(a,b,c)</div><div><br></div>

<div>int r = readData(o.r)</div><div><br></div><div>--------------</div><div><br></div><div>It wouldn't be as general as the options just suggested, but would one option be to have a meta-datatype like "intfile" "stringfile" "floatfile" and "booleanfile"</div>

<div>that automatically performs a readdata to extract a single value from a file and store it in a variable of that standard type?</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 17, 2013 at 12:43 PM, Mihael Hategan <span dir="ltr"><<a href="mailto:hategan@mcs.anl.gov" target="_blank">hategan@mcs.anl.gov</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, 2013-09-17 at 11:26 -0500, Yadu Nand wrote:<br>
> Hi Mihael,<br>
><br>
> If say the app has the following syntax :<br>
>            app (int ret_value) do_math (int x, int y) {<br>
>                  add x y stdout=ret_value;<br>
>            }<br>
><br>
>  Would this (hypothetical) syntax entirely avoid the overhead of writing<br>
> several small files as<br>
> we see in larger runs ?<br>
<br>
</div>Maybe. If you can re-direct stdout straight to memory (only some<br>
providers support this), then you could read the value without writing<br>
files on the client side.<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Swift-devel mailing list<br>
<a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
<a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
</div></div></blockquote></div><br></div>