Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor message-passing logic into pkl-core #640

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

HT154
Copy link
Contributor

@HT154 HT154 commented Sep 9, 2024

This is preparatory work for SPICE-0009. It is being contributed in a separate pull request to ease review.

The Message, Message(En|De)coder, and MessageTransport types have been ported to Java and moved to a new org.pkl.core.messaging package.

@HT154 HT154 force-pushed the refactor-messaging-into-core branch 2 times, most recently from 9a66edc to 12c5461 Compare September 9, 2024 05:19
} else {
val in1 = PipedInputStream()
val out1 = PipedOutputStream(in1)
val in2 = PipedInputStream()
val out2 = PipedOutputStream(in2)
MessageTransports.stream(in1, out2) to MessageTransports.stream(in2, out1)
Pair.of(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is using org.pkl.core.util.Pair instead of Kotlin's Pair now that it's implemented in Java since the API's similar enough to work as a drop-in. Let me know if there's something different I should do!

@HT154 HT154 force-pushed the refactor-messaging-into-core branch 2 times, most recently from bf521a3 to db5e090 Compare September 9, 2024 18:32
This is preparatory work for [SPICE-0009](apple/pkl-evolution#10).
It is being contributed in a separate pull request to ease review.

The Message, Message(En|De)coder, and MessageTransport types have been ported to Java and moved to a new `org.pkl.core.messaging` package.
@HT154 HT154 force-pushed the refactor-messaging-into-core branch 6 times, most recently from 25b7e66 to 33ffac8 Compare September 10, 2024 20:04
@HT154 HT154 force-pushed the refactor-messaging-into-core branch from 33ffac8 to 2ea97a1 Compare September 17, 2024 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant