match from waiting producer when possible. #4738
match from waiting producer when possible. #4738glycerine wants to merge 1 commit intoponylang:mainfrom
Conversation
|
Also here is my own version from scratch. comments welcome. (update), NOW OLD/IGNORE: (update), NEW/IMPROVED: |
|
The formatting standard is 2 spaces. Please revert the last commit. See https://github.com/ponylang/ponyc/blob/main/STYLE_GUIDE.md |
57de8bf to
587ebc6
Compare
noted. corrected. |
|
the producer-consumer solution here is still buggy. I wrote a little assertion file to test my solution (passed) and this solution (did not pass, at least 2 bugs detected). The specific failures can be studied on this branch, if anyone wants to spend time on it: Big picture, I would just suggest replacing it with my re-worked solution. If that is acceptable, I can prepare a minimal version of it; it is here: https://github.com/glycerine/ponyc/blob/bench/examples/producer-consumer/fifo.pony It not-- no harm, no foul. The assertion file is here https://github.com/glycerine/ponyc/blob/still_borked_prodcons/examples/producer-consumer/assert.pony |
|
I went ahead and put my rewrite here. |
code fix: match from waiting producer when possible. prevents premature termination when producers are waiting readme: Define the problem exactly. Give some historical background about this important topic. readme: Add questions and give a problem set with basic, medium, and advance challenge levels.
587ebc6 to
7fecc3c
Compare
|
closing in favor of iterating on #4740. |
prevents premature termination when producers are waiting