Dan0042 (Daniel DeLorme) wrote in #note-31: > Ironically, HexaPDF now uses an explicit modulo 256, so it would actually be fine if #setbyte raised an out-of-bound error. > ... Yes, as mentioned in the linked issue #15460 I implemented ...gettalong (Thomas Leitner)
Both `Array#==` and `Hash#==` provide special behaviour in case the `other` argument is not an Array/Hash but defines the special `#to_ary`/`#to_hash` methods. Those methods are never called, they are just checked for existence. And if t...gettalong (Thomas Leitner)
I installed Ruby 3.4-dev via rbenv to see how the improvements in YJIT with 3.4-dev (after reading https://speakerdeck.com/k0kubun/rubykaigi-2024) translate to other parts of HexaPDF. However, when running the HexaPDF optimization benchm...gettalong (Thomas Leitner)
There is already the possibility to set Reline.completion_append_character. However, it is not used by the line editor. https://github.com/ruby/reline/commit/ab798931b9gettalong (Thomas Leitner)
Eregon (Benoit Daloze) wrote: > Why are values higher in HexaPDF? Does it mean multiple bytes need to be written or is it enough to throw away the high bits? > ... This actually happens in the predictor filter of HexaPDF (see https://g...gettalong (Thomas Leitner)
I just installed Ruby 2.6.0 for benchmarking reasons and found that the change [string.c: setbyte silently ignores upper bits](https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/65804) broke my library/application HexaPD...gettalong (Thomas Leitner)
Hi, I don't know if this is intentional but substitution of `\'` and `` \` `` in the replacement string was rather unexpected for me: ~~~ 2.2.2 :001 > "this is a test".sub(/this/, "some text \\'") => "some text is a test is a t...gettalong (Thomas Leitner)
The documentation for `Switch#summarize` says "+sdone+:: Already summarized short style options keyed hash." for the `sdone` argument (similar problem with `ldone`). I.e. it mentions it should be a Hash. However, the actual method de...gettalong (Thomas Leitner)
=begin For your information, I have fixed this problem in my code, see the ((<commit on Github|URL:https://github.com/gettalong/webgen/commit/8c49da9143569c8b68d6172199e12a9b8274e5bd>)). Would be good, though, to know whether this i...gettalong (Thomas Leitner)
=begin After some more experimenting, it seems that the '**' operator doesn't act the same like in 1.9.3: With Ruby 2.0.0-p0: 2.0.0p0 :017 > Dir.glob('data/webgen/basic_website_template/*/*', File::FNM_DOTMATCH|File::FNM_CASEF...gettalong (Thomas Leitner)