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

Scala Native support #397

Merged
merged 6 commits into from
Jan 29, 2024
Merged

Scala Native support #397

merged 6 commits into from
Jan 29, 2024

Conversation

pablf
Copy link
Member

@pablf pablf commented Jan 28, 2024

Support for Scala Native. There seem to be a few bugs:

  • Scala Native bugs:
  1. start() of a ProcessBuilder do not throw exceptions. It seems to create an "empty" process. We can't do anything about this because it is impossible to differentiate a malformed empty process from a real process that seems empty.
  2. A script get executed only when using bash. There is a workaround for this.
  • Scala Native or ZIO bug
    Sometimes, when using ZStreams as standard input, it's impossible to read from the standard output of a process. It's fine when using a Java InputStream instead. I don't know if it is the Process that blocks standard output or if it's the ZStream that is not sending anything. After closing the standard input, nothing has been sent. It doesn't work either when a ZStream is transformed into an InputStream. I don't know the cause of this bug.

So, as long as non-existent commands are not executed and an InputStream is used instead of ZStreams when there are problems, the rest is completely functional.
The first two bugs should be easy to solve within Scala Native.

/claim #4

@pablf pablf requested a review from a team as a code owner January 28, 2024 00:20
@algora-pbc algora-pbc bot mentioned this pull request Jan 28, 2024
@jdegoes jdegoes merged commit be0a43b into zio:series/2.x Jan 29, 2024
15 checks passed
@pablf pablf deleted the native-support branch February 16, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants