From: eregontp@... Date: 2020-12-30T15:10:11+00:00 Subject: [ruby-core:101814] [Ruby master Feature#17473] Make Pathname to embedded class of Ruby Issue #17473 has been updated by Eregon (Benoit Daloze). shyouhei (Shyouhei Urabe) wrote in #note-7: > JFYI pathname was born as a pure-ruby library, then was eventually translated into C (in commit:4bf3cb5ba9c0242bd5a6d0d55b7db9f837c09edf). Don't know the reason behind that move though. @akr do you remember? I know, I'd like to undo that change (I can make a PR), except for the parts which are significantly faster in C (I think only `Pathname#<=>` / `path_cmp`). Then, we could share more of Pathname between Ruby implementations, and avoid maintaining both a Ruby and C version. There is a copy in [TruffleRuby](https://github.com/oracle/truffleruby/blob/5ab35083f1cebd44b05ad5e8706196118184c328/lib/truffle/pathname.rb), in JRuby and in Rubinius right now due to that commit :/ @akr Would that be OK? ---------------------------------------- Feature #17473: Make Pathname to embedded class of Ruby https://bugs.ruby-lang.org/issues/17473#change-89641 * Author: hsbt (Hiroshi SHIBATA) * Status: Open * Priority: Normal * Assignee: akr (Akira Tanaka) ---------------------------------------- pathname is one of most useful utility class of Ruby. I'm happy to use Pathname without require it. Any thought? -- https://bugs.ruby-lang.org/ Unsubscribe: