]> git.lizzy.rs Git - rust.git/commit
Remove the pipes compiler
authorBrian Anderson <banderson@mozilla.com>
Wed, 31 Jul 2013 23:10:35 +0000 (16:10 -0700)
committerBrian Anderson <banderson@mozilla.com>
Thu, 1 Aug 2013 19:17:32 +0000 (12:17 -0700)
commit4b3e766ac6a6f89430b65a5bc2f55bb29f6290ab
tree2f02d8a7f30c9998912d9278eefbc8cf3ec4ee29
parent7daea7c9c107238ba7bfc2e9f0e8955d42ad71ed
Remove the pipes compiler

The pipes compiler produced data types that encoded efficient and safe
bounded message passing protocols between two endpoints. It was also
capable of producing unbounded protocols.

It was useful research but was arguably done before its proper time.

I am removing it for the following reasons:

* In practice we used it only for producing the `oneshot` and `stream`
  unbounded protocols and all communication in Rust use those.
* The interface between the proto! macro and the standard library
  has a large surface area and was difficult to maintain through
  language and library changes.
* It is now written in an old dialect of Rust and generates code
  which would likely be considered non-idiomatic.
* Both the compiler and the runtime are difficult to understand,
  and likewise the relationship between the generated code and
  the library is hard to understand. Debugging is difficult.
* The new scheduler implements `stream` and `oneshot` by hand
  in a way that will be significantly easier to maintain.

This shouldn't be taken as an indication that 'channel protocols'
for Rust are not worth pursuing again in the future.
23 files changed:
src/libsyntax/ext/base.rs
src/libsyntax/ext/pipes/ast_builder.rs [deleted file]
src/libsyntax/ext/pipes/check.rs [deleted file]
src/libsyntax/ext/pipes/liveness.rs [deleted file]
src/libsyntax/ext/pipes/mod.rs [deleted file]
src/libsyntax/ext/pipes/parse_proto.rs [deleted file]
src/libsyntax/ext/pipes/pipec.rs [deleted file]
src/libsyntax/ext/pipes/proto.rs [deleted file]
src/libsyntax/ext/quote.rs
src/libsyntax/syntax.rs
src/test/bench/msgsend-ring-pipes.rs [deleted file]
src/test/bench/pingpong.rs [deleted file]
src/test/run-pass/issue-2834.rs [deleted file]
src/test/run-pass/issue-2930.rs [deleted file]
src/test/run-pass/pipe-bank-proto.rs [deleted file]
src/test/run-pass/pipe-detect-term.rs [deleted file]
src/test/run-pass/pipe-peek.rs [deleted file]
src/test/run-pass/pipe-pingpong-bounded.rs [deleted file]
src/test/run-pass/pipe-pingpong-proto.rs [deleted file]
src/test/run-pass/pipe-presentation-examples.rs [deleted file]
src/test/run-pass/pipe-select-macro.rs [deleted file]
src/test/run-pass/pipe-select.rs [deleted file]
src/test/run-pass/pipe-sleep.rs [deleted file]