General

Profile

trinistr (Alexander Bulancov)

  • Login: trinistr
  • Registered on: 11/07/2025
  • Last sign in: 11/07/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 3 0 3

Activity

11/21/2025

06:59 PM Ruby Feature #21700: `IO::Buffer.map`: offset argument is "broken" and needs to be made more useful
I think slices always require a source buffer? If so, returning a slice will require somehow handling a buffer so it doesn't leak (though GC may take care of it?).
On a related note, slices require some work on their own, there is no ...
trinistr (Alexander Bulancov)
06:30 PM Ruby Bug #21702 (Open): `UNIXSocket` on Windows: suprising results in `#recvfrom` and `#remote_address`
Support for `UNIXSocket` on Windows was added in #19135. Through testing in ruby/spec, I identified unexpected results in two methods:
1. `#remote_address.to_s` always returns 110 bytes, compared to `#local_address.to_s` which returns o...
trinistr (Alexander Bulancov)

11/20/2025

08:25 PM Ruby Feature #21700: `IO::Buffer.map`: offset argument is "broken" and needs to be made more useful
> Currently, offset doesn't change the buffer's size if unspecified, leading to crashes. I will be making a PR addressing this but still.
The pull request in question: https://github.com/ruby/ruby/pull/15264
trinistr (Alexander Bulancov)
07:43 PM Ruby Feature #21700 (Open): `IO::Buffer.map`: offset argument is "broken" and needs to be made more useful
*This was supposed to be a bug report, but it turned into a feature request halfway through.*
`IO::Buffer.map` supports `size` and `offset` arguments to localize buffer to a specific part of mapped file. While `size` works fine, speci...
trinistr (Alexander Bulancov)

11/11/2025

08:32 PM Ruby Bug #21672: `IO::Buffer.new` does not check that flags are valid
Thank you!
For more context: I'm working on IO::Buffer's specs for ruby/spec. This issue was created quite early, as I started with `.new`, and since then I've discovered a whole bunch of questionable or unclear behaviors (or just pla...
trinistr (Alexander Bulancov)

11/08/2025

10:10 AM Ruby Bug #21672: `IO::Buffer.new` does not check that flags are valid
Also not sure if this is intentional, but a buffer mapped from a file with `IO::Buffer::PRIVATE` is neither internal nor external:
```
IO::Buffer.map(File.open("README.md", "r+"), nil, 0, IO::Buffer::PRIVATE).external?
# => false
IO:...
trinistr (Alexander Bulancov)

11/07/2025

08:57 PM Ruby Bug #21672 (Assigned): `IO::Buffer.new` does not check that flags are valid
`IO::Buffer.new` has a `flags` argument that allows to override automatic decision between INTERNAL and MAPPED. As far as I understand, these modes are supposed to be exclusive, however in practice there is no check, and the user is free... trinistr (Alexander Bulancov)

Also available in: Atom