Commits

Yaron Minsky  committed 85769e3

more work on examples

  • Participants
  • Parent commits 1a968bf

Comments (0)

Files changed (3)

File workshop/async/build_all.sh

     time_loop.$EXT \
     manifest.$EXT \
     pipe_manifest.$EXT \
+    count_lines.$EXT \
 

File workshop/async/pipe_manifest.ml

       Deferred.Queue.fold lineq ~init:sum ~f:(fun sum line ->
         file_size line
         >>= fun file_size ->
-        return (sum + file_size)))
+        return (sum + file_size)
+      ))
   in
   Reader.with_file manifest_filename ~f:read_file
 ;;

File workshop/part_II.org

  - Synchronous reasoning
  - Ability to sequence operations
  - Still cooperative (so one thread can block the world)
-* A basic example
+* Basic types
+** Execution model
+** Deferred
+** Monitor
+** Pipe
+* Simple Examples
+ - interactive
+ - [[file:async/manifest.ml][file:async/manifest.ml]]
+ - file:async/pipe_manifest.ml
+* Exercises: Async count_lines
+ - Convert count_lines to use Async
+ - Make sure to use =Command.async_basic= instead of =Command.basic=
+* Code walkthrough: Client/Server Hello World
+** Exercise
+ - Add a new RPC for requesting the time of day (using Time.now).
+* Code walkthrough: Message Broker