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

The pure asynchronous runtime for Scala

Results 321 cats-effect issues
Sort by recently updated
recently updated
newest added
trafficstars

Someone asked in Discord if there is a way to ask the CE runtime how many CPUs/compute threads it has access to, so that they can set parallelism factors appropriately....

Linked to: https://github.com/typelevel/cats-effect/issues/4314 This PR implements metrics tracking for read and write operations in the Poller class for the EpollSystem. It provides basic metrics reporting such as total submitted, succeeded,...

Linked to: https://github.com/typelevel/cats-effect/issues/4314 This PR implements metrics tracking for read and write operations in the Poller class for the KqueueSystem. It provides basic metrics reporting such as total submitted, succeeded,...

Somewhat of a follow up from #4201, though this has been a problem for a long time. Basically all of the `IOApp`s are very similar (especially JVM and Native), with...

In #4201 there were multiple `stackalloc[Type]` calls which needed to be replaced by something like `stackalloc[Byte](explicitSize).asInstanceOf[Ptr[Type]]` (because otherwise they caused segfaults). However not _all_ of them were replaced. We should...

Description: https://github.com/scala-native/scala-native/issues/4288#issuecomment-2780673578 tl;dr: I didn't find explicit scala-native documentation about multithreaded use of arrays. The generated LLVM bitcode seems to contain non-atomic `load`s when reading length of elements. I think...

Instead of wrapping `AtomicRef` we can directly operate on a `var` field using `load`s/`store`s with specific memory orderings.

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...

- Replace `@volatile` with loads/stores with precise memory orderings - Introduce padding via `@align` to avoid false sharing

- Replace `TrieMap` with a custom `LongMap`-like data structure. We can take inspiration from `TimerHeap`, where on cancelation we remove an entry if on the owning thread, otherwise use some...