Skip to content

Latest commit

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

###Chekhov makes actor/message concurrency in Rust easy.

Chekhov is a concurrency framework for Rust focused on simplicity and ease of use. With Chekhov, you can create actors which communicate by message- passing using very similar syntax to writing functions. Chekhov uses a set of macros to create actors and handle threading, so you don't have to. You just define the behavior of actors and compose them together.

Chkehov is highly unstable and incomplete, do not try use it yet. It will eat your laundry and set your house on fire. Pull requests welcome. There's no documentation yet, but here's an example:

#[macro_use]externcrate chekhov;use std::fmt::Display;use std::io;use chekhov::{Actor,ActorResult}fnread_input(next:&Actor<String>) -> ActorResult{letmut buffer = String::new();
try!(io::stdin().read_line(&mut buffer));
next.cue(buffer)}fnmain(){let printer = actor!(|msg:String| -> ActorResult{ println("{}", msg);Ok(())});let reader = actor_loop!(read_input, printer.stage());
chekhov::from_the_top(vec![&printer,&reader]).ok();}

Rust version compatibility

Chekhov is compatible with Rust 1.0.0-beta and up.

Licensing

Chekhov is licensed under the GNU General Public License, version 3.0 or higher, at your choice, with the Classpath Library Linking Exception.

About

very simple actor/message concurrency in Rust

Resources

Stars

26 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages