cats-effect icon indicating copy to clipboard operation
cats-effect copied to clipboard

Change the `Example` app on Native

Open armanbilge opened this issue 7 months ago • 3 comments
trafficstars

We can probably make it more similar to the JVM one now.

But ... maybe we can just remove these "examples" and associated CI tests? AFAICT they were never really examples IMO, but rather a way to test that IOApp behaves correctly. I think they've been far superseded by the IOAppSuite.

armanbilge avatar Apr 04 '25 03:04 armanbilge

Yeah example is mostly the wrong term. I do want to keep them though because they essentially represent the fully end to end thing from a user's perspective. Or at the very least we should keep the JVM one since it tests an environment that we don't test in IOAppSuite (namely, unforked sbt).

djspiewak avatar Apr 04 '25 13:04 djspiewak

we can host the examples on Scala CLI?, We could update the Native one to match JVM for consistency, as @armanbilge suggested, with clear notes on constraints like (no multithreading). Then, beef up IOAppSuite to handle unforked sbt and Native testing, keeping examples as pure, interactive docs.

qxrein avatar Apr 04 '25 13:04 qxrein

Or at the very least we should keep the JVM one since it tests an environment that we don't test in IOAppSuite (namely, unforked sbt).

Good point, I forgot that. We should keep it.

armanbilge avatar Apr 04 '25 17:04 armanbilge