added bubblesort.fleet in contrib
[fleet.git] / demo.fleet
index 85a2380..4ca21c5 100644 (file)
@@ -1,38 +1,12 @@
 #include "demo.ships"
 
-// NOTE: "accept" is a synonym for "move" it is less confusing in the case
-//       of inboxes, but is otherwise identical
-
-//////////////////////////////////////////////////////////////////////////////
-// The following three instructions simply produce one hundred "3"s
-// and put them into fifo "a".  Ignore the switch-fabric clogging
-// issue here; this is just setup for the rest of the code.
-
-                 3                -> helper.in
-            copy helper.out  -[10]-> source.in
-         discard helper.out       -> ()
-
-
-//////////////////////////////////////////////////////////////////////////////
-// set up a counting move of 10 items from source.out to dest.in, but require
-// flow control tokens (10 items is too many to send at once)
-
- triggered move  source.out -[10]-> dest.in
-
-
-//////////////////////////////////////////////////////////////////////////////
-// The next instruction tears down the "default" standing move on dest.in
-// and uses the resulting tokens to prime source.out's pump.  Once that
-// has been kicked off, any subsequent incoming items will generate tokens
-// which are sent back to the source outbox
-
-          nop+ack dest.in     -[3]-> source.out
-       accept+ack dest.in     -[7]-> source.out
-       accept     dest.in     -[3]-> source.out
-          nop+ack dest.in         -> fetch.release    // then release the fetch
-           accept dest.in     -[*]-> ()               // and return the fabric to normal
-
-{ tokensource.out -> halt.in }    -> fetch.codebag    // termination codebag
-
+3 -> adder1.a
+3 -> adder1.b
+adder1.out -> adder1.a ; accept adder1.a->()
+3 -> adder1.b
+adder1.out -> debug.data
+accept debug.data -> ()
+
+//4 -> debug.data