strings (https://github.com/ruby/json/pull/1127) When a string with invalid encoding is generated in strict mode, the Java and pure-Ruby generators call as_json on it. If as_json returned a Symbol, the Symbol was turned back into the sa...sferik (Erik Berlin)
When a Hash key is a String subclass, both generators call its to_s. generator.c raises a TypeError in convert_string_subclass if to_s doesn't return a String. The Java generator passed the result on, then fell back to TypeConverter.conv...sferik (Erik Berlin)
The RFC 8785 number formatter uses Float#to_s, so these tests were skipped on every engine but CRuby. JRuby 10.1.3 gives the shortest round-trip digits in Float#to_s (https://github.com/jruby/jruby/pull/9916), and all 26 tests pass there...sferik (Erik Berlin)
A range of single character Strings told that it includes its end even when it is empty, since the end was not compared with the begin. ("z".."a").to_a #=> [] ("z".."a").include?("a") #=> true (cherry picked from commi...sferik (Erik Berlin)
The C extension defines both tty? and isatty in IO::platform_tty, so they stay the same method once io/console is loaded. The JRuby backends' PlatformTty only defined tty?, so after https://github.com/ruby/io-console/commit/f686b8305 loa...sferik (Erik Berlin)
The [neighbor](https://github.com/ankane/neighbor) gem is another example, commonly used by Rails apps to store embeddings with pgvector. pgvector's wire format is text, so `Neighbor::Type::Vector#serialize` does `"[#{value.to_a.map(&:to...sferik (Erik Berlin)
A range of single character Strings told that it includes its end even when it is empty, since the end was not compared with the begin. ("z".."a").to_a #=> [] ("z".."a").include?("a") #=> true (cherry picked from commi...sferik (Erik Berlin)
> I'll second Jean, we should absolutely not do this. Im also eager to replace dtoa.c, but if we're changing the algorithm (and especially if that changes the output in any cases) we should do it at most once over the next ~5 years. T...sferik (Erik Berlin)
> This one is interesting because a large part of the complexity of the implementation is caused by the semantic of these methods is that the comparison is done as element == searched_item. > ... This comment inspired another optimizati...sferik (Erik Berlin)