From: "hsbt (Hiroshi SHIBATA) via ruby-core" Date: 2026-06-12T04:49:02+00:00 Subject: [ruby-core:125717] [Ruby Feature#13508] How remove/refactor code related mathn library. Issue #13508 has been updated by hsbt (Hiroshi SHIBATA). Status changed from Assigned to Closed All the items in this ticket have been resolved. The mathn-specific code in array.c, complex.c, rational.c and enum.c was removed at https://github.com/ruby/ruby/commit/b958e2add835d62c0a62edaf9a23ecbbd70a3635 (https://github.com/ruby/ruby/pull/3691), and the obsolete `--enable-mathn` configure option was removed at https://github.com/ruby/ruby/commit/89110b27437d4a84f7cb0387e59fd40d94efee1d. `lib/cmath.rb` was removed from the ruby repository at https://github.com/ruby/ruby/commit/a3b85016149f4f73f08c739626b2f02badd5ad17. The mathn workaround remaining in the cmath gem is intentionally kept for compatibility with the mathn gem. ---------------------------------------- Feature #13508: How remove/refactor code related mathn library. https://bugs.ruby-lang.org/issues/13508#change-117584 * Author: hsbt (Hiroshi SHIBATA) * Status: Closed * Assignee: hsbt (Hiroshi SHIBATA) ---------------------------------------- I removed mathn library at r58413 and r58432. I have some concerns related mathn library. This issue is reminder for this concern. 1. Still remains conditions for mathn loaded. ex. https://github.com/ruby/ruby/blob/trunk/array.c#L5755 2. {complex,rational}.c have {nucomp,nurat}_canonicalization methods for mathn. 3. lib/cmath.rb have workaround code for mathn see. https://github.com/ruby/ruby/blob/trunk/lib/cmath.rb#L27 I continue to discuss concerns to @mrkn -- 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/