ruby / ruby/rbs

[Epic] Pure C API

Open
#2,133 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
2.2k
Forks
256
Avg merge
6d 17h
Merged PRs (30d)
37

Description

Shopify is actively working on decoupling the RBS parser from its Ruby bindings, in order to expose a new pure C API.

This API will be more compatible (e.g. it can integrate into JRuby, Truffle, Sorbet, etc.), and will allow for multi-threaded RBS parsing (since it won't be blocked by Ruby's GVL).

PR list

This is still a work-in-progress, but this list will be updated to list all PRs that are ready to review, in the order that they should be merged.

  1. #2098
  2. #2102
  3. #2128
  4. #2131
  5. #2132
  6. #2175
  7. #2221

CC @Morriar, @soutaro

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 unchecked PRs #2175 and #2221 in the listed merge order, alongside the completed PRs for context. The epic is done when the RBS parser is decoupled from its Ruby bindings and the pure C API supports the stated compatibility and multithreaded parsing goals.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, ruby
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.