8000 Abort: remove usage of erased Tags by hearnadam · Pull Request #1333 · getkyo/kyo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Abort: remove usage of erased Tags #1333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Abort: remove usage of erased Tags #1333

wants to merge 2 commits into from

Conversation

hearnadam
Copy link
Collaborator
8000

Related to #1247

Problem

Erased tags are leftover from earlier limitations with splicing and subtype checking of tags.

Solution

Require tag evidences in all Abort methods.

Notes

  • I think we should consider making less arguments/methods inline in Abort. Perhaps just the most common cases need to be inline. This will help prevent large bytecode sizes.
  • I moved Frame to the first implicit for consistency where possible, but we can followup for the rest.

Copy link
Collaborator
@steinybot steinybot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM although AbortCombinatorsTest.abort.forAbort.mapAbort.should map single Abort seems to be failing with:

[info]     - should map single Abort *** FAILED *** (8 milliseconds)
[info]       kyo.bug$KyoBugException: BUG Unexpected pending effect while handling scala.Any: Kyo(kyo.Abort[-(scala.Boolean | scala.Int | java.lang.String)], Input(Failure(failure)), AbortCombinatorsTest.scala:566:48, assert(effect1Mapped.result) Please open an issue 🥹 https://github.com/getkyo/kyo/issues
[info]       at kyo.bug$KyoBugException$.apply(data.scala:14)
[info]       at kyo.bug$.apply(data.scala:26)
[info]       at kyo.kernel$package$.failTag(kernel.scala:36)
[info]       at kyo.kernel.Pending$package$$less$.inline$failTag$i1(Pending.scala:20)
[info]       at kyo.AbortCombinatorsTest.evalLoop$65(AbortCombinatorsTest.scala:74)
[info]       at  assert(effect1Mapped.result.eval @ kyo.AbortCombinatorsTest.?(AbortCombinatorsTest.scala:566)
[info]       at kyo.AbortCombinatorsTest.$init$$$anonfun$2$$anonfun$14$$anonfun$2$$anonfun$1(AbortCombinatorsTest.scala:566)
[info]       at org.scalatest.freespec.AsyncFreeSpecLike.transformToOutcomeParam$1(AsyncFreeSpecLike.scala:148)
[info]       at org.scalatest.freespec.AsyncFreeSpecLike.registerTestToRun$$anonfun$1(AsyncFreeSpecLike.scala:149)
[info]       at org.scalatest.AsyncTestSuite.transformToOutcome$$anonfun$1(AsyncTestSuite.scala:240)
[info]       ...

8000
@ahoy-jon ahoy-jon marked this pull request as draft July 8, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0