%%%%% Declarative Concurrency %%%%% % Demonstration done at FLOPS 2006 % Author: Peter Van Roy % Declarative concurrency in Oz using % producer/consumer example. % See talk and book for more explanation. % Book: "Concepts, Techniques, and Models of Computer % Programming", chapter 4, MIT Press, 2004. % Open browser window {Browse 1} %%%%% 1. Eager version % Concurrency makes results incremental % Note: both Ints and Sum are tail-recursive! declare fun {Ints N Max} if N