Project

General

Profile

Actions

Misc #21299

closed

Proposal: Remove `continuation` gem

Added by ianks (Ian Ker-Seymer) 5 days ago. Updated 5 days ago.

Status:
Closed
Assignee:
-
[ruby-core:121792]

Description

Continuations have been obsolete since Ruby 2.2 but still add complexity to the core codebase. I propose removing all continuation support from Ruby Core.

Reasons

Simplifies fiber code

  • Current fiber code in cont.c is complicated by shared logic with continuations
  • Removing continuations will simplify stack management, context switching, and reduce edge cases
  • Ultimately leading to: cleaner code, easier maintenance, possible performance improvements

Low compatibility risk

Proposed steps

  1. Remove the continuation gem from default gems.
  2. Delete all continuation-specific code in cont.c.
  3. Add a stub gem that raises an exception if continuations are used.
  4. Optionally document alternative approaches for users who still need this feature.

Related issues 1 (1 open0 closed)

Is duplicate of Ruby - Feature #10548: remove callcc (Callcc is now going obsoleted. Please use Fiber.)OpenActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like1