Files
pond/devlog/2019-12-14.md
2019-12-14 18:31:45 +01:00

32 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 2019-12-14
Timebox: 2 Hours
## Goals
I want to have a good abstraction for Carp inside the `OSProcess`
working. I want to be able to push input into the process and read
it out again, know the status of the process, etc.
## Potential Roadblocks
Because documentation on `OSProcess` is basically non-existant,
Ill likely spend a lot of time hunting down the right API; I just
hope that it even exists.
## Review
Time worked: 1h30m
I got the basics of reading from Carp and writing to Carp working.
`OSProcess` turned out not to be what I need, instead Im now using
a library called `OSSubProcess` that has a way more powerful API and
better documentation.
Sadly `OSSubProcess` requires me to close the `stdin` stream after the
first chunk of writing to it. Im not sure whether I can reopen the
stream, it seems not to work. I filed [an issue on Github](https://github.com/pharo-contributions/OSSubprocess/issues/51),
but I suspect that this is actually not really fixable/not a use
case that they want to support. We will see. I gave up getting more
done for today.