From: "k0kubun (Takashi Kokubun) via ruby-core" Date: 2025-02-06T11:56:00+00:00 Subject: [ruby-core:120891] [Ruby master Feature#21116] Extract RJIT as a third-party gem Issue #21116 has been reported by k0kubun (Takashi Kokubun). ---------------------------------------- Feature #21116: Extract RJIT as a third-party gem https://bugs.ruby-lang.org/issues/21116 * Author: k0kubun (Takashi Kokubun) * Status: Open ---------------------------------------- ## Proposal * Extract the implementation of `RJIT::C` to ruby/rjit and publish it as a thirt-party gem * Allow `jit_exec()` to call `body->jit_entry` even when `--yjit` is not given * Remove RJIT from the Ruby core ## Background * RJIT depends on `fiddle`, and `fiddle` is extracted as a bundled gem. @hsbt and @nobu are struggling to maintain the dependency from the Ruby core to a bundled gem. * Integrating RJIT into the Ruby core has forced VM maintainers to update RJIT with every VM change, significantly increasing the maintenance burden. * I thought you couldn't implement `RJIT::C` as a third-party gem when I introduced RJIT [Feature #19420]. However, now @tenderlovemaking and I think it's possible if we modify `jit_exec()` as explained in the proposal. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/