Coder Social home page Coder Social logo

comm's Introduction

comm

Primitives for inter-thread communication. See the documentation for a list of features provided by this crate.

Documentation

Comparison with the std::sync implementation

_ std::sync comm
Restricted by stability guarantees 1
Users can use their own channels with Select
Select has a safe interface
Select can poll all channels in a vector without borrowing the vector
Select can be used concurrently from multiple threads
Select will be available in 1.0
Contains hot, experimental channels
Extensively tested and optimized
Web-Scale 2

1Stability as a Deliverable
2Uses the epoll design.

In general: Channels in Rust don't need and don't have special compiler support. Therefore, channels in the official distribution have all the restrictions that come with the stdlib without getting any benefits (unlike Go channels which are tightly integrated with the language.)

Usage

To use comm, first add this to your Cargo.toml:

[dependencies.comm]
git = "https://github.com/mahkoh/comm"

comm is currently not on Crates.io.

Then add this to your crate root:

extern crate comm;

Bugs

There are some tests but, given the nature of multi-threaded code, some bugs might only show up in production.

License

MIT

comm's People

Contributors

mahkoh avatar marcusklaas avatar reem avatar pfpacket avatar c0b avatar lame-nickname avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.