Benoit Daloze
Benoit Daloze
Something interesting about these 2 float values is they seem to be exact: ``` irb(main):013:0> "%.100f" % 0.8241000000000002 => "0.8241000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000" irb(main):014:0> "%.100f" % 0.8241000000000004 => "0.8241000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000" ``` So at first...
We end up here at the 2nd iteration of the loop:  And `1 - d2 == d`. I wonder if the handling with `(d2 > 0.5)...
Right, I think we should do the same, I'm not sure why we had our own variant here. Possibly because there was a pure-Ruby implementation from Rubinius and we tried...
> There simply wasn't a way to remove the wrapped exception, as far as I know. I'd be happy to do so if possible. I think it should be possible...
Re > It's unknown/difficult to get a result more specific than [[:rest]] from a C extension. Maybe it would make sense to define `TCPSocket.open` in Ruby code in CRuby, then...
> Do you mean reimplementing entire `TCPSocket.open` in Ruby? No, just TCPSocket.open. Actually there is no TCPSocket.open, it's just IO.open. IO.open is [trivial to implement in Ruby code](https://github.com/truffleruby/truffleruby/blob/5cc3977aa8327954b0ee3a91129c4f01396a1b81/src/main/ruby/truffleruby/core/io.rb#L570-L584). But it...
> Is there any place where a changelog should be recorded? I can send a patch to CRuby’s NEWS if that’s the place. I think just the release notes of...
> Its priority will depend on when IRB becomes a bundled gem too According to https://github.com/ruby/ruby/blob/90ef28f59b4a2214d64f21d7e6d033273a0cce89/lib/bundled_gems.rb#L33 in 3.5.0.
With the transition to [more bundled gems](https://github.com/ruby/ruby/blob/master/lib/bundled_gems.rb) it seems Rails already has many native dependencies. For instance: ``` $ ruby -v ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux] $ gem i...
Ah that was rails 7.2.2, but anyway the situation is similar on rails-8.0.0.rc2: ``` $ gem i rails --pre $ rails new --skip-bundle rails8 $ cd rails8 $ bundle install...