[plt-scheme] [ANN] bzlib/thread.plt - adding erlang style programming in PLT

From: YC (yinso.chen at gmail.com)
Date: Sat Sep 12 20:12:10 EDT 2009

Hi all -

bzlib/thread provides additional concurrency constructs by building on top
of PLT Scheme's concurrency primitives to help simplify programming in
message passing style that Erlang has helped popularized.  It specifically
addresses multi-thread communications.  The following are the constructs:

   - receive/match - similar to Erlang; provides pattern-matching over
   thread-receive and an after clause.  In addition, also integrates with PLT's
   events so you can use it to synchronize custom events as well.
   - thread-call - use this to send and wait for the response from the
   target thread
   - thread-reply - use this in the target thread to respond back to the
   - send-exn-to - use this to send back exceptions to the sender
   - thread-cast - use this to thread-send in kill-safe manner
   - make-application - create a simple OTP like application, with call and
   cast pattern
   - app-call - wrapper over thread-call with app
   - app-cast - wrapper over thread-cast with app

To load - just require from planet: (require (planet bzlib/thread)).

You can find more details at
http://weblambda.blogspot.com/2009/09/erlang-style-programming-in-plt.html -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20090912/bdf897ae/attachment.html>

Posted on the users mailing list.