From wilde at ci.uchicago.edu Sun Jun 1 23:36:36 2014 From: wilde at ci.uchicago.edu (wilde at ci.uchicago.edu) Date: Sun, 1 Jun 2014 23:36:36 -0500 (CDT) Subject: [Swift-commit] r7895 - in SwiftApps/tryswift: . scripts Message-ID: <20140602043636.507A99D7B2@svn.ci.uchicago.edu> Author: wilde Date: 2014-06-01 23:36:36 -0500 (Sun, 01 Jun 2014) New Revision: 7895 Added: SwiftApps/tryswift/hosts Modified: SwiftApps/tryswift/scripts/001-introduction.html SwiftApps/tryswift/scripts/001-introduction.swift Log: Edit intro swift and html. Add hosts file for all-host push (to be developed) Added: SwiftApps/tryswift/hosts =================================================================== --- SwiftApps/tryswift/hosts (rev 0) +++ SwiftApps/tryswift/hosts 2014-06-02 04:36:36 UTC (rev 7895) @@ -0,0 +1,14 @@ +swiftvm1.ci.uchicago.edu +swiftvm2.ci.uchicago.edu +swiftvm3.ci.uchicago.edu +swiftvm4.ci.uchicago.edu +ec2-23-20-13-105.compute-1.amazonaws.com +ec2-54-87-184-8.compute-1.amazonaws.com +ec2-54-82-124-154.compute-1.amazonaws.com +ec2-54-221-180-8.compute-1.amazonaws.com +ec2-54-82-219-10.compute-1.amazonaws.com +ec2-54-221-179-105.compute-1.amazonaws.com +ec2-54-82-146-148.compute-1.amazonaws.com +ec2-54-82-18-151.compute-1.amazonaws.com +ec2-54-87-83-42.compute-1.amazonaws.com +ec2-54-237-161-160.compute-1.amazonaws.com Modified: SwiftApps/tryswift/scripts/001-introduction.html =================================================================== --- SwiftApps/tryswift/scripts/001-introduction.html 2014-05-31 20:14:47 UTC (rev 7894) +++ SwiftApps/tryswift/scripts/001-introduction.html 2014-06-02 04:36:36 UTC (rev 7895) @@ -6,14 +6,33 @@
- If you are an existing Swift user, and would like to try testing your code, - please enter your code in the editor on the right and click "execute". +
+ This web interface lets you learn Swift from your browser - nothing to install. + + You can run the built-in example scripts, change them, and run your own scripts. + + - select a code example from the drop-down "Example" menu above + - click [Explain] to view an explanation of the example + - click [Execute] (below) to run the example + - click [File outputs] to view the output files produced by your script + - click [Reset] to restore the example to its initial state (LOOSES YOUR CHANGES!) + + The example scripts are: + + Hello World - Shows the basic syntax for running an app to produce a file + Foreach - Introduces the foreach statement to run multiple apps in parallel + Multiple apps - Show dependencies between apps to specify a workflow + Multi-stage - Example of a larger multi-stage workflow + + To test your own script, enter some Swift code below, or in any other window + + TrySwift gives you a few built-in "apps" to run, as needed by each example. + It executes on a pool of virtual machines, one VM per Swift run (at the moment). + + The Swift language is explained in the Swift User Guide - see http://swift-lang.org/docs +-
- If you would like to learn Swift, select an example script above to learn more. -
-