[#109207] [Ruby master Feature#18915] New error class: NotImplementedYetError or scope change for NotImplementedYet — Quintasan <noreply@...>
Issue #18915 has been reported by Quintasan (Michał Zając).
18 messages
2022/07/14
[ruby-core:109258] [Ruby master Bug#18919] Ractor: can't share method-to-proc objects
From:
"Eregon (Benoit Daloze)" <noreply@...>
Date:
2022-07-20 10:51:46 UTC
List:
ruby-core #109258
Issue #18919 has been updated by Eregon (Benoit Daloze). I don't see a `.to_proc` call in the description. Either way, both Method and Proc objects can't be shared, they have mutable state. For Method/UnboundMethod they could potentially be made immutable and therefore shareable (sounds good to me), but it would be a potentially-breaking change. ---------------------------------------- Bug #18919: Ractor: can't share method-to-proc objects https://bugs.ruby-lang.org/issues/18919#change-98389 * Author: chucke (Tiago Cardoso) * Status: Open * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- The following is not shareable: ```ruby > meth = ::Kernel.method(:BigDecimal) => #<Method: Kernel.BigDecimal(*)> <internal:ractor>:816:in `make_shareable': can not make shareable object for #<Method: Kernel.BigDecimal(*)> (Ractor::Error) ``` I understand that procs have the issue of accessing outer-scope variables, but does the same apply to methods converted to procs? -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>