[Swift-commit] r7895 - in SwiftApps/tryswift: . scripts
wilde at ci.uchicago.edu
wilde at ci.uchicago.edu
Sun Jun 1 23:36:36 CDT 2014
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 @@
<body>
<h2>Welcome to Try Swift!</h2>
<p>
- 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".
+<pre>
+ 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
+</pre>
</p>
- <p>
- If you would like to learn Swift, select an example script above to learn more.
- <p>
-
</body>
</html>
Modified: SwiftApps/tryswift/scripts/001-introduction.swift
===================================================================
--- SwiftApps/tryswift/scripts/001-introduction.swift 2014-05-31 20:14:47 UTC (rev 7894)
+++ SwiftApps/tryswift/scripts/001-introduction.swift 2014-06-02 04:36:36 UTC (rev 7895)
@@ -1,26 +1,27 @@
/*
+ This web interface lets you learn Swift from your browser - nothing to install.
- This "Try Swift" 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.
- TrySwift gives you a few built-in "apps" to run, and executes on a set of virtual machines.
+ - 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!)
- Here's how:
+ The example scripts are:
- - select the examples from the drop-down menu
- - click [Explain] to read some background info on teh example
- - click [Run] to run your code
- -
+ 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
- There are 4 other example scripts you may choose from:
+ To test your own script, enter some Swift code below, or in any other window
- Hello World - Gives the basic syntax for running an application
- Foreach - Introduces the foreach statement to run multiple apps at once
- Multiple apps - Show dependencies between multiple applications
- Multi-stage - Example of a larger multi-stage workflow
+ 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).
- To run your own script, enter the code below, or in any other Example window
-
+ The Swift language is explained in the Swift User Guide - see http://swift-lang.org/docs
*/
+tracef("Hello, World! This is my %s code!\n","Swift");
More information about the Swift-commit
mailing list