coot

Results 296 comments of coot

We discovered: ``` DiffusionErrored (ExceptionInLinkedThread "ThreadId 34" : hPutChar: resource vanished (Broken pipe) ``` which indicates that there's something wrong with the logging system.

Could you check with the current cabal's master branch?

@Mistuke we're discussing this internally in IOG, we might indeed find time to work on this.

Not reproduced on MacOS.

* [x] checked with `build-with-chap.sh` in `ouroboros-network`

* [x] checked with `build-with-chap.sh` in `ouroboros-network`

`IOSim` is essentially a free monad, [one of its](https://github.com/input-output-hk/io-sim/blob/main/io-sim/src/Control/Monad/IOSim/Types.hs#L160) operations allows to run `ST` actions, that would fit into `PrimBase`, but how would you embed all the other actions into...

We could just implement `keepAlive`, although it's non-trivial. It would require implementing `schedule` function which can halt and resume: ```hs class MonadKeepAlive m where keepAlive :: a -> m r...

Hmm, another idea would be to implement `keepAlive` using `touch`. For it we'd need to push a new kind of frame to the `ControlStack`.

I'm not sure if it has the correct semantics with regards to exceptions (or that it works correctly), but here's a proof of concept: https://github.com/input-output-hk/io-sim/compare/coot/keepAlive