Repository navigation
hy-emit: add SPSC capability pipe prelude and emit lowering (#4464) - #4467
Open
SuperPiIot wants to merge 1 commit into
Open
SuperPiIot wants to merge 1 commit into
SuperPiIot wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4464
Summary
PIPE_PRELUDEinhy-emitprovidinghy_send_cap[t any](.send,.close),hy_recv_cap[t any](.recv,.drain), andhy_pipe[t any](cap ...int)when pipe capabilities are used, while omitting"hy"from emitted Go imports.hy.pipe[T](...)andhy.new_pipe[T](...)calls inexpr.rstohy_pipe[...](...), maphy.send_cap/hy.recv_capGo type names andBindingKind::Chanprovenance inlib.rs/stmt.rs(forfor r in rx,select, closures, and typedvarbindings).compiler/crates/hy-emit/tests/hy_pipe_capabilities_4464.rs(includinggo run -race) and ACCEPT corpus fixturetests/checker-corpus/hy-pipe-capabilities-accept.hy, updating corpus census surfaces (139 -> 140,ACCEPT 45 -> 46).Verification
cargo test -p hy-emit --test hy_pipe_capabilities_4464: 4 passed, 0 failed (includesgo run -race)cargo test -p hy-diag -p hy-syntax -p hy-check -p hy-emit: 3217 passed, 0 failedpython3 tools/corpus_harness.py --bin target/debug/hyb: verdict agreement 140/140 (tripwire: not fired)python3 tools/differential_loop.py --bin target/debug/hyb: accept-side (build+run) 48/48, reject-side (checker) 92/92 (FULL AGREEMENT)hyb build --race tests/checker-corpus/hy-pipe-capabilities-accept.hybuilt and exited 0 (3 9)python3 tools/check_corpus_census.py,check_guarantees.py,check_test_registration.py,check_conflict_markers.py,check_claims_links.py: OKSettlement Coords
0xf084cF0076F91AA48C2370F427C399dAA8C1f07F