[Swift-commit] r8388 - in www/Swift-T: . downloads

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Thu Mar 5 13:59:49 CST 2015


Author: wozniak
Date: 2015-03-05 13:59:49 -0600 (Thu, 05 Mar 2015)
New Revision: 8388

Modified:
   www/Swift-T/downloads/gallery.tar.gz
   www/Swift-T/gallery.html
Log:
Updates


Modified: www/Swift-T/downloads/gallery.tar.gz
===================================================================
(Binary files differ)

Modified: www/Swift-T/gallery.html
===================================================================
--- www/Swift-T/gallery.html	2015-03-05 19:47:27 UTC (rev 8387)
+++ www/Swift-T/gallery.html	2015-03-05 19:59:49 UTC (rev 8388)
@@ -998,6 +998,7 @@
 <div class="content">
 <pre><code>import io;
 
+ at dispatch=WORKER
 (int o) add(int i, int j) "turbine" "0.0"
 [
 """
@@ -1029,12 +1030,16 @@
 tcl: o=7
 o is: 7</code></pre>
 </div></div>
+<div class="paragraph"><p>The <code>@dispatch=WORKER</code> annotation allows <code>add()</code> to run on any worker
+process in the run.  Multiple <code>add()</code> s, or other functions, can run
+concurrently.  Swift automatically maintains ordering by managing data
+dependencies from function outputs to inputs.</p></div>
 </div>
 </div>
 <div class="sect1">
 <h2 id="_static_executables">8. Static executables</h2>
 <div class="sectionbody">
-<div class="paragraph"><p>This section demonstrates a complete, concrete example of the
+<div class="paragraph"><p>This section demonstrates a complete, concrete example of the optional
 <a href="guide.html#mkstatic">static executable</a> feature.  First, compose a
 Swift script.</p></div>
 <div class="paragraph"><p><strong>File:</strong> <code>static-exec/hello.swift</code></p></div>
@@ -1080,7 +1085,7 @@
 <div id="footnotes"><hr /></div>
 <div id="footer">
 <div id="footer-text">
-Last updated 2015-03-05 13:46:35 CST
+Last updated 2015-03-05 13:57:37 CST
 </div>
 </div>
 </body>




More information about the Swift-commit mailing list