[ruby-core:125882] [Ruby Feature#22135] Remove deprecated `ObjectSpace#_id2ref`
Issue #22135 has been reported by nobu (Nobuyoshi Nakada). ---------------------------------------- Feature #22135: Remove deprecated `ObjectSpace#_id2ref` https://bugs.ruby-lang.org/issues/22135 * Author: nobu (Nobuyoshi Nakada) * Status: Open ---------------------------------------- As a result of [Feature #15408], the `ObjectSpace#_id2ref` method has been deprecated and now triggers a warning. However, we recognize that its use had already been discouraged for a long time prior to this, and we believe it is rarely used nowadays. Are there any objections to removing this method in version 4.1? [GH-17577](https://github.com/ruby/ruby/pull/17577) -- https://bugs.ruby-lang.org/
Issue #22135 has been updated by byroot (Jean Boussier). 👍 this is a lot of complex and error prone code to support a deprecated feature. Very little gems ever used `_id2ref` and nowadays it's always advantageously replaced by a WeakMap. ---------------------------------------- Feature #22135: Remove obsolete `ObjectSpace#_id2ref` https://bugs.ruby-lang.org/issues/22135#change-117821 * Author: nobu (Nobuyoshi Nakada) * Status: Open ---------------------------------------- As a result of [Feature #15408], the `ObjectSpace#_id2ref` method has been deprecated and now triggers a warning. However, we recognize that its use had already been discouraged for a long time prior to this, and we believe it is rarely used nowadays. Are there any objections to removing this method in version 4.1? [GH-17577](https://github.com/ruby/ruby/pull/17577) -- https://bugs.ruby-lang.org/
Issue #22135 has been updated by jhawthorn (John Hawthorn). +1 I would love to see this gone, we have to do a fair bit of work in the GC and elsewhere to maintain the id2ref table. ---------------------------------------- Feature #22135: Remove obsolete `ObjectSpace#_id2ref` https://bugs.ruby-lang.org/issues/22135#change-117887 * Author: nobu (Nobuyoshi Nakada) * Status: Open ---------------------------------------- As a result of [Feature #15408], the `ObjectSpace#_id2ref` method has been deprecated and now triggers a warning. However, we recognize that its use had already been discouraged for a long time prior to this, and we believe it is rarely used nowadays. Are there any objections to removing this method in version 4.1? [GH-17577](https://github.com/ruby/ruby/pull/17577) -- https://bugs.ruby-lang.org/
Issue #22135 has been updated by ko1 (Koichi Sasada). +1 ---------------------------------------- Feature #22135: Remove obsolete `ObjectSpace#_id2ref` https://bugs.ruby-lang.org/issues/22135#change-117910 * Author: nobu (Nobuyoshi Nakada) * Status: Open ---------------------------------------- As a result of [Feature #15408], the `ObjectSpace#_id2ref` method has been deprecated and now triggers a warning. However, we recognize that its use had already been discouraged for a long time prior to this, and we believe it is rarely used nowadays. Are there any objections to removing this method in version 4.1? [GH-17577](https://github.com/ruby/ruby/pull/17577) -- https://bugs.ruby-lang.org/
Issue #22135 has been updated by Eregon (Benoit Daloze). +1 ---------------------------------------- Feature #22135: Remove obsolete `ObjectSpace#_id2ref` https://bugs.ruby-lang.org/issues/22135#change-117933 * Author: nobu (Nobuyoshi Nakada) * Status: Open ---------------------------------------- As a result of [Feature #15408], the `ObjectSpace#_id2ref` method has been deprecated and now triggers a warning. However, we recognize that its use had already been discouraged for a long time prior to this, and we believe it is rarely used nowadays. Are there any objections to removing this method in version 4.1? [GH-17577](https://github.com/ruby/ruby/pull/17577) -- https://bugs.ruby-lang.org/
Issue #22135 has been updated by eightbitraptor (Matt V-H). +1 ---------------------------------------- Feature #22135: Remove obsolete `ObjectSpace#_id2ref` https://bugs.ruby-lang.org/issues/22135#change-117936 * Author: nobu (Nobuyoshi Nakada) * Status: Open ---------------------------------------- As a result of [Feature #15408], the `ObjectSpace#_id2ref` method has been deprecated and now triggers a warning. However, we recognize that its use had already been discouraged for a long time prior to this, and we believe it is rarely used nowadays. Are there any objections to removing this method in version 4.1? [GH-17577](https://github.com/ruby/ruby/pull/17577) -- https://bugs.ruby-lang.org/
Issue #22135 has been updated by matz (Yukihiro Matsumoto). Accepted. `_id2ref` has been deprecated and it is fundamentally incompatible with the direction of the runtime (GC and Ractor). Reviving arbitrary objects from integer IDs was never a sound API. Let us remove it. Matz. ---------------------------------------- Feature #22135: Remove obsolete `ObjectSpace#_id2ref` https://bugs.ruby-lang.org/issues/22135#change-118003 * Author: nobu (Nobuyoshi Nakada) * Status: Closed ---------------------------------------- As a result of [Feature #15408], the `ObjectSpace#_id2ref` method has been deprecated and now triggers a warning. However, we recognize that its use had already been discouraged for a long time prior to this, and we believe it is rarely used nowadays. Are there any objections to removing this method in version 4.1? [GH-17577](https://github.com/ruby/ruby/pull/17577) -- https://bugs.ruby-lang.org/
Issue #22135 has been updated by headius (Charles Nutter). I am very happy to see this go. Thanks everyone! ---------------------------------------- Feature #22135: Remove obsolete `ObjectSpace#_id2ref` https://bugs.ruby-lang.org/issues/22135#change-118120 * Author: nobu (Nobuyoshi Nakada) * Status: Closed ---------------------------------------- As a result of [Feature #15408], the `ObjectSpace#_id2ref` method has been deprecated and now triggers a warning. However, we recognize that its use had already been discouraged for a long time prior to this, and we believe it is rarely used nowadays. Are there any objections to removing this method in version 4.1? [GH-17577](https://github.com/ruby/ruby/pull/17577) -- https://bugs.ruby-lang.org/
participants (8)
-
byroot (Jean Boussier) -
eightbitraptor (Matt V-H) -
Eregon (Benoit Daloze) -
headius (Charles Nutter) -
jhawthorn (John Hawthorn) -
ko1 (Koichi Sasada) -
matz (Yukihiro Matsumoto) -
nobu (Nobuyoshi Nakada)