PFL Examples

LA home
Computing
FP
 PFL
  Syntax
  Examples
  Interpreter
  Examples

Also see:
  λ ex'
  • [buffer] -- bounded buffer process
  • [factorial] -- in parallel ||
  • [server] -- and clients
  • [merge sort]
  • [Prime numbers] -- || sieve
  • [Hamming numbers] -- by || processes
  • [pass actions] -- etc. down channels
  • Deadlock
    let ch1=chan, ch2=chan
    
    in ch1!1 -> ch2!2 -> stop ||
       ch2?x -> ch1?y -> output!x+y -> stop
    
    { Deadlock. }
    
    -- one process wants to interact on ch1 and then (->) on ch2, the other one v.v..--(
www

free:
Linux operating-sys
OpenOffice office-suite, ver. 3.1+
The GIMP ~photoshop
Firefox web browser
FlashBlock flash on/off

pfl...
|   choice
|| parallel
-> sequence
? input act
! output act
chan new channel

© L. Allison   http://www.allisons.org/ll/   (or as otherwise indicated),
Created with "vi (Linux + Solaris)",  charset=iso-8859-1,  fetched Friday, 30-Jul-2010 14:21:06 EST.