typelevel / typelevel/cats-effect

Implement platform-specialized `Queue`s for ScalaJS

Open
#2,889 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
2.2k
Forks
576
Avg merge
2d 11h
Merged PRs (30d)
18

Description

This is probably super-easy because you just don't have to worry about concurrency at all. Given an Async[F], you can do a stupid-simple UnsafeBounded and UnsafeUnbounded from #2885 that should run faster on JavaScript than the JVM versions (which have to guard a lot of complex multi-threaded cases).

The main problem is that we probably shouldn't do this until we have benchmarking infrastructure for ScalaJS. This is unquestionably worth doing in and of itself.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the UnsafeBounded and UnsafeUnbounded work referenced in #2885 and the repository's ScalaJS support. Establish benchmarking infrastructure for ScalaJS first, then verify that platform-specialized queues can be compared against the JVM versions and that the benchmarks show the intended improvement.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.